Lines Matching refs:loop

636 	((((_r)->sring->req_prod - loop) <		\
637 (RING_SIZE(_r) - (loop - prod))) ? \
638 ((_r)->sring->req_prod - loop) : \
639 (RING_SIZE(_r) - (loop - prod)))
651 RING_IDX loop, prod, end; in xnb_to_peer() local
684 loop = xnbp->xnb_rx_ring.req_cons; in xnb_to_peer()
706 rxreq = RING_GET_REQUEST(&xnbp->xnb_rx_ring, loop); in xnb_to_peer()
756 loop++; in xnb_to_peer()
766 if (loop == xnbp->xnb_rx_ring.req_cons) { in xnb_to_peer()
771 end = loop; in xnb_to_peer()
780 loop - xnbp->xnb_rx_ring.req_cons) != 0) { in xnb_to_peer()
784 loop = xnbp->xnb_rx_ring.req_cons; in xnb_to_peer()
788 while (loop < end) { in xnb_to_peer()
828 loop++; in xnb_to_peer()
833 xnbp->xnb_rx_ring.req_cons = loop; in xnb_to_peer()
968 RING_IDX loop, prod; in xnb_copy_to_peer() local
1006 loop = xnbp->xnb_rx_ring.req_cons; in xnb_copy_to_peer()
1020 rxreq = RING_GET_REQUEST(&xnbp->xnb_rx_ring, loop); in xnb_copy_to_peer()
1175 loop++; in xnb_copy_to_peer()
1184 if (loop == xnbp->xnb_rx_ring.req_cons) { in xnb_copy_to_peer()
1195 xnbp->xnb_rx_ring.req_cons = loop; in xnb_copy_to_peer()
1340 RING_IDX start, end, loop; in xnb_from_peer() local
1386 loop = start; in xnb_from_peer()
1391 while (loop < end) { in xnb_from_peer()
1398 txreq = RING_GET_REQUEST(&xnbp->xnb_tx_ring, loop); in xnb_from_peer()
1420 loop++; /* Consume another slot in the ring. */ in xnb_from_peer()
1421 ASSERT(loop <= end); in xnb_from_peer()
1424 RING_GET_REQUEST(&xnbp->xnb_tx_ring, loop); in xnb_from_peer()
1479 txp->xt_idx = loop; in xnb_from_peer()
1503 loop++; in xnb_from_peer()
1506 xnbp->xnb_tx_ring.req_cons = loop; in xnb_from_peer()