Lines Matching refs:__mmio_pool

16 static struct mmio_buddy_mem_pool __mmio_pool; // mmio buddy内存池  variable
27 struct __mmio_free_region_list *lst = &__mmio_pool.free_regions[index]; in __buddy_add_region_obj()
97 if (unlikely(list_empty(&__mmio_pool.free_regions[__exp2index(exp)].list_head))) in __buddy_pop_region()
99 …struct __mmio_buddy_addr_region *r = container_of(list_next(&__mmio_pool.free_regions[__exp2index(… 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()
243 memset(&__mmio_pool, 0, sizeof(struct mmio_buddy_mem_pool)); in mmio_buddy_init()
244 spin_init(&__mmio_pool.op_lock); in mmio_buddy_init()
249 list_init(&__mmio_pool.free_regions[i].list_head); in mmio_buddy_init()
250 __mmio_pool.free_regions[i].num_free = 0; in mmio_buddy_init()