/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/net/dccp/ |
D | options.c | 434 int copylen = len; in dccp_insert_option_ackvec() local 437 copylen = DCCP_SINGLE_OPT_MAXLEN; in dccp_insert_option_ackvec() 446 *to++ = copylen + 2; in dccp_insert_option_ackvec() 449 if (from + copylen > tail) { in dccp_insert_option_ackvec() 455 copylen -= tailsize; in dccp_insert_option_ackvec() 459 memcpy(to, from, copylen); in dccp_insert_option_ackvec() 460 from += copylen; in dccp_insert_option_ackvec() 461 to += copylen; in dccp_insert_option_ackvec() 462 len -= copylen; in dccp_insert_option_ackvec()
|
/Linux-v5.4/net/smc/ |
D | smc_rx.c | 286 size_t copylen, read_done = 0, read_remaining = len; in smc_rx_recvmsg() local 387 copylen = min_t(size_t, read_remaining, readable); in smc_rx_recvmsg() 390 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg() 416 if (chunk_len_sum == copylen) in smc_rx_recvmsg() 419 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg() 429 atomic_sub(copylen, &conn->bytes_to_rcv); in smc_rx_recvmsg() 432 if (msg && smc_rx_update_consumer(smc, cons, copylen)) in smc_rx_recvmsg()
|
D | smc_tx.c | 135 size_t copylen, send_done = 0, send_remaining = len; in smc_tx_sendmsg() local 179 copylen = min_t(size_t, send_remaining, writespace); in smc_tx_sendmsg() 186 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg() 203 if (chunk_len_sum == copylen) in smc_tx_sendmsg() 206 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg() 212 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg() 216 atomic_sub(copylen, &conn->sndbuf_space); in smc_tx_sendmsg()
|
/Linux-v5.4/net/hsr/ |
D | hsr_forward.c | 90 int copylen; in create_stripped_skb() local 104 copylen = 2 * ETH_ALEN; in create_stripped_skb() 106 copylen += VLAN_HLEN; in create_stripped_skb() 109 memcpy(dst, src, copylen); in create_stripped_skb()
|
/Linux-v5.4/drivers/net/ |
D | tap.c | 633 int copylen = 0; in tap_get_user() local 669 copylen = vnet_hdr.hdr_len ? in tap_get_user() 671 if (copylen > good_linear) in tap_get_user() 672 copylen = good_linear; in tap_get_user() 673 else if (copylen < ETH_HLEN) in tap_get_user() 674 copylen = ETH_HLEN; in tap_get_user() 675 linear = copylen; in tap_get_user() 677 iov_iter_advance(&i, copylen); in tap_get_user() 683 copylen = len; in tap_get_user() 691 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()
|
/Linux-v5.4/tools/testing/selftests/rseq/ |
D | param_test.c | 899 size_t copylen; in this_cpu_memcpy_buffer_push() local 910 copylen = sizeof(item); in this_cpu_memcpy_buffer_push() 916 destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push() 920 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push() 943 size_t copylen; in this_cpu_memcpy_buffer_pop() local 954 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop() 958 offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_pop()
|
/Linux-v5.4/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()
|
/Linux-v5.4/net/ |
D | compat.c | 614 int copylen; in compat_mc_getsockopt() local 617 copylen = numsrc * sizeof(gf32->gf_slist[0]); in compat_mc_getsockopt() 618 if (copylen > klen) in compat_mc_getsockopt() 619 copylen = klen; in compat_mc_getsockopt() 620 if (copy_in_user(gf32->gf_slist, kgf->gf_slist, copylen)) in compat_mc_getsockopt()
|
/Linux-v5.4/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()
|
/Linux-v5.4/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()
|
/Linux-v5.4/net/packet/ |
D | af_packet.c | 2454 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument 2483 } else if (copylen) { in tpacket_fill_skb() 2484 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb() 2487 skb_put(skb, copylen - dev->hard_header_len); in tpacket_fill_skb() 2616 int hlen, tlen, copylen = 0; in tpacket_snd() local 2706 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd() 2709 copylen = max_t(int, copylen, dev->hard_header_len); in tpacket_snd() 2712 (copylen - dev->hard_header_len), in tpacket_snd() 2722 addr, hlen, copylen, &sockc); in tpacket_snd()
|
/Linux-v5.4/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 1123 long copylen = 0; in usbvision_parse_data() local 1137 newstate = usbvision_parse_lines_420(usbvision, ©len); in usbvision_parse_data() 1139 newstate = usbvision_parse_lines_422(usbvision, ©len); in usbvision_parse_data() 1141 newstate = usbvision_parse_compress(usbvision, ©len); in usbvision_parse_data() 1173 frame->scanlength += copylen; in usbvision_parse_data()
|
/Linux-v5.4/drivers/net/wireless/ |
D | rndis_wlan.c | 704 int resplen, respoffs, copylen; in rndis_query_oid() local 751 copylen = buflen - respoffs; in rndis_query_oid() 753 copylen = resplen; in rndis_query_oid() 756 if (copylen > *len) in rndis_query_oid() 757 copylen = *len; in rndis_query_oid() 759 memcpy(data, u.buf + respoffs, copylen); in rndis_query_oid()
|
/Linux-v5.4/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2732 unsigned int copylen; in do_ip_vs_get_ctl() local 2744 copylen = get_arglen[CMDID(cmd)]; in do_ip_vs_get_ctl() 2745 if (*len < (int) copylen) { in do_ip_vs_get_ctl() 2746 IP_VS_DBG(1, "get_ctl: len %d < %u\n", *len, copylen); in do_ip_vs_get_ctl() 2750 if (copy_from_user(arg, user, copylen) != 0) in do_ip_vs_get_ctl()
|
/Linux-v5.4/net/netfilter/ipset/ |
D | ip_set_core.c | 2042 int copylen = *len, ret = 0; in ip_set_sockfn_get() local 2148 if (copy_to_user(user, data, copylen)) in ip_set_sockfn_get()
|