Lines Matching refs:sring
92 struct __name##_sring *sring; \
100 struct __name##_sring *sring; \
129 (_r)->sring = (_s); \
136 (_r)->sring = (_s); \
141 (_r)->sring = (_s); \
148 (_r)->sring = (_s); \
170 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
174 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
182 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
185 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
198 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
203 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
237 RING_IDX __old = (_r)->sring->req_prod; \
240 (_r)->sring->req_prod = __new; \
242 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
247 RING_IDX __old = (_r)->sring->rsp_prod; \
250 (_r)->sring->rsp_prod = __new; \
252 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
259 (_r)->sring->req_event = (_r)->req_cons + 1; \
267 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \