Lines Matching refs:top
16 unsigned short top; member
37 return pstack->top == 0; in pstack__empty()
42 unsigned short i = pstack->top, last_index = pstack->top - 1; in pstack__remove()
50 --pstack->top; in pstack__remove()
59 if (pstack->top == pstack->max_nr_entries) { in pstack__push()
60 pr_err("%s: top=%d, overflow!\n", __func__, pstack->top); in pstack__push()
63 pstack->entries[pstack->top++] = key; in pstack__push()
70 if (pstack->top == 0) { in pstack__pop()
75 ret = pstack->entries[--pstack->top]; in pstack__pop()
76 pstack->entries[pstack->top] = NULL; in pstack__pop()
82 if (pstack->top == 0) in pstack__peek()
84 return pstack->entries[pstack->top - 1]; in pstack__peek()