Home
last modified time | relevance | path

Searched refs:copylen (Results 1 – 19 of 19) sorted by relevance

/linux-6.3-rc2/virt/kvm/
A Dbinary_stats.c58 ssize_t copylen; in kvm_stats_read() local
84 copylen = min(copylen, remain); in kvm_stats_read()
90 pos += copylen; in kvm_stats_read()
91 dest += copylen; in kvm_stats_read()
104 copylen = min(copylen, remain); in kvm_stats_read()
110 pos += copylen; in kvm_stats_read()
111 dest += copylen; in kvm_stats_read()
122 copylen = min(copylen, remain); in kvm_stats_read()
128 pos += copylen; in kvm_stats_read()
134 copylen = min(copylen, remain); in kvm_stats_read()
[all …]
/linux-6.3-rc2/drivers/input/serio/
A Duserio.c126 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-6.3-rc2/net/phonet/
A Ddatagram.c120 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-6.3-rc2/net/dccp/
A Doptions.c435 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()
/linux-6.3-rc2/net/smc/
A Dsmc_rx.c347 size_t copylen, read_done = 0, read_remaining = len; in smc_rx_recvmsg() local
456 copylen = min_t(size_t, read_remaining, readable); in smc_rx_recvmsg()
459 chunk_len = min_t(size_t, copylen, conn->rmb_desc->len - in smc_rx_recvmsg()
484 if (chunk_len_sum == copylen) in smc_rx_recvmsg()
487 chunk_len = copylen - chunk_len; /* remainder */ in smc_rx_recvmsg()
496 atomic_sub(copylen, &conn->bytes_to_rcv); in smc_rx_recvmsg()
499 if (msg && smc_rx_update_consumer(smc, cons, copylen)) in smc_rx_recvmsg()
503 trace_smc_rx_recvmsg(smc, copylen); in smc_rx_recvmsg()
A Dsmc_tx.c184 size_t copylen, send_done = 0, send_remaining = len; in smc_tx_sendmsg() local
238 copylen = min_t(size_t, send_remaining, writespace); in smc_tx_sendmsg()
245 chunk_len = min_t(size_t, copylen, conn->sndbuf_desc->len - in smc_tx_sendmsg()
261 if (chunk_len_sum == copylen) in smc_tx_sendmsg()
264 chunk_len = copylen - chunk_len; /* remainder */ in smc_tx_sendmsg()
270 smc_curs_add(conn->sndbuf_desc->len, &prep, copylen); in smc_tx_sendmsg()
274 atomic_sub(copylen, &conn->sndbuf_space); in smc_tx_sendmsg()
288 trace_smc_tx_sendmsg(smc, copylen); in smc_tx_sendmsg()
/linux-6.3-rc2/drivers/net/
A Dtap.c641 int copylen = 0; in tap_get_user() local
678 copylen = vnet_hdr.hdr_len ? in tap_get_user()
680 if (copylen > good_linear) in tap_get_user()
681 copylen = good_linear; in tap_get_user()
682 else if (copylen < ETH_HLEN) in tap_get_user()
683 copylen = ETH_HLEN; in tap_get_user()
684 linear = copylen; in tap_get_user()
686 iov_iter_advance(&i, copylen); in tap_get_user()
692 copylen = len; in tap_get_user()
700 skb = tap_alloc_skb(&q->sk, TAP_RESERVE, copylen, in tap_get_user()
A Dtun.c1750 int copylen; in tun_get_user() local
1802 copylen = gso.hdr_len ? tun16_to_cpu(tun, gso.hdr_len) : GOODCOPY_LEN; in tun_get_user()
1803 if (copylen > good_linear) in tun_get_user()
1804 copylen = good_linear; in tun_get_user()
1805 linear = copylen; in tun_get_user()
1806 iov_iter_advance(&i, copylen); in tun_get_user()
1824 copylen = len; in tun_get_user()
1833 skb = tun_napi_alloc_frags(tfile, copylen, from); in tun_get_user()
1840 skb = tun_alloc_skb(tfile, align, copylen, linear, in tun_get_user()
/linux-6.3-rc2/net/hsr/
A Dhsr_forward.c124 int copylen; in create_stripped_skb_hsr() local
138 copylen = 2 * ETH_ALEN; in create_stripped_skb_hsr()
140 copylen += VLAN_HLEN; in create_stripped_skb_hsr()
143 memcpy(dst, src, copylen); in create_stripped_skb_hsr()
/linux-6.3-rc2/net/caif/
A Dcaif_socket.c273 int copylen; in caif_seqpkt_recvmsg() local
282 copylen = skb->len; in caif_seqpkt_recvmsg()
283 if (len < copylen) { in caif_seqpkt_recvmsg()
285 copylen = len; in caif_seqpkt_recvmsg()
288 ret = skb_copy_datagram_msg(skb, 0, m, copylen); in caif_seqpkt_recvmsg()
292 ret = (flags & MSG_TRUNC) ? skb->len : copylen; in caif_seqpkt_recvmsg()
/linux-6.3-rc2/net/mptcp/
A Dsockopt.c941 u32 copylen = min_t(u32, sfd->size_subflow_data, sizeof(*sfd)); in mptcp_put_subflow_data() local
946 copied = copylen; in mptcp_put_subflow_data()
951 if (copy_to_user(optval, sfd, copylen)) in mptcp_put_subflow_data()
960 int len, copylen; in mptcp_get_subflow_data() local
975 copylen = min_t(unsigned int, len, sizeof(*sfd)); in mptcp_get_subflow_data()
976 if (copy_from_user(sfd, optval, copylen)) in mptcp_get_subflow_data()
/linux-6.3-rc2/tools/testing/selftests/rseq/
A Dparam_test.c983 size_t copylen; in this_cpu_memcpy_buffer_push() local
994 copylen = sizeof(item); in this_cpu_memcpy_buffer_push()
1000 destptr, srcptr, copylen, in this_cpu_memcpy_buffer_push()
1023 size_t copylen; in this_cpu_memcpy_buffer_pop() local
1034 copylen = sizeof(*item); in this_cpu_memcpy_buffer_pop()
1038 targetptr_final, offset, destptr, srcptr, copylen, in this_cpu_memcpy_buffer_pop()
/linux-6.3-rc2/net/ipv4/
A Dtcp.c2027 struct sk_buff *skb, u32 copylen, in tcp_copy_straggler_data() argument
2039 copylen, &iov, &msg.msg_iter); in tcp_copy_straggler_data()
2045 zc->recv_skip_hint -= copylen; in tcp_copy_straggler_data()
2046 *offset += copylen; in tcp_copy_straggler_data()
2047 *seq += copylen; in tcp_copy_straggler_data()
2048 return (__s32)copylen; in tcp_copy_straggler_data()
2060 if (!copylen) in tcp_zc_handle_leftover()
2075 return zc->copybuf_len < 0 ? 0 : copylen; in tcp_zc_handle_leftover()
2190 u32 length = 0, offset, vma_len, avail_len, copylen = 0; in tcp_zerocopy_receive() local
2311 if (length + copylen) { in tcp_zerocopy_receive()
[all …]
/linux-6.3-rc2/drivers/net/wireless/intel/iwlwifi/dvm/
A Drx.c910 u32 copylen = len; in iwlagn_rx_noa_notification() local
916 copylen += 1 + 2; in iwlagn_rx_noa_notification()
928 copylen); in iwlagn_rx_noa_notification()
/linux-6.3-rc2/drivers/net/wireless/zydas/
A Dzd1201.c230 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-6.3-rc2/net/packet/
A Daf_packet.c2567 __be16 proto, unsigned char *addr, int hlen, int copylen, in tpacket_fill_skb() argument
2596 } else if (copylen) { in tpacket_fill_skb()
2597 int hdrlen = min_t(int, copylen, tp_len); in tpacket_fill_skb()
2600 skb_put(skb, copylen - dev->hard_header_len); in tpacket_fill_skb()
2729 int hlen, tlen, copylen = 0; in tpacket_snd() local
2819 copylen = __virtio16_to_cpu(vio_le(), in tpacket_snd()
2822 copylen = max_t(int, copylen, dev->hard_header_len); in tpacket_snd()
2825 (copylen - dev->hard_header_len), in tpacket_snd()
2835 addr, hlen, copylen, &sockc); in tpacket_snd()
/linux-6.3-rc2/drivers/net/wireless/
A Drndis_wlan.c700 size_t buflen, resplen, respoffs, copylen; in rndis_query_oid() local
743 copylen = min(resplen, buflen - respoffs); in rndis_query_oid()
745 if (copylen > *len) in rndis_query_oid()
746 copylen = *len; in rndis_query_oid()
748 memcpy(data, u.buf + respoffs, copylen); in rndis_query_oid()
/linux-6.3-rc2/net/netfilter/ipvs/
A Dip_vs_ctl.c3034 unsigned int copylen; in do_ip_vs_get_ctl() local
3046 copylen = get_arglen[CMDID(cmd)]; in do_ip_vs_get_ctl()
3047 if (*len < (int) copylen) { in do_ip_vs_get_ctl()
3048 IP_VS_DBG(1, "get_ctl: len %d < %u\n", *len, copylen); in do_ip_vs_get_ctl()
3052 if (copy_from_user(arg, user, copylen) != 0) in do_ip_vs_get_ctl()
/linux-6.3-rc2/net/netfilter/ipset/
A Dip_set_core.c2193 int copylen = *len, ret = 0; in ip_set_sockfn_get() local
2299 if (copy_to_user(user, data, copylen)) in ip_set_sockfn_get()

Completed in 78 milliseconds