Lines Matching refs:bytes_to_copy
556 int offset, bytes_to_copy; in copy_strings() local
568 bytes_to_copy = offset; in copy_strings()
569 if (bytes_to_copy > len) in copy_strings()
570 bytes_to_copy = len; in copy_strings()
572 offset -= bytes_to_copy; in copy_strings()
573 pos -= bytes_to_copy; in copy_strings()
574 str -= bytes_to_copy; in copy_strings()
575 len -= bytes_to_copy; in copy_strings()
596 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
632 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
637 pos -= bytes_to_copy; in copy_string_kernel()
638 arg -= bytes_to_copy; in copy_string_kernel()
639 len -= bytes_to_copy; in copy_string_kernel()
646 memcpy(kaddr + offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()