Lines Matching defs:copy
780 int copy, i, can_coalesce;
784 if (!tcp_send_head(sk) || (copy = size_goal - skb->len) <= 0) {
794 copy = size_goal;
797 if (copy > size)
798 copy = size;
806 if (!sk_wmem_schedule(sk, copy))
810 skb_shinfo(skb)->frags[i - 1].size += copy;
813 skb_fill_page_desc(skb, i, page, offset, copy);
816 skb->len += copy;
817 skb->data_len += copy;
818 skb->truesize += copy;
819 sk->sk_wmem_queued += copy;
820 sk_mem_charge(sk, copy);
822 tp->write_seq += copy;
823 TCP_SKB_CB(skb)->end_seq += copy;
829 copied += copy;
830 poffset += copy;
831 if (!(psize -= copy))
959 int copy = 0;
966 copy = max - skb->len;
969 if (copy <= 0) {
990 copy = size_goal;
995 if (copy > seglen)
996 copy = seglen;
998 /* Where to copy to? */
1001 if (copy > skb_tailroom(skb))
1002 copy = skb_tailroom(skb);
1003 if ((err = skb_add_data(skb, from, copy)) != 0)
1032 if (copy > PAGE_SIZE - off)
1033 copy = PAGE_SIZE - off;
1035 if (!sk_wmem_schedule(sk, copy))
1044 /* Time to copy data. We are close to
1047 off, copy);
1062 copy;
1064 skb_fill_page_desc(skb, i, page, off, copy);
1067 } else if (off + copy < PAGE_SIZE) {
1073 TCP_OFF(sk) = off + copy;
1079 tp->write_seq += copy;
1080 TCP_SKB_CB(skb)->end_seq += copy;
1083 from += copy;
1084 copied += copy;
1085 if ((seglen -= copy) == 0 && iovlen == 0)