Lines Matching refs:bytes_to_copy
600 int offset, bytes_to_copy; in copy_strings() local
612 bytes_to_copy = offset; in copy_strings()
613 if (bytes_to_copy > len) in copy_strings()
614 bytes_to_copy = len; in copy_strings()
616 offset -= bytes_to_copy; in copy_strings()
617 pos -= bytes_to_copy; in copy_strings()
618 str -= bytes_to_copy; in copy_strings()
619 len -= bytes_to_copy; in copy_strings()
640 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
676 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
680 pos -= bytes_to_copy; in copy_string_kernel()
681 arg -= bytes_to_copy; in copy_string_kernel()
682 len -= bytes_to_copy; in copy_string_kernel()
688 memcpy_to_page(page, offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()