Lines Matching refs:sring
95 struct __name##_sring *sring; \
103 struct __name##_sring *sring; \
132 (_r)->sring = (_s); \
141 (_r)->sring = (_s); \
162 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
166 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
174 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
191 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
204 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
209 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
243 RING_IDX __old = (_r)->sring->req_prod; \
246 (_r)->sring->req_prod = __new; \
248 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
253 RING_IDX __old = (_r)->sring->rsp_prod; \
256 (_r)->sring->rsp_prod = __new; \
258 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
265 (_r)->sring->req_event = (_r)->req_cons + 1; \
273 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \