Lines Matching refs:tocopy
394 size_t tocopy = data_bytes, copied = 0; in msc_buffer_iterate() local
412 tocopy = DATA_IN_PAGE - data_bytes; in msc_buffer_iterate()
416 if (!tocopy) in msc_buffer_iterate()
419 tocopy -= iter->block_off; in msc_buffer_iterate()
422 if (len < tocopy) { in msc_buffer_iterate()
423 tocopy = len; in msc_buffer_iterate()
427 remaining = fn(data, src, tocopy); in msc_buffer_iterate()
432 copied = tocopy - remaining; in msc_buffer_iterate()
1060 unsigned long start = off, tocopy = 0; in msc_single_to_user() local
1065 tocopy = min(rem, size - start); in msc_single_to_user()
1066 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1069 buf += tocopy; in msc_single_to_user()
1070 rem -= tocopy; in msc_single_to_user()
1071 start += tocopy; in msc_single_to_user()
1076 tocopy = min(rem, msc->single_sz - start); in msc_single_to_user()
1077 if (copy_to_user(buf, msc->base + start, tocopy)) in msc_single_to_user()
1080 rem -= tocopy; in msc_single_to_user()