Lines Matching refs:top
230 new_head.top.seq_no = cur_head.top.seq_no + 1;
231 /* update the index at the top of the stack with the new index */
232 new_head.top.index = index;
234 stack->next_index_array[index] = cur_head.top.index;
251 if (cur_head.top.index == 0) /* stack empty */
254 new_head.top.seq_no = cur_head.top.seq_no + 1;
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*/