Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.c8 #define __exp2index(exp) (exp - 12) macro
59 __buddy_add_region_obj(__exp2index(exp - 1), region); in __buddy_split()
60 __buddy_add_region_obj(__exp2index(exp - 1), new_region); in __buddy_split()
84 __buddy_add_region_obj(__exp2index(exp + 1), x); in __buddy_merge_blocks()
97 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __buddy_pop_region()
99 …uddy_addr_region *r = container_of(list_next(&__mmio_pool.free_regions[__exp2index(exp)].list_head… in __buddy_pop_region()
103 --__mmio_pool.free_regions[__exp2index(exp)].num_free; in __buddy_pop_region()
117 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __find_buddy()
121 struct List *list = &__mmio_pool.free_regions[__exp2index(exp)].list_head; in __find_buddy()
129 } while (list_next(list) != &__mmio_pool.free_regions[__exp2index(exp)].list_head); in __find_buddy()
[all …]