Lines Matching refs:s
101 * @param s
111 rte_stack_push(struct rte_stack *s, void * const *obj_table, unsigned int n)
113 RTE_ASSERT(s != NULL);
116 if (s->flags & RTE_STACK_F_LF)
117 return __rte_stack_lf_push(s, obj_table, n);
119 return __rte_stack_std_push(s, obj_table, n);
125 * @param s
135 rte_stack_pop(struct rte_stack *s, void **obj_table, unsigned int n)
137 RTE_ASSERT(s != NULL);
140 if (s->flags & RTE_STACK_F_LF)
141 return __rte_stack_lf_pop(s, obj_table, n);
143 return __rte_stack_std_pop(s, obj_table, n);
149 * @param s
155 rte_stack_count(struct rte_stack *s)
157 RTE_ASSERT(s != NULL);
159 if (s->flags & RTE_STACK_F_LF)
160 return __rte_stack_lf_count(s);
162 return __rte_stack_std_count(s);
168 * @param s
174 rte_stack_free_count(struct rte_stack *s)
176 RTE_ASSERT(s != NULL);
178 return s->capacity - rte_stack_count(s);
216 * @param s
218 * If s is NULL, no operation is performed.
221 rte_stack_free(struct rte_stack *s);