Lines Matching refs:used
1627 int used; in tcp_read_sock() local
1639 used = recv_actor(desc, skb, offset, len); in tcp_read_sock()
1640 if (used <= 0) { in tcp_read_sock()
1642 copied = used; in tcp_read_sock()
1644 } else if (used <= len) { in tcp_read_sock()
1645 seq += used; in tcp_read_sock()
1646 copied += used; in tcp_read_sock()
1647 offset += used; in tcp_read_sock()
1952 unsigned long used; in tcp_recvmsg() local
2109 used = skb->len - offset; in tcp_recvmsg()
2110 if (len < used) in tcp_recvmsg()
2111 used = len; in tcp_recvmsg()
2116 if (urg_offset < used) { in tcp_recvmsg()
2122 used--; in tcp_recvmsg()
2123 if (!used) in tcp_recvmsg()
2127 used = urg_offset; in tcp_recvmsg()
2132 err = skb_copy_datagram_msg(skb, offset, msg, used); in tcp_recvmsg()
2141 WRITE_ONCE(*seq, *seq + used); in tcp_recvmsg()
2142 copied += used; in tcp_recvmsg()
2143 len -= used; in tcp_recvmsg()
2152 if (used + offset < skb->len) in tcp_recvmsg()