Lines Matching defs:RING_SIZE
166 * requestor (front end) never has more than RING_SIZE()-1
197 #define RING_SIZE(_r) \
202 (RING_SIZE(_r) - ((_r)->req_prod_pvt - (_r)->rsp_cons))
217 unsigned int rsp = RING_SIZE(_r) - \
225 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt))) ? \
227 (RING_SIZE(_r) - ((_r)->req_cons - (_r)->rsp_prod_pvt)))
232 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
235 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
256 (((_cons) - (_r)->rsp_prod_pvt) >= RING_SIZE(_r))
260 (((_prod) - (_r)->rsp_prod_pvt) > RING_SIZE(_r))
264 (((_prod) - (_r)->rsp_cons) > RING_SIZE(_r))