Lines Matching refs:__exp2index

8 #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()
140 struct __mmio_free_region_list *free_list = &__mmio_pool.free_regions[__exp2index(exp)]; in __buddy_merge()
181 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
188 … list_empty(&__mmio_pool.free_regions[__exp2index(cur_exp)].list_head))) // 一直寻找到有空闲空间的链表 in mmio_buddy_query_addr_region()
201 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
208 if (!list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head)) in mmio_buddy_query_addr_region()
233 __buddy_add_region_obj(__exp2index(exp), region); in __mmio_buddy_give_back()