Searched defs:RING_SIZE (Results 1 - 1 of 1) sorted by relevance

/illumos-gate/usr/src/uts/common/xen/public/io/
H A Dring.h142 * requestor (front end) never has more than RING_SIZE()-1
183 #define RING_SIZE(_r) \ macro
188 (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))

Completed in 988 milliseconds