Lines Matching refs:to_write
230 int to_write; in fb_download_data_sparse_write() local
234 to_write = min(USB_BUF_SIZE - usb_buf_len, len); in fb_download_data_sparse_write()
236 memcpy(usb_buf + usb_buf_len, ptr, to_write); in fb_download_data_sparse_write()
237 usb_buf_len += to_write; in fb_download_data_sparse_write()
238 ptr += to_write; in fb_download_data_sparse_write()
239 len -= to_write; in fb_download_data_sparse_write()
255 to_write = round_down(len, USB_BUF_SIZE); in fb_download_data_sparse_write()
256 r = _command_data(usb, ptr, to_write); in fb_download_data_sparse_write()
257 if (r != to_write) { in fb_download_data_sparse_write()
260 ptr += to_write; in fb_download_data_sparse_write()
261 len -= to_write; in fb_download_data_sparse_write()