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()
1466 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1471 tocopy = min(rem, size - start); in msc_single_to_user()
1472 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1475 buf += tocopy; in msc_single_to_user()
1476 rem -= tocopy; in msc_single_to_user()
1477 start += tocopy; in msc_single_to_user()
1482 tocopy = min(rem, msc->single_sz - start); in msc_single_to_user()
1483 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1486 rem -= tocopy; in msc_single_to_user()