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])))
148 #define SHARED_RING_INIT(_s) do { \ argument
149 (_s)->req_prod = (_s)->rsp_prod = 0; \
150 (_s)->req_event = (_s)->rsp_event = 1; \
151 (void)memset((_s)->pvt.pvt_pad, 0, sizeof((_s)->pvt.pvt_pad)); \
152 (void)memset((_s)->__pad, 0, sizeof((_s)->__pad)); \
155 #define FRONT_RING_INIT(_r, _s, __size) do { \ argument
158 (_r)->nr_ents = __RING_SIZE(_s, __size); \
159 (_r)->sring = (_s); \
162 #define BACK_RING_INIT(_r, _s, __size) do { \ argument
165 (_r)->nr_ents = __RING_SIZE(_s, __size); \
166 (_r)->sring = (_s); \