Lines Matching refs:sring
115 struct __name##_sring *sring; \
123 struct __name##_sring *sring; \
157 (_r)->sring = (_s); \
164 (_r)->sring = (_s); \
169 (_r)->sring = (_s); \
176 (_r)->sring = (_s); \
198 ((_r)->sring->rsp_prod - (_r)->rsp_cons)
202 unsigned int req = (_r)->sring->req_prod - (_r)->req_cons; \
210 ((((_r)->sring->req_prod - (_r)->req_cons) < \
212 ((_r)->sring->req_prod - (_r)->req_cons) : \
218 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].req))
221 (&((_r)->sring->ring[((_idx) & (RING_SIZE(_r) - 1))].rsp))
229 (_r)->sring->req_prod = (_r)->req_prod_pvt; \
234 (_r)->sring->rsp_prod = (_r)->rsp_prod_pvt; \
268 RING_IDX __old = (_r)->sring->req_prod; \
271 (_r)->sring->req_prod = __new; \
273 (_notify) = ((RING_IDX)(__new - (_r)->sring->req_event) < \
278 RING_IDX __old = (_r)->sring->rsp_prod; \
281 (_r)->sring->rsp_prod = __new; \
283 (_notify) = ((RING_IDX)(__new - (_r)->sring->rsp_event) < \
290 (_r)->sring->req_event = (_r)->req_cons + 1; \
298 (_r)->sring->rsp_event = (_r)->rsp_cons + 1; \