Lines Matching refs:s
27 rte_stack_init(struct rte_stack *s, unsigned int count, uint32_t flags) in EAL_REGISTER_TAILQ()
29 memset(s, 0, sizeof(*s)); in EAL_REGISTER_TAILQ()
32 rte_stack_lf_init(s, count); in EAL_REGISTER_TAILQ()
34 rte_stack_std_init(s); in EAL_REGISTER_TAILQ()
54 struct rte_stack *s; in rte_stack_create() local
93 0, __alignof__(*s)); in rte_stack_create()
101 s = mz->addr; in rte_stack_create()
103 rte_stack_init(s, count, flags); in rte_stack_create()
106 ret = strlcpy(s->name, name, sizeof(s->name)); in rte_stack_create()
107 if (ret < 0 || ret >= (int)sizeof(s->name)) { in rte_stack_create()
116 s->memzone = mz; in rte_stack_create()
117 s->capacity = count; in rte_stack_create()
118 s->flags = flags; in rte_stack_create()
120 te->data = s; in rte_stack_create()
128 return s; in rte_stack_create()
132 rte_stack_free(struct rte_stack *s) in rte_stack_free() argument
137 if (s == NULL) in rte_stack_free()
145 if (te->data == s) in rte_stack_free()
160 rte_memzone_free(s->memzone); in rte_stack_free()