Lines Matching refs:sring
95 struct __name##_sring *sring; \
103 struct __name##_sring *sring; \
132 (_r)->sring = (_s); \
139 (_r)->sring = (_s); \
144 (_r)->sring = (_s); \
151 (_r)->sring = (_s); \
173 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
177 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
185 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
202 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
215 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
220 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
254 RING_IDX __old = (_r)->sring->req_prod; \
257 (_r)->sring->req_prod = __new; \
259 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
264 RING_IDX __old = (_r)->sring->rsp_prod; \
267 (_r)->sring->rsp_prod = __new; \
269 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
276 (_r)->sring->req_event = (_r)->req_cons + 1; \
284 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \