Lines Matching refs:tocopy
591 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local
609 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate()
613 if (!tocopy) in msc_buffer_iterate()
616 tocopy -= iter->block_off; in msc_buffer_iterate()
619 if (len < tocopy) { in msc_buffer_iterate()
620 tocopy = len; in msc_buffer_iterate()
624 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
629 copied = tocopy - remaining; in msc_buffer_iterate()
1461 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1466 tocopy = min(rem, size - start); in msc_single_to_user()
1467 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1470 buf += tocopy; in msc_single_to_user()
1471 rem -= tocopy; in msc_single_to_user()
1472 start += tocopy; in msc_single_to_user()
1477 tocopy = min(rem, msc->single_sz - start); in msc_single_to_user()
1478 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1481 rem -= tocopy; in msc_single_to_user()