Lines Matching refs:sring
124 struct __name##_sring *sring; \
132 struct __name##_sring *sring; \
161 (_r)->sring = (_s); \
170 (_r)->sring = (_s); \
191 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
194 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
202 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
205 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
238 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
243 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
277 RING_IDX __old = (_r)->sring->req_prod; \
280 (_r)->sring->req_prod = __new; \
282 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
287 RING_IDX __old = (_r)->sring->rsp_prod; \
290 (_r)->sring->rsp_prod = __new; \
292 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
299 (_r)->sring->req_event = (_r)->req_cons + 1; \
307 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \