Lines Matching refs:RING_IDX
30 typedef unsigned int RING_IDX; typedef
95 RING_IDX req_prod, req_event; \
96 RING_IDX rsp_prod, rsp_event; \
103 RING_IDX req_prod_pvt; \
104 RING_IDX rsp_cons; \
111 RING_IDX rsp_prod_pvt; \
112 RING_IDX req_cons; \
269 RING_IDX __old = (_r)->sring->req_prod; \
270 RING_IDX __new = (_r)->req_prod_pvt; \
274 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
275 (RING_IDX)(__new - __old)); \
279 RING_IDX __old = (_r)->sring->rsp_prod; \
280 RING_IDX __new = (_r)->rsp_prod_pvt; \
284 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
285 (RING_IDX)(__new - __old)); \
357 static inline RING_IDX name##_mask(RING_IDX idx, RING_IDX ring_size) \
363 RING_IDX idx, \
364 RING_IDX ring_size) \
372 RING_IDX masked_prod, \
373 RING_IDX *masked_cons, \
374 RING_IDX ring_size) \
390 RING_IDX *masked_prod, \
391 RING_IDX masked_cons, \
392 RING_IDX ring_size) \
405 static inline RING_IDX name##_queued(RING_IDX prod, \
406 RING_IDX cons, \
407 RING_IDX ring_size) \
409 RING_IDX size; \
434 RING_IDX in_cons, in_prod; \
438 RING_IDX out_cons, out_prod; \
442 RING_IDX ring_order; \