Lines Matching refs:sring
139 struct __name##_sring *sring; \
147 struct __name##_sring *sring; \
182 (_r)->sring = (_s); \
191 (_r)->sring = (_s); \
212 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
216 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
224 ((((_r)->sring->req_prod - (_r)->req_cons) < \
226 ((_r)->sring->req_prod - (_r)->req_cons) : \
232 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
235 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
268 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
273 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
307 RING_IDX __old = (_r)->sring->req_prod; \
310 (_r)->sring->req_prod = __new; \
312 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
317 RING_IDX __old = (_r)->sring->rsp_prod; \
320 (_r)->sring->rsp_prod = __new; \
322 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
329 (_r)->sring->req_event = (_r)->req_cons + 1; \
337 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \