Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/mm/
Dmmio-buddy.c8 #define __exp2index(exp) (exp - 12) argument
14 #define buddy_block_vaddr(vaddr, exp) (vaddr ^ (1UL << exp)) argument
55 static __always_inline void __buddy_split(struct __mmio_buddy_addr_region *region, int exp) in __buddy_split() argument
58 …dy_addr_region *new_region = __mmio_buddy_create_region(buddy_block_vaddr(region->vaddr, exp - 1)); in __buddy_split()
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()
72 int exp) in __buddy_merge_blocks() argument
75 if (unlikely(x->vaddr != buddy_block_vaddr(y->vaddr, exp))) // 不是一对伙伴 in __buddy_merge_blocks()
84 __buddy_add_region_obj(__exp2index(exp + 1), x); in __buddy_merge_blocks()
95 static __always_inline struct __mmio_buddy_addr_region *__buddy_pop_region(int exp) in __buddy_pop_region() argument
[all …]
Dmmio-buddy.h65 int __mmio_buddy_give_back(uint64_t vaddr, int exp);
79 struct __mmio_buddy_addr_region *mmio_buddy_query_addr_region(int exp);