Lines Matching refs:bytes_to_copy
559 int offset, bytes_to_copy; in copy_strings() local
571 bytes_to_copy = offset; in copy_strings()
572 if (bytes_to_copy > len) in copy_strings()
573 bytes_to_copy = len; in copy_strings()
575 offset -= bytes_to_copy; in copy_strings()
576 pos -= bytes_to_copy; in copy_strings()
577 str -= bytes_to_copy; in copy_strings()
578 len -= bytes_to_copy; in copy_strings()
599 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
635 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
639 pos -= bytes_to_copy; in copy_string_kernel()
640 arg -= bytes_to_copy; in copy_string_kernel()
641 len -= bytes_to_copy; in copy_string_kernel()
647 memcpy_to_page(page, offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()