| /net/core/ |
| A D | datagram.c | 399 if (copy > 0) { in __skb_datagram_iter() 400 if (copy > len) in __skb_datagram_iter() 401 copy = len; in __skb_datagram_iter() 405 if (n != copy) in __skb_datagram_iter() 428 copy = len; in __skb_datagram_iter() 457 copy = len; in __skb_datagram_iter() 558 if (copy > 0) { in skb_copy_datagram_from_iter() 560 copy = len; in skb_copy_datagram_from_iter() 561 if (copy_from_iter(skb->data + offset, copy, from) != copy) in skb_copy_datagram_from_iter() 580 copy = len; in skb_copy_datagram_from_iter() [all …]
|
| A D | skbuff.c | 2944 int i, copy; in skb_copy_bits() local 2952 copy = len; in skb_copy_bits() 3371 int i, copy; in skb_store_bits() local 3378 copy = len; in skb_store_bits() 3458 copy = len; in skb_checksum() 3463 pos = copy; in skb_checksum() 3544 copy); in skb_copy_and_csum_bits() 3549 pos = copy; in skb_copy_and_csum_bits() 3626 copy = min(copy, len); in skb_crc32c() 3650 copy = min(copy, len); in skb_crc32c() [all …]
|
| A D | skmsg.c | 395 if (ret != copy) { in sk_msg_memcopy_from_iter() 399 bytes -= copy; in sk_msg_memcopy_from_iter() 400 copied += copy; in sk_msg_memcopy_from_iter() 431 int copy; in sk_msg_recvmsg() local 434 copy = sge->length; in sk_msg_recvmsg() 437 copy = len - copied; in sk_msg_recvmsg() 438 if (copy) in sk_msg_recvmsg() 439 copy = copy_page_to_iter(page, sge->offset, copy, iter); in sk_msg_recvmsg() 440 if (!copy) { in sk_msg_recvmsg() 445 copied += copy; in sk_msg_recvmsg() [all …]
|
| /net/tls/ |
| A D | tls_device.c | 433 int copy, rc = 0; in tls_push_data() local 499 copy, 1, 0, &off); in tls_push_data() 505 copy = rc; in tls_push_data() 514 zc_pfrag.size = copy; in tls_push_data() 516 } else if (copy) { in tls_push_data() 517 copy = min_t(size_t, copy, pfrag->size - pfrag->offset); in tls_push_data() 527 size -= copy; in tls_push_data() 931 offset += copy; in tls_device_reencrypt() 932 buf += copy; in tls_device_reencrypt() 958 offset += copy; in tls_device_reencrypt() [all …]
|
| /net/ipv4/ |
| A D | ip_output.c | 965 int copy; in __ip_append_data() local 1072 if (copy < length) in __ip_append_data() 1074 if (copy <= 0) { in __ip_append_data() 1169 if (copy > 0 && in __ip_append_data() 1177 copy = 0; in __ip_append_data() 1180 offset += copy; in __ip_append_data() 1209 copy = length; in __ip_append_data() 1233 copy = err; in __ip_append_data() 1254 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip_append_data() 1270 offset += copy; in __ip_append_data() [all …]
|
| A D | tcp.c | 991 return copy; in tcp_wmem_schedule() 1240 copy = min_t(int, copy, pfrag->size - pfrag->offset); in tcp_sendmsg_locked() 1248 copy = tcp_wmem_schedule(sk, copy); in tcp_sendmsg_locked() 1249 if (!copy) in tcp_sendmsg_locked() 1276 copy = tcp_wmem_schedule(sk, copy); in tcp_sendmsg_locked() 1277 if (!copy) in tcp_sendmsg_locked() 1289 copy = err; in tcp_sendmsg_locked() 1294 copy = tcp_wmem_schedule(sk, copy); in tcp_sendmsg_locked() 1295 if (!copy) in tcp_sendmsg_locked() 2478 copy = min(copy, remaining_len); in tcp_recvmsg_dmabuf() [all …]
|
| A D | tcp_bpf.c | 515 u32 copy, osize; in tcp_bpf_sendmsg() local 522 copy = msg_data_left(msg); in tcp_bpf_sendmsg() 533 err = sk_msg_alloc(sk, msg_tx, msg_tx->sg.size + copy, msg_tx->sg.end - 1); in tcp_bpf_sendmsg() 538 copy = msg_tx->sg.size - osize; in tcp_bpf_sendmsg() 542 copy); in tcp_bpf_sendmsg()
|
| A D | raw.c | 457 int copy = min(rfv->hlen - offset, len); in raw_getfrag() local 460 memcpy(to, rfv->hdr.c + offset, copy); in raw_getfrag() 465 to, copy), in raw_getfrag() 469 offset += copy; in raw_getfrag() 470 to += copy; in raw_getfrag() 471 len -= copy; in raw_getfrag()
|
| /net/sunrpc/ |
| A D | xdr.c | 244 size_t copy; in _shift_data_left_pages() local 267 copy = len; in _shift_data_left_pages() 309 size_t copy; in _shift_data_right_pages() local 336 copy = len; in _shift_data_right_pages() 372 size_t copy; in _copy_to_pages() local 383 copy = len; in _copy_to_pages() 389 len -= copy; in _copy_to_pages() 399 p += copy; in _copy_to_pages() 419 size_t copy; in _copy_from_pages() local 430 copy = len; in _copy_from_pages() [all …]
|
| /net/ipv6/ |
| A D | ip6_output.c | 1438 int copy; in __ip6_append_data() local 1588 if (copy < length) in __ip6_append_data() 1591 if (copy <= 0) { in __ip6_append_data() 1705 if (copy > 0 && in __ip6_append_data() 1713 copy = 0; in __ip6_append_data() 1716 offset += copy; in __ip6_append_data() 1745 copy = length; in __ip6_append_data() 1769 copy = err; in __ip6_append_data() 1790 copy = min_t(int, copy, pfrag->size - pfrag->offset); in __ip6_append_data() 1808 offset += copy; in __ip6_append_data() [all …]
|
| A D | raw.c | 715 int copy = min(rfv->hlen - offset, len); in raw6_getfrag() local 718 memcpy(to, rfv->c + offset, copy); in raw6_getfrag() 723 to, copy), in raw6_getfrag() 727 offset += copy; in raw6_getfrag() 728 to += copy; in raw6_getfrag() 729 len -= copy; in raw6_getfrag()
|
| /net/rxrpc/ |
| A D | recvmsg.c | 253 int copy, ret = -EAGAIN, ret2; in rxrpc_recvmsg_data() local 303 copy = rx_pkt_len; in rxrpc_recvmsg_data() 304 if (copy > remain) in rxrpc_recvmsg_data() 305 copy = remain; in rxrpc_recvmsg_data() 306 if (copy > 0) { in rxrpc_recvmsg_data() 308 copy); in rxrpc_recvmsg_data() 315 rx_pkt_offset += copy; in rxrpc_recvmsg_data() 316 rx_pkt_len -= copy; in rxrpc_recvmsg_data() 317 *_offset += copy; in rxrpc_recvmsg_data()
|
| A D | sendmsg.c | 419 size_t copy = umin(txb->space, msg_data_left(msg)); in rxrpc_send_data() local 421 _debug("add %zu", copy); in rxrpc_send_data() 423 copy, &msg->msg_iter)) in rxrpc_send_data() 426 txb->space -= copy; in rxrpc_send_data() 427 txb->len += copy; in rxrpc_send_data() 428 txb->offset += copy; in rxrpc_send_data() 429 copied += copy; in rxrpc_send_data() 431 call->tx_total_len -= copy; in rxrpc_send_data()
|
| /net/appletalk/ |
| A D | ddp.c | 952 int i, copy; in atalk_sum_skb() local 956 if (copy > len) in atalk_sum_skb() 957 copy = len; in atalk_sum_skb() 962 offset += copy; in atalk_sum_skb() 975 if (copy > len) in atalk_sum_skb() 976 copy = len; in atalk_sum_skb() 984 offset += copy; in atalk_sum_skb() 996 if (copy > len) in atalk_sum_skb() 997 copy = len; in atalk_sum_skb() 999 copy, sum); in atalk_sum_skb() [all …]
|
| /net/kcm/ |
| A D | kcmsock.c | 753 size_t copy, copied = 0; in kcm_sendmsg() local 835 copy = msg_data_left(msg); in kcm_sendmsg() 846 copy = err; in kcm_sendmsg() 849 sk_mem_charge(sk, copy); in kcm_sendmsg() 852 head->truesize += copy; in kcm_sendmsg() 862 copy); in kcm_sendmsg() 872 pfrag->offset, copy); in kcm_sendmsg() 876 pfrag->offset += copy; in kcm_sendmsg() 879 copied += copy; in kcm_sendmsg() 881 head->len += copy; in kcm_sendmsg() [all …]
|
| /net/wireless/ |
| A D | util.c | 1895 unsigned int copy; in cfg80211_get_p2p_attr() local 1922 if (copy && desired_attr) { in cfg80211_get_p2p_attr() 1923 desired_len += copy; in cfg80211_get_p2p_attr() 1926 out += min(bufsize, copy); in cfg80211_get_p2p_attr() 1935 attr_remaining -= copy; in cfg80211_get_p2p_attr() 1939 iedatalen -= copy; in cfg80211_get_p2p_attr() 1940 iedata += copy; in cfg80211_get_p2p_attr() 1956 desired_len += copy; in cfg80211_get_p2p_attr() 1963 if (copy == attr_len) in cfg80211_get_p2p_attr() 1967 iedata += copy; in cfg80211_get_p2p_attr() [all …]
|
| /net/mptcp/ |
| A D | protocol.c | 1186 size_t copy; in mptcp_sendmsg_frag() local 1203 copy = info->size_goal; in mptcp_sendmsg_frag() 1227 copy -= skb->len; in mptcp_sendmsg_frag() 1240 copy = mptcp_check_allowed_size(msk, ssk, data_seq, copy); in mptcp_sendmsg_frag() 1241 if (copy == 0) { in mptcp_sendmsg_frag() 1251 copy = 1; in mptcp_sendmsg_frag() 1254 copy = min_t(size_t, copy, info->limit - info->sent); in mptcp_sendmsg_frag() 1267 skb->len += copy; in mptcp_sendmsg_frag() 1268 skb->data_len += copy; in mptcp_sendmsg_frag() 1269 skb->truesize += copy; in mptcp_sendmsg_frag() [all …]
|
| /net/rds/ |
| A D | recv.c | 461 LIST_HEAD(copy); in rds_notify_queue_get() 483 list_move(¬ifier->n_list, ©); in rds_notify_queue_get() 491 while (!list_empty(©)) { in rds_notify_queue_get() 492 notifier = list_entry(copy.next, struct rds_notifier, n_list); in rds_notify_queue_get() 511 if (!list_empty(©)) { in rds_notify_queue_get() 513 list_splice(©, &rs->rs_notify_queue); in rds_notify_queue_get()
|
| A D | message.c | 78 LIST_HEAD(copy); in rds_notify_msg_zcopy_purge() 82 list_splice(&q->zcookie_head, ©); in rds_notify_msg_zcopy_purge() 86 list_for_each_entry_safe(info, tmp, ©, rs_zcookie_next) { in rds_notify_msg_zcopy_purge()
|
| /net/mac80211/ |
| A D | mesh_pathtbl.c | 193 bool copy) in mesh_path_move_to_queue() argument 224 if (copy) in mesh_path_move_to_queue() 234 if (!copy) in mesh_path_move_to_queue() 969 bool copy = false; in mesh_path_send_to_gates() local 977 mesh_path_move_to_queue(gate, from_mpath, copy); in mesh_path_send_to_gates() 979 copy = true; in mesh_path_send_to_gates()
|
| /net/smc/ |
| A D | smc_rx.c | 389 goto copy; in smc_rx_recvmsg() 396 goto copy; in smc_rx_recvmsg() 434 copy: in smc_rx_recvmsg()
|
| /net/netfilter/ |
| A D | nft_set_pipapo.c | 661 unsigned int new_bucket_size, copy; in pipapo_resize() local 678 copy = f->bsize; in pipapo_resize() 680 copy = new_bucket_size; in pipapo_resize() 695 memcpy(new_p, old_p, copy * sizeof(*new_p)); in pipapo_resize() 696 new_p += copy; in pipapo_resize() 697 old_p += copy; in pipapo_resize()
|
| /net/iucv/ |
| A D | iucv.c | 1118 size_t copy; in iucv_message_receive_iprmdata() local 1131 copy = min_t(size_t, size, array->length); in iucv_message_receive_iprmdata() 1132 memcpy(dma32_to_virt(array->address), rmmsg, copy); in iucv_message_receive_iprmdata() 1133 rmmsg += copy; in iucv_message_receive_iprmdata() 1134 size -= copy; in iucv_message_receive_iprmdata()
|
| /net/tipc/ |
| A D | socket.c | 1887 int rc, err, hlen, dlen, copy; in tipc_recvmsg() local 1934 copy = min_t(int, dlen - offset, buflen); in tipc_recvmsg() 1938 if (unlikely(offset + copy < dlen)) { in tipc_recvmsg() 1941 skb_cb->bytes_read = offset + copy; in tipc_recvmsg() 1952 copy = 0; in tipc_recvmsg() 1965 copy = 0; in tipc_recvmsg() 1995 return rc ? rc : copy; in tipc_recvmsg() 2019 int offset, required, copy, copied = 0; in tipc_recvstream() local 2066 copy = min_t(int, dlen - offset, buflen - copied); in tipc_recvstream() 2070 copied += copy; in tipc_recvstream() [all …]
|
| /net/xdp/ |
| A D | xsk.c | 611 u32 hr, len, ts, offset, copy, copied; in xsk_build_skb_zerocopy() local 643 copy = min_t(u32, PAGE_SIZE - offset, len - copied); in xsk_build_skb_zerocopy() 644 skb_fill_page_desc(skb, i, page, offset, copy); in xsk_build_skb_zerocopy() 646 copied += copy; in xsk_build_skb_zerocopy() 647 addr += copy; in xsk_build_skb_zerocopy()
|