/kernel/linux/linux-5.10/drivers/input/serio/ |
D | userio.c | 126 size_t nonwrap_len, copylen; in userio_char_read() local 143 copylen = min(nonwrap_len, count); in userio_char_read() 144 if (copylen) { in userio_char_read() 145 memcpy(buf, &userio->buf[userio->tail], copylen); in userio_char_read() 146 userio->tail = (userio->tail + copylen) % in userio_char_read() 172 if (copylen) in userio_char_read() 173 if (copy_to_user(user_buffer, buf, copylen)) in userio_char_read() 176 return copylen; in userio_char_read()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/smc/ |
D | smc_rx.c | 282 size_t copylen, read_done = 0, read_remaining = len; in smc_rx_recvmsg() local 385 copylen = min_t(size_t, read_remaining, readable); in smc_rx_recvmsg() 388 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg() 414 if (chunk_len_sum == copylen) in smc_rx_recvmsg() 417 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg() 427 atomic_sub(copylen, &conn->bytes_to_rcv); in smc_rx_recvmsg() 430 if (msg && smc_rx_update_consumer(smc, cons, copylen)) in smc_rx_recvmsg()
|
D | smc_tx.c | 136 size_t copylen, send_done = 0, send_remaining = len; in smc_tx_sendmsg() local 180 copylen = min_t(size_t, send_remaining, writespace); in smc_tx_sendmsg() 187 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg() 204 if (chunk_len_sum == copylen) in smc_tx_sendmsg() 207 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg() 213 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg() 217 atomic_sub(copylen, &conn->sndbuf_space); in smc_tx_sendmsg()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | tap.c | 631 int copylen = 0; in tap_get_user() local 667 copylen = vnet_hdr.hdr_len ? in tap_get_user() 669 if (copylen > good_linear) in tap_get_user() 670 copylen = good_linear; in tap_get_user() 671 else if (copylen < ETH_HLEN) in tap_get_user() 672 copylen = ETH_HLEN; in tap_get_user() 673 linear = copylen; in tap_get_user() 675 iov_iter_advance(&i, copylen); in tap_get_user() 681 copylen = len; in tap_get_user() 689 skb = tap_alloc_skb(&q->sk, TAP_RESERVE, copylen, in tap_get_user()
|
D | tun.c | 1753 int copylen; in tun_get_user() local 1804 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user() 1805 if (copylen > good_linear) in tun_get_user() 1806 copylen = good_linear; in tun_get_user() 1807 linear = copylen; in tun_get_user() 1808 iov_iter_advance(&i, copylen); in tun_get_user() 1827 copylen = len; in tun_get_user() 1836 skb = tun_napi_alloc_frags(tfile, copylen, from); in tun_get_user() 1843 skb = tun_alloc_skb(tfile, align, copylen, linear, in tun_get_user()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/rseq/ |
D | param_test.c | 903 size_t copylen; in this_cpu_memcpy_buffer_push() local 914 copylen = sizeof(item); in this_cpu_memcpy_buffer_push() 920 destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push() 924 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push() 947 size_t copylen; in this_cpu_memcpy_buffer_pop() local 958 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop() 962 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_pop()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp.c | 1775 struct sk_buff *skb, u32 copylen, in tcp_copy_straggler_data() argument 1787 copylen, &iov, &msg.msg_iter); in tcp_copy_straggler_data() 1790 err = skb_copy_datagram_msg(skb, *offset, &msg, copylen); in tcp_copy_straggler_data() 1793 zc->recv_skip_hint -= copylen; in tcp_copy_straggler_data() 1794 *offset += copylen; in tcp_copy_straggler_data() 1795 *seq += copylen; in tcp_copy_straggler_data() 1796 return (__s32)copylen; in tcp_copy_straggler_data() 1805 u32 offset, copylen = min_t(u32, copybuf_len, zc->recv_skip_hint); in tcp_zerocopy_handle_leftover_data() local 1807 if (!copylen) in tcp_zerocopy_handle_leftover_data() 1815 zc->copybuf_len = tcp_copy_straggler_data(zc, skb, copylen, &offset, in tcp_zerocopy_handle_leftover_data() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rx.c | 903 u32 copylen = len; in iwlagn_rx_noa_notification() local 909 copylen += 1 + 2; in iwlagn_rx_noa_notification() 921 copylen); in iwlagn_rx_noa_notification()
|
/kernel/linux/linux-5.10/drivers/net/wireless/zydas/ |
D | zd1201.c | 230 unsigned short infotype, copylen; in zd1201_usbrx() local 294 copylen = le16_to_cpu(*(__le16*)&data[i+2]); in zd1201_usbrx() 296 if (copylen+zd->rxlen > sizeof(zd->rxdata)) in zd1201_usbrx() 298 memcpy(zd->rxdata+zd->rxlen, data+i+4, copylen); in zd1201_usbrx() 299 zd->rxlen += copylen; in zd1201_usbrx()
|
/kernel/linux/linux-5.10/net/packet/ |
D | af_packet.c | 2516 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument 2545 } else if (copylen) { in tpacket_fill_skb() 2546 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb() 2549 skb_put(skb, copylen - dev->hard_header_len); in tpacket_fill_skb() 2678 int hlen, tlen, copylen = 0; in tpacket_snd() local 2768 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd() 2771 copylen = max_t(int, copylen, dev->hard_header_len); in tpacket_snd() 2774 (copylen - dev->hard_header_len), in tpacket_snd() 2784 addr, hlen, copylen, &sockc); in tpacket_snd()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ |
D | rndis_wlan.c | 698 size_t buflen, resplen, respoffs, copylen; in rndis_query_oid() local 741 copylen = min(resplen, buflen - respoffs); in rndis_query_oid() 743 if (copylen > *len) in rndis_query_oid() 744 copylen = *len; in rndis_query_oid() 746 memcpy(data, u.buf + respoffs, copylen); in rndis_query_oid()
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2776 unsigned int copylen; in do_ip_vs_get_ctl() local 2788 copylen = get_arglen[CMDID(cmd)]; in do_ip_vs_get_ctl() 2789 if (*len < (int) copylen) { in do_ip_vs_get_ctl() 2790 IP_VS_DBG(1, "get_ctl: len %d < %u\n", *len, copylen); in do_ip_vs_get_ctl() 2794 if (copy_from_user(arg, user, copylen) != 0) in do_ip_vs_get_ctl()
|
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
D | ip_set_core.c | 2236 int copylen = *len, ret = 0; in ip_set_sockfn_get() local 2342 if (copy_to_user(user, data, copylen)) in ip_set_sockfn_get()
|