Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/
Didr.c894 int bmp_id = __lowbit_id(~bmp->bitmap[ary_id]); in __get_id_from_bitmap() local
895 bmp->bitmap[ary_id] |= (1ull << bmp_id); in __get_id_from_bitmap()
898 if (unlikely((unsigned long long)ary_id * IDA_BMP_SIZE + bmp_id > INT32_MAX)) in __get_id_from_bitmap()
905 return ary_id * IDA_BMP_SIZE + bmp_id; in __get_id_from_bitmap()
974 int bmp_id = (__id % IDA_BITMAP_BITS) % IDA_BMP_SIZE; in ida_count() local
980 return ((bmp->bitmap[ary_id] >> bmp_id) & 1); in ida_count()
997 int64_t bmp_id = (__id % IDA_BITMAP_BITS) % IDA_BMP_SIZE; in ida_remove() local
1008 if (unlikely(NULL == b_p || 0 == ((b_p->bitmap[ary_id] >> bmp_id) & 1))) in ida_remove()
1012 b_p->bitmap[ary_id] ^= (1ull << bmp_id); in ida_remove()