Searched refs:stk (Results 1 – 1 of 1) sorted by relevance
159 static int __idr_get_empty_slot(struct idr *idp, struct idr_layer **stk) in __idr_get_empty_slot() argument169 stk[layer + 1] = NULL; // 标志为数组末尾 in __idr_get_empty_slot()174 stk[layer] = cur_layer; in __idr_get_empty_slot()196 stk[layer]->ary[pos] = cur_layer; // 最后别忘了记录儿子节点 in __idr_get_empty_slot()213 static __always_inline void __idr_mark_full(struct idr *idp, int id, struct idr_layer **stk, int ma… in __idr_mark_full() argument216 if (unlikely(NULL == stk[0] || NULL == idp->top)) in __idr_mark_full()225 stk[0]->full |= (1ull << layer_id); in __idr_mark_full()227 stk[0]->bitmap |= (1ull << layer_id); in __idr_mark_full()229 for (int i = 1; stk[i]; ++i) in __idr_mark_full()234 stk[i]->bitmap |= (1ull << layer_id); in __idr_mark_full()[all …]