Lines Matching refs:tail
47 unsigned int head, tail, call_head, call_tail; in rxrpc_service_prealloc_one() local
71 tail = READ_ONCE(b->peer_backlog_tail); in rxrpc_service_prealloc_one()
72 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one()
82 tail = READ_ONCE(b->conn_backlog_tail); in rxrpc_service_prealloc_one()
83 if (CIRC_CNT(head, tail, size) < max) { in rxrpc_service_prealloc_one()
184 unsigned int size = RXRPC_BACKLOG_MAX, head, tail; in rxrpc_discard_prealloc() local
197 tail = b->peer_backlog_tail; in rxrpc_discard_prealloc()
198 while (CIRC_CNT(head, tail, size) > 0) { in rxrpc_discard_prealloc()
199 struct rxrpc_peer *peer = b->peer_backlog[tail]; in rxrpc_discard_prealloc()
202 tail = (tail + 1) & (size - 1); in rxrpc_discard_prealloc()
206 tail = b->conn_backlog_tail; in rxrpc_discard_prealloc()
207 while (CIRC_CNT(head, tail, size) > 0) { in rxrpc_discard_prealloc()
208 struct rxrpc_connection *conn = b->conn_backlog[tail]; in rxrpc_discard_prealloc()
216 tail = (tail + 1) & (size - 1); in rxrpc_discard_prealloc()
220 tail = b->call_backlog_tail; in rxrpc_discard_prealloc()
221 while (CIRC_CNT(head, tail, size) > 0) { in rxrpc_discard_prealloc()
222 struct rxrpc_call *call = b->call_backlog[tail]; in rxrpc_discard_prealloc()
234 tail = (tail + 1) & (size - 1); in rxrpc_discard_prealloc()