Lines Matching refs:sring
92 struct __name##_sring *sring; \
100 struct __name##_sring *sring; \
129 (_r)->sring = (_s); \
136 (_r)->sring = (_s); \
141 (_r)->sring = (_s); \
148 (_r)->sring = (_s); \
170 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
174 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
182 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
199 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
212 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
217 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
251 RING_IDX __old = (_r)->sring->req_prod; \
254 (_r)->sring->req_prod = __new; \
256 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
261 RING_IDX __old = (_r)->sring->rsp_prod; \
264 (_r)->sring->rsp_prod = __new; \
266 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
273 (_r)->sring->req_event = (_r)->req_cons + 1; \
281 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \