/net/core/ |
D | datagram.c | 318 int i, copy = start - offset; in skb_copy_datagram_iovec() local 324 if (copy > 0) { in skb_copy_datagram_iovec() 325 if (copy > len) in skb_copy_datagram_iovec() 326 copy = len; in skb_copy_datagram_iovec() 327 if (memcpy_toiovec(to, skb->data + offset, copy)) in skb_copy_datagram_iovec() 329 if ((len -= copy) == 0) in skb_copy_datagram_iovec() 331 offset += copy; in skb_copy_datagram_iovec() 342 if ((copy = end - offset) > 0) { in skb_copy_datagram_iovec() 347 if (copy > len) in skb_copy_datagram_iovec() 348 copy = len; in skb_copy_datagram_iovec() [all …]
|
D | user_dma.c | 54 int i, copy = start - offset; in dma_skb_copy_datagram_iovec() local 59 if (copy > 0) { in dma_skb_copy_datagram_iovec() 60 if (copy > len) in dma_skb_copy_datagram_iovec() 61 copy = len; in dma_skb_copy_datagram_iovec() 63 skb->data + offset, copy); in dma_skb_copy_datagram_iovec() 66 len -= copy; in dma_skb_copy_datagram_iovec() 69 offset += copy; in dma_skb_copy_datagram_iovec() 80 copy = end - offset; in dma_skb_copy_datagram_iovec() 81 if (copy > 0) { in dma_skb_copy_datagram_iovec() 84 if (copy > len) in dma_skb_copy_datagram_iovec() [all …]
|
D | iovec.c | 83 int copy; in memcpy_toiovecend() local 90 copy = min_t(unsigned int, iov->iov_len - offset, len); in memcpy_toiovecend() 91 if (copy_to_user(iov->iov_base + offset, kdata, copy)) in memcpy_toiovecend() 94 kdata += copy; in memcpy_toiovecend() 95 len -= copy; in memcpy_toiovecend() 117 int copy = min_t(unsigned int, len, iov->iov_len - offset); in memcpy_fromiovecend() local 120 if (copy_from_user(kdata, base, copy)) in memcpy_fromiovecend() 122 len -= copy; in memcpy_fromiovecend() 123 kdata += copy; in memcpy_fromiovecend() 153 int copy = min_t(unsigned int, len, iov->iov_len - offset); in csum_partial_copy_fromiovecend() local [all …]
|
D | skbuff.c | 1589 int i, copy; in skb_copy_bits() local 1595 if ((copy = start - offset) > 0) { in skb_copy_bits() 1596 if (copy > len) in skb_copy_bits() 1597 copy = len; in skb_copy_bits() 1598 skb_copy_from_linear_data_offset(skb, offset, to, copy); in skb_copy_bits() 1599 if ((len -= copy) == 0) in skb_copy_bits() 1601 offset += copy; in skb_copy_bits() 1602 to += copy; in skb_copy_bits() 1612 if ((copy = end - offset) > 0) { in skb_copy_bits() 1615 if (copy > len) in skb_copy_bits() [all …]
|
D | pktgen.c | 882 size_t copy = min_t(size_t, count, 1023); in pktgen_if_write() local 883 char tb[copy + 1]; in pktgen_if_write() 884 if (copy_from_user(tb, user_buffer, copy)) in pktgen_if_write() 886 tb[copy] = 0; in pktgen_if_write()
|
/net/sunrpc/ |
D | xdr.c | 177 size_t copy; in _shift_data_right_pages() local 201 copy = len; in _shift_data_right_pages() 202 if (copy > pgto_base) in _shift_data_right_pages() 203 copy = pgto_base; in _shift_data_right_pages() 204 if (copy > pgfrom_base) in _shift_data_right_pages() 205 copy = pgfrom_base; in _shift_data_right_pages() 206 pgto_base -= copy; in _shift_data_right_pages() 207 pgfrom_base -= copy; in _shift_data_right_pages() 211 memmove(vto + pgto_base, vfrom + pgfrom_base, copy); in _shift_data_right_pages() 216 } while ((len -= copy) != 0); in _shift_data_right_pages() [all …]
|
/net/rxrpc/ |
D | ar-output.c | 559 int copy; in rxrpc_send_data() local 631 copy = skb_tailroom(skb); in rxrpc_send_data() 632 ASSERTCMP(copy, >, 0); in rxrpc_send_data() 633 if (copy > segment) in rxrpc_send_data() 634 copy = segment; in rxrpc_send_data() 635 if (copy > sp->remain) in rxrpc_send_data() 636 copy = sp->remain; in rxrpc_send_data() 639 ret = skb_add_data(skb, from, copy); in rxrpc_send_data() 643 sp->remain -= copy; in rxrpc_send_data() 644 skb->mark += copy; in rxrpc_send_data() [all …]
|
D | ar-recvmsg.c | 54 int copy, ret, ullen, offset, copied = 0; in rxrpc_recvmsg() local 176 copy = skb->len - offset; in rxrpc_recvmsg() 177 if (copy > len - copied) in rxrpc_recvmsg() 178 copy = len - copied; in rxrpc_recvmsg() 182 msg->msg_iov, copy); in rxrpc_recvmsg() 194 _debug("copied %d+%d", copy, copied); in rxrpc_recvmsg() 196 offset += copy; in rxrpc_recvmsg() 197 copied += copy; in rxrpc_recvmsg()
|
/net/ipv4/ |
D | ip_output.c | 739 csum_page(struct page *page, int offset, int copy) in csum_page() argument 744 csum = csum_partial(kaddr + offset, copy, 0); in csum_page() 813 int copy; in __ip_append_data() local 870 copy = mtu - skb->len; in __ip_append_data() 871 if (copy < length) in __ip_append_data() 872 copy = maxfraglen - skb->len; in __ip_append_data() 873 if (copy <= 0) { in __ip_append_data() 960 copy = datalen - transhdrlen - fraggap; in __ip_append_data() 961 if (copy > 0 && getfrag(from, data + transhdrlen, offset, copy, fraggap, skb) < 0) { in __ip_append_data() 967 offset += copy; in __ip_append_data() [all …]
|
D | tcp.c | 867 int copy, i; in do_tcp_sendpages() local 870 if (!tcp_send_head(sk) || (copy = size_goal - skb->len) <= 0) { in do_tcp_sendpages() 880 copy = size_goal; in do_tcp_sendpages() 883 if (copy > size) in do_tcp_sendpages() 884 copy = size; in do_tcp_sendpages() 892 if (!sk_wmem_schedule(sk, copy)) in do_tcp_sendpages() 896 skb_frag_size_add(&skb_shinfo(skb)->frags[i - 1], copy); in do_tcp_sendpages() 899 skb_fill_page_desc(skb, i, page, offset, copy); in do_tcp_sendpages() 903 skb->len += copy; in do_tcp_sendpages() 904 skb->data_len += copy; in do_tcp_sendpages() [all …]
|
D | tcp_output.c | 1682 int copy; in tcp_mtu_probe() local 1741 copy = min_t(int, skb->len, probe_size - len); in tcp_mtu_probe() 1743 skb_copy_bits(skb, 0, skb_put(nskb, copy), copy); in tcp_mtu_probe() 1746 skb_put(nskb, copy), in tcp_mtu_probe() 1747 copy, nskb->csum); in tcp_mtu_probe() 1749 if (skb->len <= copy) { in tcp_mtu_probe() 1759 skb_pull(skb, copy); in tcp_mtu_probe() 1764 __pskb_trim_head(skb, copy); in tcp_mtu_probe() 1767 TCP_SKB_CB(skb)->seq += copy; in tcp_mtu_probe() 1770 len += copy; in tcp_mtu_probe()
|
D | tcp_input.c | 4501 int copy = SKB_MAX_ORDER(header, 0); in tcp_collapse() local 4504 if (copy < 0) in tcp_collapse() 4506 if (end - start < copy) in tcp_collapse() 4507 copy = end - start; in tcp_collapse() 4508 nskb = alloc_skb(copy + header, GFP_ATOMIC); in tcp_collapse() 4525 while (copy > 0) { in tcp_collapse() 4531 size = min(copy, size); in tcp_collapse() 4535 copy -= size; in tcp_collapse()
|
/net/wireless/ |
D | util.c | 1069 unsigned int copy; in cfg80211_get_p2p_attr() local 1095 copy = min_t(unsigned int, attr_remaining, iedatalen); in cfg80211_get_p2p_attr() 1096 if (copy && desired_attr) { in cfg80211_get_p2p_attr() 1097 desired_len += copy; in cfg80211_get_p2p_attr() 1099 memcpy(out, iedata, min(bufsize, copy)); in cfg80211_get_p2p_attr() 1100 out += min(bufsize, copy); in cfg80211_get_p2p_attr() 1101 bufsize -= min(bufsize, copy); in cfg80211_get_p2p_attr() 1105 if (copy == attr_remaining) in cfg80211_get_p2p_attr() 1109 attr_remaining -= copy; in cfg80211_get_p2p_attr() 1113 iedatalen -= copy; in cfg80211_get_p2p_attr() [all …]
|
/net/ipv6/ |
D | ip6_output.c | 1139 int copy; in ip6_append_data() local 1276 copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; in ip6_append_data() 1277 if (copy < length) in ip6_append_data() 1278 copy = maxfraglen - skb->len; in ip6_append_data() 1280 if (copy <= 0) { in ip6_append_data() 1384 copy = datalen - transhdrlen - fraggap; in ip6_append_data() 1386 if (copy < 0) { in ip6_append_data() 1390 } else if (copy > 0 && getfrag(from, data + transhdrlen, offset, copy, fraggap, skb) < 0) { in ip6_append_data() 1396 offset += copy; in ip6_append_data() 1409 if (copy > length) in ip6_append_data() [all …]
|
/net/appletalk/ |
D | ddp.c | 936 int i, copy; in atalk_sum_skb() local 939 if ( (copy = start - offset) > 0) { in atalk_sum_skb() 940 if (copy > len) in atalk_sum_skb() 941 copy = len; in atalk_sum_skb() 942 sum = atalk_sum_partial(skb->data + offset, copy, sum); in atalk_sum_skb() 943 if ( (len -= copy) == 0) in atalk_sum_skb() 946 offset += copy; in atalk_sum_skb() 956 if ((copy = end - offset) > 0) { in atalk_sum_skb() 959 if (copy > len) in atalk_sum_skb() 960 copy = len; in atalk_sum_skb() [all …]
|
/net/rds/ |
D | recv.c | 302 LIST_HEAD(copy); in rds_notify_queue_get() 323 list_move(¬ifier->n_list, ©); in rds_notify_queue_get() 331 while (!list_empty(©)) { in rds_notify_queue_get() 332 notifier = list_entry(copy.next, struct rds_notifier, n_list); in rds_notify_queue_get() 351 if (!list_empty(©)) { in rds_notify_queue_get() 353 list_splice(©, &rs->rs_notify_queue); in rds_notify_queue_get()
|
/net/mac80211/ |
D | mesh_pathtbl.c | 284 bool copy) in mesh_path_move_to_queue() argument 313 if (copy) in mesh_path_move_to_queue() 323 if (!copy) in mesh_path_move_to_queue() 917 bool copy = false; in mesh_path_send_to_gates() local 934 mesh_path_move_to_queue(gate->mpath, from_mpath, copy); in mesh_path_send_to_gates() 936 copy = true; in mesh_path_send_to_gates()
|
/net/ipx/ |
D | ipx_route.c | 26 struct sk_buff *skb, int copy); 28 struct sk_buff *skb, int copy);
|
D | af_ipx.c | 380 struct sk_buff *skb, int copy) in ipxitf_demux_socket() argument 399 if (copy) { in ipxitf_demux_socket() 406 copy = 1; /* skb may only be used once */ in ipxitf_demux_socket() 417 if (!copy) in ipxitf_demux_socket() 463 struct sk_buff *skb, int copy) in ipxitf_demux_socket() argument 501 if (!copy) in ipxitf_demux_socket() 514 if (copy) in ipxitf_demux_socket()
|
/net/iucv/ |
D | iucv.c | 1117 size_t copy; in iucv_message_receive_iprmdata() local 1130 copy = min_t(size_t, size, array->length); in iucv_message_receive_iprmdata() 1132 rmmsg, copy); in iucv_message_receive_iprmdata() 1133 rmmsg += copy; in iucv_message_receive_iprmdata() 1134 size -= copy; in iucv_message_receive_iprmdata()
|
/net/ax25/ |
D | af_ax25.c | 246 struct sk_buff *copy; in ax25_send_to_raw() local 255 if ((copy = skb_clone(skb, GFP_ATOMIC)) == NULL) in ax25_send_to_raw() 257 if (sock_queue_rcv_skb(s->sk, copy) != 0) in ax25_send_to_raw() 258 kfree_skb(copy); in ax25_send_to_raw()
|
/net/netfilter/ipset/ |
D | ip_set_core.c | 1790 goto copy; in ip_set_sockfn_get() 1806 goto copy; in ip_set_sockfn_get() 1813 copy: in ip_set_sockfn_get()
|
/net/phonet/ |
D | pep.c | 1276 goto copy; in pep_recvmsg() 1294 copy: in pep_recvmsg()
|