Lines Matching refs:_s
45 #define __CONST_RING_SIZE(_s, _sz) \ argument
46 (__RD32(((_sz) - offsetof(struct _s##_sring, ring)) / \
47 sizeof(((struct _s##_sring *)0)->ring[0])))
51 #define __RING_SIZE(_s, _sz) \ argument
52 (__RD32(((_sz) - (long)(_s)->ring + (long)(_s)) / sizeof((_s)->ring[0])))
133 #define SHARED_RING_INIT(_s) do { \ argument
134 (_s)->req_prod = (_s)->rsp_prod = 0; \
135 (_s)->req_event = (_s)->rsp_event = 1; \
136 (void)memset((_s)->__pad, 0, sizeof((_s)->__pad)); \
139 #define FRONT_RING_ATTACH(_r, _s, _i, __size) do { \ argument
142 (_r)->nr_ents = __RING_SIZE(_s, __size); \
143 (_r)->sring = (_s); \
146 #define FRONT_RING_INIT(_r, _s, __size) FRONT_RING_ATTACH(_r, _s, 0, __size) argument
153 #define BACK_RING_ATTACH(_r, _s, _i, __size) do { \ argument
156 (_r)->nr_ents = __RING_SIZE(_s, __size); \
157 (_r)->sring = (_s); \
160 #define BACK_RING_INIT(_r, _s, __size) BACK_RING_ATTACH(_r, _s, 0, __size) argument