Lines Matching refs:bytes_to_copy
553 int offset, bytes_to_copy; in copy_strings() local
565 bytes_to_copy = offset; in copy_strings()
566 if (bytes_to_copy > len) in copy_strings()
567 bytes_to_copy = len; in copy_strings()
569 offset -= bytes_to_copy; in copy_strings()
570 pos -= bytes_to_copy; in copy_strings()
571 str -= bytes_to_copy; in copy_strings()
572 len -= bytes_to_copy; in copy_strings()
593 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings()
629 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local
633 pos -= bytes_to_copy; in copy_string_kernel()
634 arg -= bytes_to_copy; in copy_string_kernel()
635 len -= bytes_to_copy; in copy_string_kernel()
641 memcpy_to_page(page, offset_in_page(pos), arg, bytes_to_copy); in copy_string_kernel()