Lines Matching refs:to_copy
74 unsigned long to_copy, skb_off; in rds_tcp_inc_copy_to_user() local
75 for (skb_off = 0; skb_off < skb->len; skb_off += to_copy) { in rds_tcp_inc_copy_to_user()
76 to_copy = iov_iter_count(to); in rds_tcp_inc_copy_to_user()
77 to_copy = min(to_copy, skb->len - skb_off); in rds_tcp_inc_copy_to_user()
79 if (skb_copy_datagram_iter(skb, skb_off, to, to_copy)) in rds_tcp_inc_copy_to_user()
82 rds_stats_add(s_copy_to_user, to_copy); in rds_tcp_inc_copy_to_user()
83 ret += to_copy; in rds_tcp_inc_copy_to_user()
109 unsigned int to_copy, skb_off; in rds_tcp_cong_recv() local
126 to_copy = min_t(unsigned int, PAGE_SIZE - map_off, in rds_tcp_cong_recv()
134 to_copy); in rds_tcp_cong_recv()
137 skb_off += to_copy; in rds_tcp_cong_recv()
138 map_off += to_copy; in rds_tcp_cong_recv()
162 size_t left = len, to_copy; in rds_tcp_data_recv() local
194 to_copy = min(tc->t_tinc_hdr_rem, left); in rds_tcp_data_recv()
195 rdsdebug("copying %zu header from skb %p\n", to_copy, in rds_tcp_data_recv()
201 to_copy); in rds_tcp_data_recv()
202 tc->t_tinc_hdr_rem -= to_copy; in rds_tcp_data_recv()
203 left -= to_copy; in rds_tcp_data_recv()
204 offset += to_copy; in rds_tcp_data_recv()
216 to_copy = min(tc->t_tinc_data_rem, left); in rds_tcp_data_recv()
218 clone = pskb_extract(skb, offset, to_copy, arg->gfp); in rds_tcp_data_recv()
228 skb, skb->data, skb->len, offset, to_copy, in rds_tcp_data_recv()
231 tc->t_tinc_data_rem -= to_copy; in rds_tcp_data_recv()
232 left -= to_copy; in rds_tcp_data_recv()
233 offset += to_copy; in rds_tcp_data_recv()