Lines Matching refs:id
166 int64_t id = 0; in __idr_get_empty_slot() local
183 id = (id << IDR_BITS) | pos; in __idr_get_empty_slot()
202 return id; 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() argument
215 int64_t __id = (int64_t)id; in __idr_mark_full()
248 static __always_inline int __idr_get_path(struct idr *idp, int id, struct idr_layer **stk) in __idr_get_path() argument
250 int64_t __id = (int64_t)id; in __idr_get_path()
294 static __always_inline void __idr_erase_full(struct idr *idp, int id, struct idr_layer **stk, int m… in __idr_erase_full() argument
296 int64_t __id = (int64_t)id; in __idr_erase_full()
364 int64_t id = __idr_get_empty_slot(idp, stk); in __idr_get_new_above_int() local
366 if (id >= 0) in __idr_get_new_above_int()
368 stk[0]->ary[IDR_MASK & id] = ptr; in __idr_get_new_above_int()
369 __idr_mark_full(idp, id, stk, 2); in __idr_get_new_above_int()
372 return id; in __idr_get_new_above_int()
383 int idr_alloc(struct idr *idp, void *ptr, int *id) in idr_alloc() argument
388 *id = rv; in idr_alloc()
400 void *idr_remove(struct idr *idp, int id) in idr_remove() argument
402 int64_t __id = (int64_t)id; in idr_remove()
444 int64_t id = __lowbit_id(cur_layer->bitmap); in __idr_remove_all_with_free() local
446 cur_layer->bitmap ^= (1ull << id); in __idr_remove_all_with_free()
447 cur_layer = cur_layer->ary[id]; in __idr_remove_all_with_free()
448 stk[layer]->ary[id] = NULL; in __idr_remove_all_with_free()
519 void *idr_find(struct idr *idp, int id) in idr_find() argument
521 int64_t __id = (int64_t)id; in idr_find()
671 int idr_replace_get_old(struct idr *idp, void *ptr, int id, void **old_ptr) in idr_replace_get_old() argument
673 int64_t __id = (int64_t)id; in idr_replace_get_old()
716 int idr_replace(struct idr *idp, void *ptr, int id) in idr_replace() argument
718 int64_t __id = (int64_t)id; in idr_replace()
755 static bool __idr_cnt(int layer, int id, struct idr_layer *cur_layer) in __idr_cnt() argument
757 int64_t __id = (int64_t)id; in __idr_cnt()
788 bool idr_count(struct idr *idp, int id) in idr_count() argument
790 int64_t __id = (int64_t)id; in idr_count()
808 return __idr_cnt(layer, id, cur_layer); in idr_count()
966 bool ida_count(struct ida *ida_p, int id) in ida_count() argument
968 int64_t __id = (int64_t)id; in ida_count()
969 if (unlikely(NULL == ida_p || NULL == ida_p->idr.top || id < 0)) in ida_count()
989 void ida_remove(struct ida *ida_p, int id) in ida_remove() argument
991 int64_t __id = (int64_t)id; in ida_remove()
992 if (unlikely(NULL == ida_p || NULL == ida_p->idr.top || id < 0)) in ida_remove()