Lines Matching refs:_s
62 #define __CONST_RING_SIZE(_s, _sz) \ argument
63 (__RD32(((_sz) - offsetof(struct _s##_sring, ring)) / \
64 sizeof(((struct _s##_sring *)0)->ring[0])))
68 #define __RING_SIZE(_s, _sz) \ argument
69 (__RD32(((_sz) - (long)(_s)->ring + (long)(_s)) / sizeof((_s)->ring[0])))
151 #define SHARED_RING_INIT(_s) do { \ argument
152 (_s)->req_prod = (_s)->rsp_prod = 0; \
153 (_s)->req_event = (_s)->rsp_event = 1; \
154 (void)memset((_s)->__pad, 0, sizeof((_s)->__pad)); \
157 #define FRONT_RING_ATTACH(_r, _s, _i, __size) do { \ argument
160 (_r)->nr_ents = __RING_SIZE(_s, __size); \
161 (_r)->sring = (_s); \
164 #define FRONT_RING_INIT(_r, _s, __size) FRONT_RING_ATTACH(_r, _s, 0, __size) argument
166 #define BACK_RING_ATTACH(_r, _s, _i, __size) do { \ argument
169 (_r)->nr_ents = __RING_SIZE(_s, __size); \
170 (_r)->sring = (_s); \
173 #define BACK_RING_INIT(_r, _s, __size) BACK_RING_ATTACH(_r, _s, 0, __size) argument