/Linux-v4.19/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-v4.19/net/phonet/ |
D | datagram.c | 133 int copylen; in pn_recvmsg() local 145 copylen = skb->len; in pn_recvmsg() 146 if (len < copylen) { in pn_recvmsg() 148 copylen = len; in pn_recvmsg() 151 rval = skb_copy_datagram_msg(skb, 0, msg, copylen); in pn_recvmsg() 157 rval = (flags & MSG_TRUNC) ? skb->len : copylen; in pn_recvmsg()
|
/Linux-v4.19/net/dccp/ |
D | options.c | 438 int copylen = len; in dccp_insert_option_ackvec() local 441 copylen = DCCP_SINGLE_OPT_MAXLEN; in dccp_insert_option_ackvec() 450 *to++ = copylen + 2; in dccp_insert_option_ackvec() 453 if (from + copylen > tail) { in dccp_insert_option_ackvec() 459 copylen -= tailsize; in dccp_insert_option_ackvec() 463 memcpy(to, from, copylen); in dccp_insert_option_ackvec() 464 from += copylen; in dccp_insert_option_ackvec() 465 to += copylen; in dccp_insert_option_ackvec() 466 len -= copylen; in dccp_insert_option_ackvec()
|
/Linux-v4.19/net/smc/ |
D | smc_rx.c | 276 size_t copylen, read_done = 0, read_remaining = len; in smc_rx_recvmsg() local 375 copylen = min_t(size_t, read_remaining, readable); in smc_rx_recvmsg() 378 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg() 404 if (chunk_len_sum == copylen) in smc_rx_recvmsg() 407 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg() 417 atomic_sub(copylen, &conn->bytes_to_rcv); in smc_rx_recvmsg() 420 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 181 copylen = min_t(size_t, send_remaining, writespace); in smc_tx_sendmsg() 188 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg() 205 if (chunk_len_sum == copylen) in smc_tx_sendmsg() 208 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg() 214 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg() 218 atomic_sub(copylen, &conn->sndbuf_space); in smc_tx_sendmsg()
|
/Linux-v4.19/net/hsr/ |
D | hsr_forward.c | 97 int copylen; in create_stripped_skb() local 111 copylen = 2*ETH_ALEN; in create_stripped_skb() 113 copylen += VLAN_HLEN; in create_stripped_skb() 116 memcpy(dst, src, copylen); in create_stripped_skb()
|
/Linux-v4.19/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 | 1708 int copylen; in tun_get_user() local 1762 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user() 1763 if (copylen > good_linear) in tun_get_user() 1764 copylen = good_linear; in tun_get_user() 1765 linear = copylen; in tun_get_user() 1766 iov_iter_advance(&i, copylen); in tun_get_user() 1785 copylen = len; in tun_get_user() 1794 skb = tun_napi_alloc_frags(tfile, copylen, from); in tun_get_user() 1801 skb = tun_alloc_skb(tfile, align, copylen, linear, in tun_get_user()
|
/Linux-v4.19/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-v4.19/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-v4.19/net/ |
D | compat.c | 726 int copylen; in compat_mc_getsockopt() local 729 copylen = numsrc * sizeof(gf32->gf_slist[0]); in compat_mc_getsockopt() 730 if (copylen > klen) in compat_mc_getsockopt() 731 copylen = klen; in compat_mc_getsockopt() 732 if (copy_in_user(gf32->gf_slist, kgf->gf_slist, copylen)) in compat_mc_getsockopt()
|
/Linux-v4.19/drivers/net/wireless/intel/iwlwifi/dvm/ |
D | rx.c | 916 u32 copylen = len; in iwlagn_rx_noa_notification() local 922 copylen += 1 + 2; in iwlagn_rx_noa_notification() 934 copylen); in iwlagn_rx_noa_notification()
|
/Linux-v4.19/drivers/net/wireless/zydas/ |
D | zd1201.c | 233 unsigned short infotype, copylen; in zd1201_usbrx() local 297 copylen = le16_to_cpu(*(__le16*)&data[i+2]); in zd1201_usbrx() 299 if (copylen+zd->rxlen > sizeof(zd->rxdata)) in zd1201_usbrx() 301 memcpy(zd->rxdata+zd->rxlen, data+i+4, copylen); in zd1201_usbrx() 302 zd->rxlen += copylen; in zd1201_usbrx()
|
/Linux-v4.19/net/packet/ |
D | af_packet.c | 2447 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument 2476 } else if (copylen) { in tpacket_fill_skb() 2477 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb() 2480 skb_put(skb, copylen - dev->hard_header_len); in tpacket_fill_skb() 2611 int hlen, tlen, copylen = 0; in tpacket_snd() local 2680 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd() 2683 copylen = max_t(int, copylen, dev->hard_header_len); in tpacket_snd() 2686 (copylen - dev->hard_header_len), in tpacket_snd() 2696 addr, hlen, copylen, &sockc); in tpacket_snd()
|
/Linux-v4.19/drivers/media/usb/usbvision/ |
D | usbvision-core.c | 1133 long copylen = 0; in usbvision_parse_data() local 1147 newstate = usbvision_parse_lines_420(usbvision, ©len); in usbvision_parse_data() 1149 newstate = usbvision_parse_lines_422(usbvision, ©len); in usbvision_parse_data() 1151 newstate = usbvision_parse_compress(usbvision, ©len); in usbvision_parse_data() 1183 frame->scanlength += copylen; in usbvision_parse_data()
|
/Linux-v4.19/drivers/net/wireless/ |
D | rndis_wlan.c | 716 int resplen, respoffs, copylen; in rndis_query_oid() local 763 copylen = buflen - respoffs; in rndis_query_oid() 765 copylen = resplen; in rndis_query_oid() 768 if (copylen > *len) in rndis_query_oid() 769 copylen = *len; in rndis_query_oid() 771 memcpy(data, u.buf + respoffs, copylen); in rndis_query_oid()
|
/Linux-v4.19/net/netfilter/ipvs/ |
D | ip_vs_ctl.c | 2646 unsigned int copylen; in do_ip_vs_get_ctl() local 2658 copylen = get_arglen[CMDID(cmd)]; in do_ip_vs_get_ctl() 2659 if (*len < (int) copylen) { in do_ip_vs_get_ctl() 2660 IP_VS_DBG(1, "get_ctl: len %d < %u\n", *len, copylen); in do_ip_vs_get_ctl() 2664 if (copy_from_user(arg, user, copylen) != 0) in do_ip_vs_get_ctl()
|
/Linux-v4.19/net/netfilter/ipset/ |
D | ip_set_core.c | 1932 int copylen = *len, ret = 0; in ip_set_sockfn_get() local 2035 ret = copy_to_user(user, data, copylen); in ip_set_sockfn_get()
|