Lines Matching defs:RING_SIZE
166 * requestor (front end) never has more than RING_SIZE()-1
193 #define RING_SIZE(_r) \
198 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))
213 unsigned int rsp = RING_SIZE(_r) - \
221 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \
223 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt)))
228 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
245 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
249 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
253 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))