Lines Matching refs:tocopy
595 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local
613 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate()
617 if (!tocopy) in msc_buffer_iterate()
620 tocopy -= iter->block_off; in msc_buffer_iterate()
623 if (len < tocopy) { in msc_buffer_iterate()
624 tocopy = len; in msc_buffer_iterate()
628 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
633 copied = tocopy - remaining; in msc_buffer_iterate()
1476 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1481 tocopy = min(rem, size - start); in msc_single_to_user()
1482 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1485 buf += tocopy; in msc_single_to_user()
1486 rem -= tocopy; in msc_single_to_user()
1487 start += tocopy; in msc_single_to_user()
1492 tocopy = min(rem, msc->single_sz - start); in msc_single_to_user()
1493 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1496 rem -= tocopy; in msc_single_to_user()