Lines Matching refs:bytes_to_copy
592 int offset, bytes_to_copy; in copy_strings() local
604 bytes_to_copy = offset; in copy_strings()
605 if (bytes_to_copy > len) in copy_strings()
606 bytes_to_copy = len; in copy_strings()
608 offset -= bytes_to_copy; in copy_strings()
609 pos -= bytes_to_copy; in copy_strings()
610 str -= bytes_to_copy; in copy_strings()
611 len -= bytes_to_copy; in copy_strings()
632 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
668 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
672 pos -= bytes_to_copy; in copy_string_kernel()
673 arg -= bytes_to_copy; in copy_string_kernel()
674 len -= bytes_to_copy; in copy_string_kernel()
680 memcpy_to_page(page, offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()