Lines Matching refs:bytes_to_copy
482 int offset, bytes_to_copy; in copy_strings() local
494 bytes_to_copy = offset; in copy_strings()
495 if (bytes_to_copy > len) in copy_strings()
496 bytes_to_copy = len; in copy_strings()
498 offset -= bytes_to_copy; in copy_strings()
499 pos -= bytes_to_copy; in copy_strings()
500 str -= bytes_to_copy; in copy_strings()
501 len -= bytes_to_copy; in copy_strings()
522 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
558 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
562 pos -= bytes_to_copy; in copy_string_kernel()
563 arg -= bytes_to_copy; in copy_string_kernel()
564 len -= bytes_to_copy; in copy_string_kernel()
570 memcpy_to_page(page, offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()