Lines Matching refs:loop

635 	((((_r)->sring->req_prod - loop) <		\
636 (RING_SIZE(_r) - (loop - prod))) ? \
637 ((_r)->sring->req_prod - loop) : \
638 (RING_SIZE(_r) - (loop - prod)))
650 RING_IDX loop, prod, end; in xnb_to_peer() local
682 loop = xnbp->xnb_rx_ring.req_cons; in xnb_to_peer()
704 rxreq = RING_GET_REQUEST(&xnbp->xnb_rx_ring, loop); in xnb_to_peer()
754 loop++; in xnb_to_peer()
764 if (loop == xnbp->xnb_rx_ring.req_cons) { in xnb_to_peer()
769 end = loop; in xnb_to_peer()
778 loop - xnbp->xnb_rx_ring.req_cons) != 0) { in xnb_to_peer()
782 loop = xnbp->xnb_rx_ring.req_cons; in xnb_to_peer()
786 while (loop < end) { in xnb_to_peer()
826 loop++; in xnb_to_peer()
831 xnbp->xnb_rx_ring.req_cons = loop; in xnb_to_peer()
966 RING_IDX loop, prod; in xnb_copy_to_peer() local
1004 loop = xnbp->xnb_rx_ring.req_cons; in xnb_copy_to_peer()
1018 rxreq = RING_GET_REQUEST(&xnbp->xnb_rx_ring, loop); in xnb_copy_to_peer()
1173 loop++; in xnb_copy_to_peer()
1182 if (loop == xnbp->xnb_rx_ring.req_cons) { in xnb_copy_to_peer()
1193 xnbp->xnb_rx_ring.req_cons = loop; in xnb_copy_to_peer()
1338 RING_IDX start, end, loop; in xnb_from_peer() local
1384 loop = start; in xnb_from_peer()
1389 while (loop < end) { in xnb_from_peer()
1396 txreq = RING_GET_REQUEST(&xnbp->xnb_tx_ring, loop); in xnb_from_peer()
1418 loop++; /* Consume another slot in the ring. */ in xnb_from_peer()
1419 ASSERT(loop <= end); in xnb_from_peer()
1422 RING_GET_REQUEST(&xnbp->xnb_tx_ring, loop); in xnb_from_peer()
1477 txp->xt_idx = loop; in xnb_from_peer()
1501 loop++; in xnb_from_peer()
1504 xnbp->xnb_tx_ring.req_cons = loop; in xnb_from_peer()