Home
last modified time | relevance | path

Searched refs:image_length (Results 1 – 1 of 1) sorted by relevance

/lk-master/app/moot/
A Dusbboot.c140 ssize_t image_length; in handle_usb_cmd() local
145 image_length = header->arg; in handle_usb_cmd()
146 if (image_length > (ssize_t)moot_system_info.system_len) { in handle_usb_cmd()
159 bio_erase(dev, moot_system_info.system_offset, image_length); in handle_usb_cmd()
160 if (n_bytes_erased < image_length) { in handle_usb_cmd()
171 while (image_length > 0) { in handle_usb_cmd()
172 ssize_t xfer = (image_length > (ssize_t)sizeof(buffer)) ? in handle_usb_cmd()
173 (ssize_t)sizeof(buffer) : image_length; in handle_usb_cmd()
194 image_length -= written; in handle_usb_cmd()

Completed in 3 milliseconds