Lines Matching refs:zbud_header
126 struct zbud_header { struct
153 static struct zbud_header *init_zbud_page(struct page *page) in init_zbud_page() argument
155 struct zbud_header *zhdr = page_address(page); in init_zbud_page()
165 static void free_zbud_page(struct zbud_header *zhdr) in free_zbud_page()
174 static unsigned long encode_handle(struct zbud_header *zhdr, enum buddy bud) in encode_handle()
194 static struct zbud_header *handle_to_zbud_header(unsigned long handle) in handle_to_zbud_header()
196 return (struct zbud_header *)(handle & PAGE_MASK); in handle_to_zbud_header()
200 static int num_free_chunks(struct zbud_header *zhdr) in num_free_chunks()
272 struct zbud_header *zhdr = NULL; in zbud_alloc()
287 struct zbud_header, buddy); in zbud_alloc()
345 struct zbud_header *zhdr; in zbud_free()
418 struct zbud_header *zhdr; in zbud_reclaim_page()
428 zhdr = list_last_entry(&pool->lru, struct zbud_header, lru); in zbud_reclaim_page()
621 BUILD_BUG_ON(sizeof(struct zbud_header) > ZHDR_SIZE_ALIGNED); in init_zbud()