Lines Matching refs:copy
78 * And now for the all-in-one: copy and checksum from a user iovec
99 int copy = min_t(unsigned int, len, iov->iov_len - offset);
108 if (par_len > copy) {
109 if (copy_from_user(kdata, base, copy))
111 kdata += copy;
112 base += copy;
113 partial_cnt += copy;
114 len -= copy;
127 copy -= par_len;
132 if (len > copy) {
133 partial_cnt = copy % 4;
135 copy -= partial_cnt;
136 if (copy_from_user(kdata + copy, base + copy,
142 if (copy) {
143 csum = csum_and_copy_from_user(base, kdata, copy,
148 len -= copy + partial_cnt;
149 kdata += copy + partial_cnt;