/net/core/ |
H A D | datagram.c | 313 * @skb: buffer to copy 315 * @to: io vector to copy to 316 * @len: amount of data to copy from buffer to iovec 318 * Note: the iovec is modified during the copy. 324 int i, copy = start - offset; local 330 if (copy > 0) { 331 if (copy > len) 332 copy = len; 333 if (memcpy_toiovec(to, skb->data + offset, copy)) 335 if ((len -= copy) 411 int i, copy = start - offset; local 500 int i, copy = start - offset; local 594 int copy = min_t(int, skb_headlen(skb), len); local 653 int i, copy = start - offset; local [all...] |
H A D | iovec.c | 78 * And now for the all-in-one: copy and checksum from a user iovec 99 int copy = min_t(unsigned int, len, iov->iov_len - offset); local 108 if (par_len > copy) { 109 if (copy_from_user(kdata, base, copy)) 111 kdata += copy; 112 base += copy; 113 partial_cnt += copy; 114 len -= copy; 127 copy -= par_len; 132 if (len > copy) { [all...] |
H A D | skbuff.c | 19 * Alan Cox : skb_copy copy arp field 697 /* We do not copy old->sk */ 796 * skb_copy_ubufs - copy userspace skb frags buffers to kernel 801 * It will copy all frags into kernel and drop the reference 808 * to allocate kernel memory to copy to. 932 * skb_copy - create private copy of an sk_buff 933 * @skb: buffer to copy 936 * Make a copy of both an &sk_buff and its data. This is used when the 937 * caller wishes to modify the data and needs a private copy of the 972 * __pskb_copy_fclone - create copy o 1596 int i, copy; local 1885 int i, copy; local 1958 int i, copy = start - offset; local 2043 int i, copy = start - offset; local 2812 int copy; local 3281 int i, copy = start - offset; local [all...] |
H A D | pktgen.c | 899 size_t copy = min_t(size_t, count, 1023); local 900 char tb[copy + 1]; 901 if (copy_from_user(tb, user_buffer, copy)) 903 tb[copy] = 0;
|
/net/sunrpc/ |
H A D | xdr.c | 162 * @len: number of bytes to copy 177 size_t copy; local 201 copy = len; 202 if (copy > pgto_base) 203 copy = pgto_base; 204 if (copy > pgfrom_base) 205 copy = pgfrom_base; 206 pgto_base -= copy; 207 pgfrom_base -= copy; 212 memcpy(vto + pgto_base, vfrom + pgfrom_base, copy); 237 size_t copy; local 281 size_t copy; local 319 size_t copy, offs; local 395 size_t copy; local [all...] |
/net/rxrpc/ |
H A D | ar-output.c | 562 int copy; local 634 copy = skb_tailroom(skb); 635 ASSERTCMP(copy, >, 0); 636 if (copy > segment) 637 copy = segment; 638 if (copy > sp->remain) 639 copy = sp->remain; 642 ret = skb_add_data(skb, from, copy); 646 sp->remain -= copy; 647 skb->mark += copy; [all...] |
H A D | ar-recvmsg.c | 54 int copy, ret, ullen, offset, copied = 0; local 144 /* copy the peer address and timestamp */ 179 copy = skb->len - offset; 180 if (copy > len - copied) 181 copy = len - copied; 183 ret = skb_copy_datagram_iovec(skb, offset, msg->msg_iov, copy); 189 _debug("copied %d+%d", copy, copied); 191 offset += copy; 192 copied += copy; 334 _debug("copy erro [all...] |
/net/wireless/ |
H A D | util.c | 1138 unsigned int copy; local 1164 copy = min_t(unsigned int, attr_remaining, iedatalen); 1165 if (copy && desired_attr) { 1166 desired_len += copy; 1168 memcpy(out, iedata, min(bufsize, copy)); 1169 out += min(bufsize, copy); 1170 bufsize -= min(bufsize, copy); 1174 if (copy == attr_remaining) 1178 attr_remaining -= copy; 1182 iedatalen -= copy; [all...] |
/net/ipv4/ |
H A D | tcp.c | 925 int copy, i; local 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; 1169 int copy = 0; local [all...] |
H A D | ip_output.c | 349 * copy saddr and daddr, possibly using 64bit load/stores 530 * we can switch to copy when see the first bad fragment. 773 csum_page(struct page *page, int offset, int copy) argument 778 csum = csum_partial(kaddr + offset, copy, 0); 852 int copy; local 914 copy = mtu - skb->len; 915 if (copy < length) 916 copy = maxfraglen - skb->len; 917 if (copy <= 0) { 1005 copy [all...] |
H A D | tcp_output.c | 446 u16 options = opts->options; /* mungable copy */ 885 * SKB, or a fresh unique copy made by the retransmit engine. 1812 int copy; local 1871 copy = min_t(int, skb->len, probe_size - len); 1873 skb_copy_bits(skb, 0, skb_put(nskb, copy), copy); 1876 skb_put(nskb, copy), 1877 copy, nskb->csum); 1879 if (skb->len <= copy) { 1889 skb_pull(skb, copy); [all...] |
H A D | tcp_input.c | 4583 int copy = min_t(int, SKB_MAX_ORDER(0, 0), end - start); local 4586 nskb = alloc_skb(copy, GFP_ATOMIC); 4596 while (copy > 0) { 4602 size = min(copy, size); 4606 copy -= size; 5089 * on the receive process context and checksum and copy 5094 * We do checksum and copy also but from device to kernel.
|
/net/ipv6/ |
H A D | ip6_output.c | 1151 int copy; local 1313 copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; 1314 if (copy < length) 1315 copy = maxfraglen - skb->len; 1317 if (copy <= 0) { 1420 copy = datalen - transhdrlen - fraggap; 1422 if (copy < 0) { 1426 } else if (copy > 0 && getfrag(from, data + transhdrlen, offset, copy, fraggap, skb) < 0) { 1432 offset += copy; [all...] |
/net/rds/ |
H A D | recv.c | 302 LIST_HEAD(copy); 308 * in the user provided cmsg buffer. We don't try to copy more, to avoid 323 list_move(¬ifier->n_list, ©); 331 while (!list_empty(©)) { 332 notifier = list_entry(copy.next, struct rds_notifier, n_list); 351 if (!list_empty(©)) { 353 list_splice(©, &rs->rs_notify_queue);
|
/net/appletalk/ |
H A D | ddp.c | 936 int i, copy; local 939 if ((copy = start - offset) > 0) { 940 if (copy > len) 941 copy = len; 942 sum = atalk_sum_partial(skb->data + offset, copy, sum); 943 if ((len -= copy) == 0) 946 offset += copy; 956 if ((copy = end - offset) > 0) { 959 if (copy > len) 960 copy [all...] |
/net/ipx/ |
H A D | ipx_route.c | 25 struct sk_buff *skb, int copy); 27 struct sk_buff *skb, int copy);
|
H A D | af_ipx.c | 365 struct sk_buff *skb, int copy) 384 if (copy) { 391 copy = 1; /* skb may only be used once */ 401 /* skb was solely for us, and we did not make a copy, so free it. */ 402 if (!copy) 448 struct sk_buff *skb, int copy) 486 if (!copy) 499 if (copy) 364 ipxitf_demux_socket(struct ipx_interface *intrfc, struct sk_buff *skb, int copy) argument 447 ipxitf_demux_socket(struct ipx_interface *intrfc, struct sk_buff *skb, int copy) argument
|
/net/mac80211/ |
H A D | mesh_pathtbl.c | 266 * mesh_path_move_to_queue - Move or copy frames from one mpath queue to another 268 * This function is used to transfer or copy frames from an unresolved mpath to 279 * @copy: When true, copy all the frames to the new mpath queue. When false, 284 bool copy) 315 if (copy) 325 if (!copy) 918 bool copy = false; local 935 mesh_path_move_to_queue(gate->mpath, from_mpath, copy); 937 copy 282 mesh_path_move_to_queue(struct mesh_path *gate_mpath, struct mesh_path *from_mpath, bool copy) argument [all...] |
/net/iucv/ |
H A D | iucv.c | 31 * You should have received a copy of the GNU General Public License 1129 size_t copy; local 1142 copy = min_t(size_t, size, array->length); 1144 rmmsg, copy); 1145 rmmsg += copy; 1146 size -= copy;
|
/net/ax25/ |
H A D | af_ax25.c | 246 struct sk_buff *copy; local 255 if ((copy = skb_clone(skb, GFP_ATOMIC)) == NULL) 257 if (sock_queue_rcv_skb(s->sk, copy) != 0) 258 kfree_skb(copy);
|
/net/netfilter/ipset/ |
H A D | ip_set_core.c | 1905 goto copy; 1922 goto copy; 1938 goto copy; 1945 copy:
|
/net/phonet/ |
H A D | pep.c | 19 * You should have received a copy of the GNU General Public License 1274 goto copy; 1292 copy:
|