Lines Matching refs:i_buf
144 w_size = dfu->i_buf - dfu->i_buf_start; in dfu_write_buffer_drain()
157 dfu->i_buf = dfu->i_buf_start; in dfu_write_buffer_drain()
175 dfu->i_buf = dfu->i_buf_start; in dfu_transaction_cleanup()
235 (unsigned long)(dfu->i_buf - dfu->i_buf_start)); in dfu_write()
265 if ((dfu->i_buf + size) > dfu->i_buf_end) { in dfu_write()
274 if ((dfu->i_buf + size) > dfu->i_buf_end) { in dfu_write()
275 pr_err("Buffer overflow! (0x%p + 0x%x > 0x%p)\n", dfu->i_buf, in dfu_write()
281 memcpy(dfu->i_buf, buf, size); in dfu_write()
282 dfu->i_buf += size; in dfu_write()
285 if (size == 0 || (dfu->i_buf + size) > dfu->i_buf_end) { in dfu_write()
307 memcpy(buf, dfu->i_buf, chunk); in dfu_read_buffer_fill()
313 dfu->i_buf += chunk; in dfu_read_buffer_fill()
326 dfu->i_buf = dfu->i_buf_start; in dfu_read_buffer_fill()
332 ret = dfu->read_medium(dfu, dfu->offset, dfu->i_buf, in dfu_read_buffer_fill()
353 __func__, dfu->name, buf, size, blk_seq_num, dfu->i_buf); in dfu_read()