Lines Matching defs:copied
1018 int copied = 0;
1196 copied += copy;
1221 if (copied)
1225 return copied;
1233 if (copied)
1238 copied = sk_stream_error(sk, flags, err);
1311 static void chtls_cleanup_rbuf(struct sock *sk, int copied)
1350 int copied = 0;
1361 chtls_cleanup_rbuf(sk, copied);
1369 if (copied)
1372 copied = timeo ? sock_intr_errno(timeo) :
1386 if (copied >= target && !READ_ONCE(sk->sk_backlog.tail))
1389 if (copied) {
1401 copied = sock_error(sk);
1407 copied = -ENOTCONN;
1411 copied = -EAGAIN;
1415 copied = sock_intr_errno(timeo);
1422 chtls_cleanup_rbuf(sk, copied);
1426 if (copied >= target)
1428 chtls_cleanup_rbuf(sk, copied);
1431 copied = copied ? : ret;
1441 if (!copied && !timeo) {
1442 copied = -EAGAIN;
1446 if (copied < target) {
1475 * do not proceed if record type could not be copied.
1485 copied = -EIO;
1493 if (!copied) {
1494 copied = -EFAULT;
1499 copied += avail;
1519 if (copied >= target && !next_skb)
1527 chtls_cleanup_rbuf(sk, copied);
1531 return copied;
1543 int copied = 0;
1554 if (copied)
1557 copied = timeo ? sock_intr_errno(timeo) :
1570 if (copied)
1575 copied = sock_error(sk);
1581 copied = -ENOTCONN;
1585 copied = -EAGAIN;
1589 copied = sock_intr_errno(timeo);
1600 /* here 'copied' is 0 due to previous checks */
1601 copied = ret;
1650 if (!copied) {
1651 copied = -EFAULT;
1656 copied += avail;
1661 return copied;
1671 int copied = 0;
1699 chtls_cleanup_rbuf(sk, copied);
1706 if (copied)
1709 copied = timeo ? sock_intr_errno(timeo) :
1725 if (copied >= target && !READ_ONCE(sk->sk_backlog.tail))
1728 if (copied) {
1737 copied = sock_error(sk);
1743 copied = -ENOTCONN;
1747 copied = -EAGAIN;
1751 copied = sock_intr_errno(timeo);
1759 chtls_cleanup_rbuf(sk, copied);
1763 if (copied >= target)
1765 chtls_cleanup_rbuf(sk, copied);
1768 copied = copied ? : ret;
1776 if (!copied && !timeo) {
1777 copied = -EAGAIN;
1781 if (copied < target)
1811 if (!copied) {
1812 copied = -EFAULT;
1819 copied += avail;
1830 if (copied >= target &&
1837 chtls_cleanup_rbuf(sk, copied);
1841 return copied;