Lines Matching refs:sring
106 struct __name##_sring *sring; \
114 struct __name##_sring *sring; \
143 (_r)->sring = (_s); \
157 (_r)->sring = (_s); \
178 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
181 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
194 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
197 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
230 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
235 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
269 RING_IDX __old = (_r)->sring->req_prod; \
272 (_r)->sring->req_prod = __new; \
274 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
279 RING_IDX __old = (_r)->sring->rsp_prod; \
282 (_r)->sring->rsp_prod = __new; \
284 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
291 (_r)->sring->req_event = (_r)->req_cons + 1; \
299 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \