Searched refs:RING_SIZE (Results 1 – 4 of 4) sorted by relevance
183 #define RING_SIZE(_r) \ macro188 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))203 unsigned int rsp = RING_SIZE(_r) - \211 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \213 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt)))218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))221 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))225 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
636 (RING_SIZE(_r) - (loop - prod))) ? \638 (RING_SIZE(_r) - (loop - prod)))
471 ASSERT(slotsfree <= RING_SIZE(&(xnfp->xnf_tx_ring))); in tx_slots_get()
2042 #define GET_RING_SIZE(_ringp) RING_SIZE(FRONT_RING(ringp))2076 ((brp->req_cons - brp->rsp_prod_pvt) != RING_SIZE(brp))); in xvdi_ring_has_unconsumed_requests()