Lines Matching refs:copied
767 size_t copied = 0; in llc_ui_recvmsg() local
775 copied = -ENOTCONN; in llc_ui_recvmsg()
788 copied = 0; in llc_ui_recvmsg()
799 if (copied) in llc_ui_recvmsg()
801 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN; in llc_ui_recvmsg()
814 if (copied >= target && !READ_ONCE(sk->sk_backlog.tail)) in llc_ui_recvmsg()
817 if (copied) { in llc_ui_recvmsg()
829 copied = sock_error(sk); in llc_ui_recvmsg()
841 copied = -ENOTCONN; in llc_ui_recvmsg()
847 copied = -EAGAIN; in llc_ui_recvmsg()
852 if (copied >= target) { /* Do not sleep, just process backlog. */ in llc_ui_recvmsg()
876 if (!copied) in llc_ui_recvmsg()
877 copied = -EFAULT; in llc_ui_recvmsg()
883 copied += used; in llc_ui_recvmsg()
903 return copied; in llc_ui_recvmsg()
937 int rc = -EINVAL, copied = 0, hdrlen, hh_len; in llc_ui_sendmsg() local
965 copied = size - hdrlen; in llc_ui_sendmsg()
967 if (copied < 0) in llc_ui_sendmsg()
983 rc = memcpy_from_msg(skb_put(skb, copied), msg, copied); in llc_ui_sendmsg()
1015 return rc ? : copied; in llc_ui_sendmsg()