Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 1 of 1) sorted by relevance

/DragonOS-0.1.8/kernel/src/libs/
Didr.c887 static int __get_id_from_bitmap(struct ida_bitmap *bmp) in __get_id_from_bitmap() argument
892 if (bmp->bitmap[ary_id] != IDR_FULL) in __get_id_from_bitmap()
894 int bmp_id = __lowbit_id(~bmp->bitmap[ary_id]); in __get_id_from_bitmap()
895 bmp->bitmap[ary_id] |= (1ull << bmp_id); in __get_id_from_bitmap()
896 bmp->count++; // 注意, 这里已经标记这一位已经使用, 同时更新了ida_count in __get_id_from_bitmap()
946 struct ida_bitmap *bmp = (struct ida_bitmap *)stk[0]->ary[layer_id]; in ida_alloc() local
947 int low_id = __get_id_from_bitmap(bmp); in ida_alloc()
953 __idr_mark_full(&ida_p->idr, idr_id, stk, (bmp->count == IDA_FULL ? 2 : 1)); in ida_alloc()
976 struct ida_bitmap *bmp = idr_find(&ida_p->idr, idr_id); in ida_count() local
977 if (NULL == bmp) in ida_count()
[all …]