Lines Matching defs:copy
1129 int copy;
1243 copy = (inet->cork.length <= mtu && !(inet->cork.flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len;
1244 if (copy < length)
1245 copy = maxfraglen - skb->len;
1247 if (copy <= 0) {
1334 copy = datalen - transhdrlen - fraggap;
1335 if (copy < 0) {
1339 } else if (copy > 0 && getfrag(from, data + transhdrlen, offset, copy, fraggap, skb) < 0) {
1345 offset += copy;
1358 if (copy > length)
1359 copy = length;
1365 if (getfrag(from, skb_put(skb, copy),
1366 offset, copy, off, skb) < 0) {
1379 if (copy >= left)
1380 copy = left;
1391 if (copy > PAGE_SIZE)
1392 copy = PAGE_SIZE;
1407 if (getfrag(from, page_address(frag->page)+frag->page_offset+frag->size, offset, copy, skb->len, skb) < 0) {
1411 sk->sk_sndmsg_off += copy;
1412 frag->size += copy;
1413 skb->len += copy;
1414 skb->data_len += copy;
1415 skb->truesize += copy;
1416 atomic_add(copy, &sk->sk_wmem_alloc);
1418 offset += copy;
1419 length -= copy;