Lines Matching refs:sring
107 struct __name##_sring *sring; \
115 struct __name##_sring *sring; \
144 (_r)->sring = (_s); \
153 (_r)->sring = (_s); \
174 ((_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))
188 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
221 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
226 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
260 RING_IDX __old = (_r)->sring->req_prod; \
263 (_r)->sring->req_prod = __new; \
265 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
270 RING_IDX __old = (_r)->sring->rsp_prod; \
273 (_r)->sring->rsp_prod = __new; \
275 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
282 (_r)->sring->req_event = (_r)->req_cons + 1; \
290 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \