/net/phonet/ |
D | datagram.c | 120 int copylen; in pn_recvmsg() local 132 copylen = skb->len; in pn_recvmsg() 133 if (len < copylen) { in pn_recvmsg() 135 copylen = len; in pn_recvmsg() 138 rval = skb_copy_datagram_msg(skb, 0, msg, copylen); in pn_recvmsg() 144 rval = (flags & MSG_TRUNC) ? skb->len : copylen; in pn_recvmsg()
|
/net/dccp/ |
D | options.c | 435 int copylen = len; in dccp_insert_option_ackvec() local 438 copylen = DCCP_SINGLE_OPT_MAXLEN; in dccp_insert_option_ackvec() 447 *to++ = copylen + 2; in dccp_insert_option_ackvec() 450 if (from + copylen > tail) { in dccp_insert_option_ackvec() 456 copylen -= tailsize; in dccp_insert_option_ackvec() 460 memcpy(to, from, copylen); in dccp_insert_option_ackvec() 461 from += copylen; in dccp_insert_option_ackvec() 462 to += copylen; in dccp_insert_option_ackvec() 463 len -= copylen; in dccp_insert_option_ackvec()
|
/net/smc/ |
D | smc_rx.c | 284 size_t copylen, read_done = 0, read_remaining = len; in smc_rx_recvmsg() local 393 copylen = min_t(size_t, read_remaining, readable); in smc_rx_recvmsg() 396 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg() 422 if (chunk_len_sum == copylen) in smc_rx_recvmsg() 425 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg() 435 atomic_sub(copylen, &conn->bytes_to_rcv); in smc_rx_recvmsg() 438 if (msg && smc_rx_update_consumer(smc, cons, copylen)) in smc_rx_recvmsg()
|
D | smc_tx.c | 139 size_t copylen, send_done = 0, send_remaining = len; in smc_tx_sendmsg() local 193 copylen = min_t(size_t, send_remaining, writespace); in smc_tx_sendmsg() 200 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg() 217 if (chunk_len_sum == copylen) in smc_tx_sendmsg() 220 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg() 226 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg() 230 atomic_sub(copylen, &conn->sndbuf_space); in smc_tx_sendmsg()
|
/net/hsr/ |
D | hsr_forward.c | 82 int copylen; in create_stripped_skb_hsr() local 96 copylen = 2 * ETH_ALEN; in create_stripped_skb_hsr() 98 copylen += VLAN_HLEN; in create_stripped_skb_hsr() 101 memcpy(dst, src, copylen); in create_stripped_skb_hsr()
|
/net/caif/ |
D | caif_socket.c | 278 int copylen; in caif_seqpkt_recvmsg() local 287 copylen = skb->len; in caif_seqpkt_recvmsg() 288 if (len < copylen) { in caif_seqpkt_recvmsg() 290 copylen = len; in caif_seqpkt_recvmsg() 293 ret = skb_copy_datagram_msg(skb, 0, m, copylen); in caif_seqpkt_recvmsg() 297 ret = (flags & MSG_TRUNC) ? skb->len : copylen; in caif_seqpkt_recvmsg()
|
/net/ipv4/ |
D | tcp.c | 1908 struct sk_buff *skb, u32 copylen, in tcp_copy_straggler_data() argument 1920 copylen, &iov, &msg.msg_iter); in tcp_copy_straggler_data() 1923 err = skb_copy_datagram_msg(skb, *offset, &msg, copylen); in tcp_copy_straggler_data() 1926 zc->recv_skip_hint -= copylen; in tcp_copy_straggler_data() 1927 *offset += copylen; in tcp_copy_straggler_data() 1928 *seq += copylen; in tcp_copy_straggler_data() 1929 return (__s32)copylen; in tcp_copy_straggler_data() 1939 u32 offset, copylen = min_t(u32, copybuf_len, zc->recv_skip_hint); in tcp_zc_handle_leftover() local 1941 if (!copylen) in tcp_zc_handle_leftover() 1954 zc->copybuf_len = tcp_copy_straggler_data(zc, skb, copylen, &offset, in tcp_zc_handle_leftover() [all …]
|
/net/packet/ |
D | af_packet.c | 2531 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument 2560 } else if (copylen) { in tpacket_fill_skb() 2561 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb() 2564 skb_put(skb, copylen - dev->hard_header_len); in tpacket_fill_skb() 2693 int hlen, tlen, copylen = 0; in tpacket_snd() local 2783 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd() 2786 copylen = max_t(int, copylen, dev->hard_header_len); in tpacket_snd() 2789 (copylen - dev->hard_header_len), in tpacket_snd() 2799 addr, hlen, copylen, &sockc); in tpacket_snd()
|
/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2779 unsigned int copylen; in do_ip_vs_get_ctl() local 2791 copylen = get_arglen[CMDID(cmd)]; in do_ip_vs_get_ctl() 2792 if (*len < (int) copylen) { in do_ip_vs_get_ctl() 2793 IP_VS_DBG(1, "get_ctl: len %d < %u\n", *len, copylen); in do_ip_vs_get_ctl() 2797 if (copy_from_user(arg, user, copylen) != 0) in do_ip_vs_get_ctl()
|
/net/netfilter/ipset/ |
D | ip_set_core.c | 2224 int copylen = *len, ret = 0; in ip_set_sockfn_get() local 2330 if (copy_to_user(user, data, copylen)) in ip_set_sockfn_get()
|