/net/rxrpc/ |
D | ar-recvmsg.c | 53 int copy, ret, ullen, offset, copied = 0; in rxrpc_recvmsg() local 74 if (copied) in rxrpc_recvmsg() 88 if (copied && in rxrpc_recvmsg() 136 _leave(" = %d [noncont]", copied); in rxrpc_recvmsg() 137 return copied; in rxrpc_recvmsg() 176 if (copy > len - copied) in rxrpc_recvmsg() 177 copy = len - copied; in rxrpc_recvmsg() 193 _debug("copied %d+%d", copy, copied); in rxrpc_recvmsg() 196 copied += copy; in rxrpc_recvmsg() 203 ASSERTCMP(copied, ==, len); in rxrpc_recvmsg() [all …]
|
D | ar-output.c | 533 int ret, ioc, segment, copied; in rxrpc_send_data() local 555 copied = 0; in rxrpc_send_data() 643 copied += copy; in rxrpc_send_data() 714 ret = copied; in rxrpc_send_data() 730 if (copied) in rxrpc_send_data()
|
/net/sunrpc/ |
D | xdr.c | 832 unsigned int copied = 0, todo, avail_here; in xdr_xcode_array2() local 881 copied = avail_here; in xdr_xcode_array2() 903 if (copied || avail_page < desc->elem_size) { in xdr_xcode_array2() 905 desc->elem_size - copied); in xdr_xcode_array2() 914 if (!copied) { in xdr_xcode_array2() 919 memcpy(c, elem + copied, l); in xdr_xcode_array2() 920 copied += l; in xdr_xcode_array2() 921 if (copied == desc->elem_size) in xdr_xcode_array2() 922 copied = 0; in xdr_xcode_array2() 924 memcpy(elem + copied, c, l); in xdr_xcode_array2() [all …]
|
D | socklib.c | 74 ssize_t copied = 0; in xdr_partial_copy_from_skb() local 81 copied += ret; in xdr_partial_copy_from_skb() 108 if (copied == 0) in xdr_partial_copy_from_skb() 109 copied = -ENOMEM; in xdr_partial_copy_from_skb() 129 copied += ret; in xdr_partial_copy_from_skb() 137 copied += copy_actor(desc, (char *)xdr->tail[0].iov_base + base, len - base); in xdr_partial_copy_from_skb() 139 return copied; in xdr_partial_copy_from_skb()
|
D | xprt.c | 765 void xprt_complete_rqst(struct rpc_task *task, int copied) in xprt_complete_rqst() argument 771 task->tk_pid, ntohl(req->rq_xid), copied); in xprt_complete_rqst() 777 req->rq_private_buf.len = copied; in xprt_complete_rqst() 780 req->rq_received = copied; in xprt_complete_rqst()
|
/net/ipv4/ |
D | tcp.c | 670 ssize_t copied; in do_tcp_sendpages() local 682 copied = 0; in do_tcp_sendpages() 737 if (!copied) in do_tcp_sendpages() 740 copied += copy; in do_tcp_sendpages() 758 if (copied) in do_tcp_sendpages() 769 if (copied) in do_tcp_sendpages() 771 return copied; in do_tcp_sendpages() 774 if (copied) in do_tcp_sendpages() 830 int err, copied; in tcp_sendmsg() local 853 copied = 0; in tcp_sendmsg() [all …]
|
D | raw.c | 649 size_t copied = 0; in raw_recvmsg() local 669 copied = skb->len; in raw_recvmsg() 670 if (len < copied) { in raw_recvmsg() 672 copied = len; in raw_recvmsg() 675 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in raw_recvmsg() 691 copied = skb->len; in raw_recvmsg() 697 return copied; in raw_recvmsg()
|
D | udp.c | 881 unsigned int ulen, copied; in udp_recvmsg() local 902 copied = len; in udp_recvmsg() 903 if (copied > ulen) in udp_recvmsg() 904 copied = ulen; in udp_recvmsg() 905 else if (copied < ulen) in udp_recvmsg() 914 if (copied < ulen || UDP_SKB_CB(skb)->partial_cov) { in udp_recvmsg() 921 msg->msg_iov, copied ); in udp_recvmsg() 949 err = copied; in udp_recvmsg()
|
D | ip_sockglue.c | 366 int copied; in ip_recv_error() local 373 copied = skb->len; in ip_recv_error() 374 if (copied > len) { in ip_recv_error() 376 copied = len; in ip_recv_error() 378 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in ip_recv_error() 414 err = copied; in ip_recv_error()
|
/net/llc/ |
D | af_llc.c | 670 size_t copied = 0; in llc_ui_recvmsg() local 678 copied = -ENOTCONN; in llc_ui_recvmsg() 691 copied = 0; in llc_ui_recvmsg() 702 if (copied) in llc_ui_recvmsg() 704 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg() 717 if (copied >= target && !sk->sk_backlog.tail) in llc_ui_recvmsg() 720 if (copied) { in llc_ui_recvmsg() 732 copied = sock_error(sk); in llc_ui_recvmsg() 744 copied = -ENOTCONN; in llc_ui_recvmsg() 750 copied = -EAGAIN; in llc_ui_recvmsg() [all …]
|
/net/bluetooth/ |
D | af_bluetooth.c | 273 size_t copied; in bt_sock_recvmsg() local 289 copied = skb->len; in bt_sock_recvmsg() 290 if (len < copied) { in bt_sock_recvmsg() 292 copied = len; in bt_sock_recvmsg() 296 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in bt_sock_recvmsg() 302 return err ? : copied; in bt_sock_recvmsg()
|
D | hci_sock.c | 360 int copied, err; in hci_sock_recvmsg() local 375 copied = skb->len; in hci_sock_recvmsg() 376 if (len < copied) { in hci_sock_recvmsg() 378 copied = len; in hci_sock_recvmsg() 382 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in hci_sock_recvmsg() 388 return err ? : copied; in hci_sock_recvmsg()
|
/net/iucv/ |
D | af_iucv.c | 711 int dataleft, size, copied = 0; in iucv_fragment_skb() local 725 memcpy(nskb->data, skb->data + copied, size); in iucv_fragment_skb() 726 copied += size; in iucv_fragment_skb() 799 int target, copied = 0; in iucv_sock_recvmsg() local 821 copied = min_t(unsigned int, skb->len, len); in iucv_sock_recvmsg() 824 if (memcpy_toiovec(msg->msg_iov, cskb->data, copied)) { in iucv_sock_recvmsg() 826 if (copied == 0) in iucv_sock_recvmsg() 831 len -= copied; in iucv_sock_recvmsg() 835 skb_pull(skb, copied); in iucv_sock_recvmsg() 866 return err ? : copied; in iucv_sock_recvmsg()
|
/net/irda/ |
D | af_irda.c | 1334 size_t copied; in irda_recvmsg_dgram() local 1348 copied = skb->len; in irda_recvmsg_dgram() 1350 if (copied > size) { in irda_recvmsg_dgram() 1352 __func__, copied, size); in irda_recvmsg_dgram() 1353 copied = size; in irda_recvmsg_dgram() 1356 skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in irda_recvmsg_dgram() 1374 return copied; in irda_recvmsg_dgram() 1386 size_t copied = 0; in irda_recvmsg_stream() local 1414 if (copied >= target) in irda_recvmsg_stream() 1450 if (copied == 0) in irda_recvmsg_stream() [all …]
|
/net/ipv6/ |
D | datagram.c | 295 int copied; in ipv6_recv_error() local 302 copied = skb->len; in ipv6_recv_error() 303 if (copied > len) { in ipv6_recv_error() 305 copied = len; in ipv6_recv_error() 307 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in ipv6_recv_error() 366 err = copied; in ipv6_recv_error()
|
D | udp.c | 166 unsigned int ulen, copied; in udpv6_recvmsg() local 185 copied = len; in udpv6_recvmsg() 186 if (copied > ulen) in udpv6_recvmsg() 187 copied = ulen; in udpv6_recvmsg() 188 else if (copied < ulen) in udpv6_recvmsg() 199 if (copied < ulen || UDP_SKB_CB(skb)->partial_cov) { in udpv6_recvmsg() 206 msg->msg_iov, copied ); in udpv6_recvmsg() 255 err = copied; in udpv6_recvmsg()
|
D | raw.c | 453 size_t copied; in rawv6_recvmsg() local 469 copied = skb->len; in rawv6_recvmsg() 470 if (copied > len) { in rawv6_recvmsg() 471 copied = len; in rawv6_recvmsg() 476 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in rawv6_recvmsg() 480 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in rawv6_recvmsg() 505 err = copied; in rawv6_recvmsg()
|
/net/atm/ |
D | common.c | 474 int copied, error = -EINVAL; in vcc_recvmsg() local 490 copied = skb->len; in vcc_recvmsg() 491 if (copied > size) { in vcc_recvmsg() 492 copied = size; in vcc_recvmsg() 496 error = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in vcc_recvmsg() 503 return copied; in vcc_recvmsg()
|
/net/econet/ |
D | af_econet.c | 122 size_t copied; in econet_recvmsg() local 154 copied = skb->len; in econet_recvmsg() 155 if (copied > len) in econet_recvmsg() 157 copied=len; in econet_recvmsg() 162 err = memcpy_toiovec(msg->msg_iov, skb->data, copied); in econet_recvmsg() 174 err = copied; in econet_recvmsg()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 649 size_t target, copied = 0; in rfcomm_sock_recvmsg() local 675 if (copied >= target) in rfcomm_sock_recvmsg() 699 if (!copied) in rfcomm_sock_recvmsg() 700 copied = -EFAULT; in rfcomm_sock_recvmsg() 703 copied += chunk; in rfcomm_sock_recvmsg() 730 return copied ? : err; in rfcomm_sock_recvmsg()
|
/net/rose/ |
D | af_rose.c | 1244 size_t copied; in rose_recvmsg() local 1270 copied = skb->len; in rose_recvmsg() 1273 if (copied == 0) { in rose_recvmsg() 1275 return copied; in rose_recvmsg() 1278 if (copied > size) { in rose_recvmsg() 1279 copied = size; in rose_recvmsg() 1283 skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in rose_recvmsg() 1306 return copied; in rose_recvmsg()
|
/net/netrom/ |
D | af_netrom.c | 1146 size_t copied; in nr_recvmsg() local 1168 copied = skb->len; in nr_recvmsg() 1170 if (copied > size) { in nr_recvmsg() 1171 copied = size; in nr_recvmsg() 1175 skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in nr_recvmsg() 1188 return copied; in nr_recvmsg()
|
/net/appletalk/ |
D | ddp.c | 1710 int copied = 0; in atalk_recvmsg() local 1720 copied = ntohs(ddp->deh_len_hops) & 1023; in atalk_recvmsg() 1724 copied -= offset; in atalk_recvmsg() 1727 if (copied > size) { in atalk_recvmsg() 1728 copied = size; in atalk_recvmsg() 1731 err = skb_copy_datagram_iovec(skb, offset, msg->msg_iov, copied); in atalk_recvmsg() 1744 return err ? : copied; in atalk_recvmsg()
|
/net/netlink/ |
D | af_netlink.c | 1308 size_t copied; in netlink_recvmsg() local 1315 copied = 0; in netlink_recvmsg() 1323 copied = skb->len; in netlink_recvmsg() 1324 if (len < copied) { in netlink_recvmsg() 1326 copied = len; in netlink_recvmsg() 1330 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in netlink_recvmsg() 1350 copied = skb->len; in netlink_recvmsg() 1359 return err ? : copied; in netlink_recvmsg()
|
/net/x25/ |
D | af_x25.c | 1165 size_t copied; in x25_recvmsg() local 1216 copied = skb->len; in x25_recvmsg() 1218 if (copied > size) { in x25_recvmsg() 1219 copied = size; in x25_recvmsg() 1226 rc = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); in x25_recvmsg() 1240 rc = copied; in x25_recvmsg()
|