Home
last modified time | relevance | path

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

/DragonOS-0.1.5/kernel/src/libs/
Didr.c575 int pos_i[MAX_LEVEL + 1] = {0}; in idr_find_next_getid() local
601 pos_i[layer] = cur_state ? 0 : ((start_id >> (layer * IDR_BITS)) & IDR_MASK); in idr_find_next_getid()
605 pos_i[layer]++; in idr_find_next_getid()
609 BUG_ON(pos_i[layer] >= 64); in idr_find_next_getid()
610 unsigned long t_bitmap = (cur_layer->bitmap >> pos_i[layer]); in idr_find_next_getid()
613 int64_t layer_id = __lowbit_id(t_bitmap) + pos_i[layer]; in idr_find_next_getid()
616 if ((cur_state == false) && (layer_id > pos_i[layer] > 0)) in idr_find_next_getid()
619 pos_i[layer] = layer_id; in idr_find_next_getid()