Lines Matching refs:to_copy
75 unsigned long to_copy, skb_off; in rds_tcp_inc_copy_to_user() local
76 for (skb_off = 0; skb_off < skb->len; skb_off += to_copy) { in rds_tcp_inc_copy_to_user()
77 to_copy = iov_iter_count(to); in rds_tcp_inc_copy_to_user()
78 to_copy = min(to_copy, skb->len - skb_off); in rds_tcp_inc_copy_to_user()
80 if (skb_copy_datagram_iter(skb, skb_off, to, to_copy)) in rds_tcp_inc_copy_to_user()
83 rds_stats_add(s_copy_to_user, to_copy); in rds_tcp_inc_copy_to_user()
84 ret += to_copy; in rds_tcp_inc_copy_to_user()
110 unsigned int to_copy, skb_off; in rds_tcp_cong_recv() local
127 to_copy = min_t(unsigned int, PAGE_SIZE - map_off, in rds_tcp_cong_recv()
135 to_copy); in rds_tcp_cong_recv()
138 skb_off += to_copy; in rds_tcp_cong_recv()
139 map_off += to_copy; in rds_tcp_cong_recv()
163 size_t left = len, to_copy; in rds_tcp_data_recv() local
195 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
196 rdsdebug("copying %zu header from skb %p\n", to_copy, in rds_tcp_data_recv()
202 to_copy); in rds_tcp_data_recv()
203 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv()
204 left -= to_copy; in rds_tcp_data_recv()
205 offset += to_copy; in rds_tcp_data_recv()
217 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
219 clone = pskb_extract(skb, offset, to_copy, arg->gfp); in rds_tcp_data_recv()
229 skb, skb->data, skb->len, offset, to_copy, in rds_tcp_data_recv()
232 tc->t_tinc_data_rem -= to_copy; in rds_tcp_data_recv()
233 left -= to_copy; in rds_tcp_data_recv()
234 offset += to_copy; in rds_tcp_data_recv()