Lines Matching refs:index
157 int index = 0;
176 for (index = 1; index < stack->num_elements ; index++) {
177 softs->rcb[index].tag = INVALID_ELEM;
178 pqisrc_put_tag(stack, index);
208 void pqisrc_put_tag(lockless_stack_t *stack, uint32_t index)
213 DBG_INFO("push tag :%d\n",index);
215 if ( index >= stack->num_elements ) {
217 DBG_ERR("Pushed Invalid index\n"); /* stack full */
221 if ( stack->next_index_array[index] != 0) {
231 /* update the index at the top of the stack with the new index */
232 new_head.top.index = index;
233 /* Create a link to the previous index */
234 stack->next_index_array[index] = cur_head.top.index;
251 if (cur_head.top.index == 0) /* stack empty */
255 /* update the index at the top of the stack with the next index */
256 new_head.top.index = stack->next_index_array[cur_head.top.index];
259 stack->next_index_array[cur_head.top.index] = 0;
261 DBG_INFO("pop tag: %d\n",cur_head.top.index);
263 return cur_head.top.index; /*tag*/