Lines Matching refs:tocopy
401 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local
419 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate()
423 if (!tocopy) in msc_buffer_iterate()
426 tocopy -= iter->block_off; in msc_buffer_iterate()
429 if (len < tocopy) { in msc_buffer_iterate()
430 tocopy = len; in msc_buffer_iterate()
434 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
439 copied = tocopy - remaining; in msc_buffer_iterate()
1067 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1072 tocopy = min(rem, size - start); in msc_single_to_user()
1073 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1076 buf += tocopy; in msc_single_to_user()
1077 rem -= tocopy; in msc_single_to_user()
1078 start += tocopy; in msc_single_to_user()
1083 tocopy = min(rem, msc->single_sz - start); in msc_single_to_user()
1084 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1087 rem -= tocopy; in msc_single_to_user()