Lines Matching refs:copy
925 int copy, i;
928 if (!tcp_send_head(sk) || (copy = size_goal - skb->len) <= 0) {
938 copy = size_goal;
941 if (copy > size)
942 copy = size;
950 if (!sk_wmem_schedule(sk, copy))
954 skb_frag_size_add(&skb_shinfo(skb)->frags[i - 1], copy);
957 skb_fill_page_desc(skb, i, page, offset, copy);
961 skb->len += copy;
962 skb->data_len += copy;
963 skb->truesize += copy;
964 sk->sk_wmem_queued += copy;
965 sk_mem_charge(sk, copy);
967 tp->write_seq += copy;
968 TCP_SKB_CB(skb)->end_seq += copy;
974 copied += copy;
975 offset += copy;
976 if (!(size -= copy)) {
1169 int copy = 0;
1176 copy = max - skb->len;
1179 if (copy <= 0) {
1200 copy = size_goal;
1212 if (copy > seglen)
1213 copy = seglen;
1215 /* Where to copy to? */
1218 copy = min_t(int, copy, skb_availroom(skb));
1219 err = skb_add_data_nocache(sk, skb, from, copy);
1239 copy = min_t(int, copy, pfrag->size - pfrag->offset);
1241 if (!sk_wmem_schedule(sk, copy))
1247 copy);
1253 skb_frag_size_add(&skb_shinfo(skb)->frags[i - 1], copy);
1256 pfrag->offset, copy);
1259 pfrag->offset += copy;
1265 tp->write_seq += copy;
1266 TCP_SKB_CB(skb)->end_seq += copy;
1269 from += copy;
1270 copied += copy;
1271 if ((seglen -= copy) == 0 && iovlen == 0) {
2956 /* We are not allowed to change tcphdr, make a local copy */