Lines Matching defs:copied

61  *	Michael O'Reilly	:	ack < copied bug fix.
991 int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, int *copied,
1031 *copied = tp->fastopen_req->copied;
1044 int flags, err, copied = 0;
1101 copied = tcp_send_rcvq(sk, msg, size);
1125 copied = 0;
1268 if (!copied)
1275 copied += copy;
1295 if (copied)
1307 if (copied) {
1315 return copied + copied_syn;
1320 if (copied + copied_syn)
1416 int copied = 0, err = 0;
1424 copied += skb->len;
1432 copied += skb->len;
1435 return err ?: copied;
1444 void __tcp_cleanup_rbuf(struct sock *sk, int copied)
1460 (copied > 0 &&
1474 if (copied > 0 && !time_to_ack && !(sk->sk_shutdown & RCV_SHUTDOWN)) {
1494 void tcp_cleanup_rbuf(struct sock *sk, int copied)
1500 "cleanup rbuf bug: copied %X seq %X rcvnxt %X\n",
1502 __tcp_cleanup_rbuf(sk, copied);
1560 int copied = 0;
1580 if (!copied)
1581 copied = used;
1587 copied += used;
1619 if (copied > 0) {
1621 tcp_cleanup_rbuf(sk, copied);
1623 return copied;
1630 int copied = 0;
1644 if (!copied)
1645 copied = used;
1648 copied += used;
1653 return copied;
2324 int copied = 0;
2376 if (copied)
2379 copied = timeo ? sock_intr_errno(timeo) : -EAGAIN;
2393 "TCP recvmsg seq # bug: copied %X, seq %X, rcvnxt %X, fl %X\n",
2408 "TCP recvmsg seq # bug 2: copied %X, seq %X, rcvnxt %X, fl %X\n",
2414 if (copied >= target && !READ_ONCE(sk->sk_backlog.tail))
2417 if (copied) {
2429 copied = sock_error(sk);
2440 copied = -ENOTCONN;
2445 copied = -EAGAIN;
2450 copied = sock_intr_errno(timeo);
2455 if (copied >= target) {
2459 tcp_cleanup_rbuf(sk, copied);
2462 err = copied ? : err;
2468 (peek_seq - copied - urg_hole != tp->copied_seq)) {
2504 if (!copied)
2505 copied = -EFAULT;
2511 copied += used;
2549 tcp_cleanup_rbuf(sk, copied);
2550 return copied;