Home
last modified time | relevance | path

Searched refs:copied (Results 1 – 25 of 59) sorted by relevance

123

/net/sunrpc/
Dsocklib.c76 ssize_t copied = 0; in xdr_partial_copy_from_skb() local
83 copied += ret; in xdr_partial_copy_from_skb()
110 if (copied == 0) in xdr_partial_copy_from_skb()
111 copied = -ENOMEM; in xdr_partial_copy_from_skb()
131 copied += ret; in xdr_partial_copy_from_skb()
139 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb()
141 return copied; in xdr_partial_copy_from_skb()
Dxdr.c1241 unsigned int copied = 0, todo, avail_here; in xdr_xcode_array2() local
1290 copied = avail_here; in xdr_xcode_array2()
1312 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2()
1314 desc->elem_size - copied); in xdr_xcode_array2()
1323 if (!copied) { in xdr_xcode_array2()
1328 memcpy(c, elem + copied, l); in xdr_xcode_array2()
1329 copied += l; in xdr_xcode_array2()
1330 if (copied == desc->elem_size) in xdr_xcode_array2()
1331 copied = 0; in xdr_xcode_array2()
1333 memcpy(elem + copied, c, l); in xdr_xcode_array2()
[all …]
Dbackchannel_rqst.c346 void xprt_complete_bc_request(struct rpc_rqst *req, uint32_t copied) in xprt_complete_bc_request() argument
356 req->rq_private_buf.len = copied; in xprt_complete_bc_request()
/net/ipv4/
Dtcp.c939 ssize_t copied; in do_tcp_sendpages() local
956 copied = 0; in do_tcp_sendpages()
1012 if (!copied) in do_tcp_sendpages()
1015 copied += copy; in do_tcp_sendpages()
1045 if (copied) { in do_tcp_sendpages()
1050 return copied; in do_tcp_sendpages()
1054 if (copied) in do_tcp_sendpages()
1139 int *copied, size_t size) in tcp_sendmsg_fastopen() argument
1176 *copied = tp->fastopen_req->copied; in tcp_sendmsg_fastopen()
1189 int flags, err, copied = 0; in tcp_sendmsg_locked() local
[all …]
Draw.c753 size_t copied = 0; in raw_recvmsg() local
770 copied = skb->len; in raw_recvmsg()
771 if (len < copied) { in raw_recvmsg()
773 copied = len; in raw_recvmsg()
776 err = skb_copy_datagram_msg(skb, 0, msg, copied); in raw_recvmsg()
793 copied = skb->len; in raw_recvmsg()
799 return copied; in raw_recvmsg()
Dping.c871 int copied, err; in ping_recvmsg() local
886 copied = skb->len; in ping_recvmsg()
887 if (copied > len) { in ping_recvmsg()
889 copied = len; in ping_recvmsg()
893 err = skb_copy_datagram_msg(skb, 0, msg, copied); in ping_recvmsg()
945 err = copied; in ping_recvmsg()
/net/llc/
Daf_llc.c737 size_t copied = 0; in llc_ui_recvmsg() local
745 copied = -ENOTCONN; in llc_ui_recvmsg()
758 copied = 0; in llc_ui_recvmsg()
769 if (copied) in llc_ui_recvmsg()
771 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg()
784 if (copied >= target && !sk->sk_backlog.tail) in llc_ui_recvmsg()
787 if (copied) { in llc_ui_recvmsg()
799 copied = sock_error(sk); in llc_ui_recvmsg()
811 copied = -ENOTCONN; in llc_ui_recvmsg()
817 copied = -EAGAIN; in llc_ui_recvmsg()
[all …]
/net/core/
Ddatagram.c539 size_t copied; in skb_copy_datagram_from_iter() local
543 copied = copy_page_from_iter(skb_frag_page(frag), in skb_copy_datagram_from_iter()
546 if (copied != copy) in skb_copy_datagram_from_iter()
591 ssize_t copied; in __zerocopy_sg_from_iter() local
598 copied = iov_iter_get_pages(from, pages, length, in __zerocopy_sg_from_iter()
600 if (copied < 0) in __zerocopy_sg_from_iter()
603 iov_iter_advance(from, copied); in __zerocopy_sg_from_iter()
604 length -= copied; in __zerocopy_sg_from_iter()
606 truesize = PAGE_ALIGN(copied + start); in __zerocopy_sg_from_iter()
607 skb->data_len += copied; in __zerocopy_sg_from_iter()
[all …]
/net/tls/
Dtls_sw.c310 ssize_t copied, use; in zerocopy_from_iter() local
324 copied = iov_iter_get_pages(from, pages, in zerocopy_from_iter()
327 if (copied <= 0) { in zerocopy_from_iter()
332 iov_iter_advance(from, copied); in zerocopy_from_iter()
334 length -= copied; in zerocopy_from_iter()
335 size += copied; in zerocopy_from_iter()
336 while (copied) { in zerocopy_from_iter()
337 use = min_t(int, copied, PAGE_SIZE - offset); in zerocopy_from_iter()
345 copied -= use; in zerocopy_from_iter()
395 size_t try_to_copy, copied = 0; in tls_sw_sendmsg() local
[all …]
/net/bluetooth/
Daf_bluetooth.c286 size_t copied; in bt_sock_recvmsg() local
304 copied = skb->len; in bt_sock_recvmsg()
305 if (len < copied) { in bt_sock_recvmsg()
307 copied = len; in bt_sock_recvmsg()
311 err = skb_copy_datagram_msg(skb, 0, msg, copied); in bt_sock_recvmsg()
323 copied = skblen; in bt_sock_recvmsg()
325 return err ? : copied; in bt_sock_recvmsg()
363 size_t target, copied = 0; in bt_sock_stream_recvmsg() local
382 if (copied >= target) in bt_sock_stream_recvmsg()
407 if (!copied) in bt_sock_stream_recvmsg()
[all …]
/net/rds/
Dmessage.c318 int copied; in rds_message_inc_copy_to_user() local
327 copied = 0; in rds_message_inc_copy_to_user()
329 while (iov_iter_count(to) && copied < len) { in rds_message_inc_copy_to_user()
332 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_message_inc_copy_to_user()
341 copied += to_copy; in rds_message_inc_copy_to_user()
349 return copied; in rds_message_inc_copy_to_user()
Dib_recv.c532 int copied = 0; in rds_ib_inc_copy_to_user() local
540 while (iov_iter_count(to) && copied < len) { in rds_ib_inc_copy_to_user()
548 to_copy = min_t(unsigned long, to_copy, len - copied); in rds_ib_inc_copy_to_user()
560 copied += to_copy; in rds_ib_inc_copy_to_user()
563 return copied; in rds_ib_inc_copy_to_user()
780 unsigned long copied; in rds_ib_cong_recv() local
795 copied = 0; in rds_ib_cong_recv()
797 while (copied < RDS_CONG_MAP_BYTES) { in rds_ib_cong_recv()
816 copied += to_copy; in rds_ib_cong_recv()
/net/ieee802154/
Dsocket.c325 size_t copied = 0; in raw_recvmsg() local
333 copied = skb->len; in raw_recvmsg()
334 if (len < copied) { in raw_recvmsg()
336 copied = len; in raw_recvmsg()
339 err = skb_copy_datagram_msg(skb, 0, msg, copied); in raw_recvmsg()
346 copied = skb->len; in raw_recvmsg()
352 return copied; in raw_recvmsg()
713 size_t copied = 0; in dgram_recvmsg() local
722 copied = skb->len; in dgram_recvmsg()
723 if (len < copied) { in dgram_recvmsg()
[all …]
/net/nfc/
Drawsock.c256 int copied; in rawsock_recvmsg() local
265 copied = skb->len; in rawsock_recvmsg()
266 if (len < copied) { in rawsock_recvmsg()
268 copied = len; in rawsock_recvmsg()
271 rc = skb_copy_datagram_msg(skb, 0, msg, copied); in rawsock_recvmsg()
275 return rc ? : copied; in rawsock_recvmsg()
Dllcp_sock.c814 unsigned int copied, rlen; in llcp_sock_recvmsg() local
845 copied = min_t(unsigned int, rlen, len); in llcp_sock_recvmsg()
848 if (skb_copy_datagram_msg(cskb, 0, msg, copied)) { in llcp_sock_recvmsg()
879 skb_pull(skb, copied); in llcp_sock_recvmsg()
894 copied = rlen; in llcp_sock_recvmsg()
896 return copied; in llcp_sock_recvmsg()
/net/kcm/
Dkcmsock.c904 size_t copy, copied = 0; in kcm_sendmsg() local
1007 copied += copy; in kcm_sendmsg()
1055 KCM_STATS_ADD(kcm->stats.tx_bytes, copied); in kcm_sendmsg()
1058 return copied; in kcm_sendmsg()
1063 if (copied && sock->type == SOCK_SEQPACKET) { in kcm_sendmsg()
1122 int copied = 0; in kcm_recvmsg() local
1144 copied = len; in kcm_recvmsg()
1146 KCM_STATS_ADD(kcm->stats.rx_bytes, copied); in kcm_recvmsg()
1147 if (copied < stm->full_len) { in kcm_recvmsg()
1153 stm->offset += copied; in kcm_recvmsg()
[all …]
/net/ipv6/
Ddatagram.c453 int copied; in ipv6_recv_error() local
460 copied = skb->len; in ipv6_recv_error()
461 if (copied > len) { in ipv6_recv_error()
463 copied = len; in ipv6_recv_error()
465 err = skb_copy_datagram_msg(skb, 0, msg, copied); in ipv6_recv_error()
524 err = copied; in ipv6_recv_error()
543 int copied; in ipv6_recv_rxpmtu() local
550 copied = skb->len; in ipv6_recv_rxpmtu()
551 if (copied > len) { in ipv6_recv_rxpmtu()
553 copied = len; in ipv6_recv_rxpmtu()
[all …]
Draw.c473 size_t copied; in rawv6_recvmsg() local
489 copied = skb->len; in rawv6_recvmsg()
490 if (copied > len) { in rawv6_recvmsg()
491 copied = len; in rawv6_recvmsg()
496 err = skb_copy_datagram_msg(skb, 0, msg, copied); in rawv6_recvmsg()
500 err = skb_copy_datagram_msg(skb, 0, msg, copied); in rawv6_recvmsg()
525 err = copied; in rawv6_recvmsg()
Dudp.c355 unsigned int ulen, copied; in udpv6_recvmsg() local
376 copied = len; in udpv6_recvmsg()
377 if (copied > ulen - off) in udpv6_recvmsg()
378 copied = ulen - off; in udpv6_recvmsg()
379 else if (copied < ulen) in udpv6_recvmsg()
390 if (copied < ulen || peeking || in udpv6_recvmsg()
400 err = copy_linear_skb(skb, copied, off, &msg->msg_iter); in udpv6_recvmsg()
402 err = skb_copy_datagram_msg(skb, off, msg, copied); in udpv6_recvmsg()
464 err = copied; in udpv6_recvmsg()
/net/l2tp/
Dl2tp_ip.c527 size_t copied = 0; in l2tp_ip_recvmsg() local
539 copied = skb->len; in l2tp_ip_recvmsg()
540 if (len < copied) { in l2tp_ip_recvmsg()
542 copied = len; in l2tp_ip_recvmsg()
545 err = skb_copy_datagram_msg(skb, 0, msg, copied); in l2tp_ip_recvmsg()
562 copied = skb->len; in l2tp_ip_recvmsg()
566 return err ? err : copied; in l2tp_ip_recvmsg()
Dl2tp_ip6.c679 size_t copied = 0; in l2tp_ip6_recvmsg() local
693 copied = skb->len; in l2tp_ip6_recvmsg()
694 if (len < copied) { in l2tp_ip6_recvmsg()
696 copied = len; in l2tp_ip6_recvmsg()
699 err = skb_copy_datagram_msg(skb, 0, msg, copied); in l2tp_ip6_recvmsg()
722 copied = skb->len; in l2tp_ip6_recvmsg()
726 return err ? err : copied; in l2tp_ip6_recvmsg()
/net/rxrpc/
Dsendmsg.c218 int ret, copied; in rxrpc_send_data() local
241 copied = 0; in rxrpc_send_data()
328 copied += copy; in rxrpc_send_data()
385 ret = copied; in rxrpc_send_data()
392 if (copied) in rxrpc_send_data()
/net/qrtr/
Dqrtr.c792 int copied, rc; in qrtr_recvmsg() local
809 copied = le32_to_cpu(phdr->size); in qrtr_recvmsg()
810 if (copied > size) { in qrtr_recvmsg()
811 copied = size; in qrtr_recvmsg()
815 rc = skb_copy_datagram_msg(skb, QRTR_HDR_SIZE, msg, copied); in qrtr_recvmsg()
818 rc = copied; in qrtr_recvmsg()
/net/caif/
Dcaif_socket.c351 int copied = 0; in caif_stream_recvmsg() local
385 if (copied >= target) in caif_stream_recvmsg()
427 if (copied == 0) in caif_stream_recvmsg()
428 copied = -EFAULT; in caif_stream_recvmsg()
431 copied += chunk; in caif_stream_recvmsg()
457 return copied ? : err; in caif_stream_recvmsg()
/net/atm/
Dcommon.c527 int copied, error = -EINVAL; in vcc_recvmsg() local
546 copied = skb->len; in vcc_recvmsg()
547 if (copied > size) { in vcc_recvmsg()
548 copied = size; in vcc_recvmsg()
552 error = skb_copy_datagram_msg(skb, 0, msg, copied); in vcc_recvmsg()
564 return copied; in vcc_recvmsg()

123