Lines Matching refs:z3fold_header
62 #define ZHDR_SIZE_ALIGNED round_up(sizeof(struct z3fold_header), CHUNK_SIZE)
115 struct z3fold_header { struct
194 static struct z3fold_header *__z3fold_alloc(struct z3fold_pool *, size_t, bool);
239 static inline void z3fold_page_lock(struct z3fold_header *zhdr) in z3fold_page_lock()
245 static inline int z3fold_page_trylock(struct z3fold_header *zhdr) in z3fold_page_trylock()
251 static inline void z3fold_page_unlock(struct z3fold_header *zhdr) in z3fold_page_unlock()
257 static inline struct z3fold_header *__get_z3fold_header(unsigned long handle, in __get_z3fold_header()
261 struct z3fold_header *zhdr; in __get_z3fold_header()
271 zhdr = (struct z3fold_header *)(addr & PAGE_MASK); in __get_z3fold_header()
280 zhdr = (struct z3fold_header *)(handle & PAGE_MASK); in __get_z3fold_header()
287 static inline struct z3fold_header *handle_to_z3fold_header(unsigned long h) in handle_to_z3fold_header()
293 static inline struct z3fold_header *get_z3fold_header(unsigned long h) in get_z3fold_header()
298 static inline void put_z3fold_header(struct z3fold_header *zhdr) in put_z3fold_header()
306 static inline void free_handle(unsigned long handle, struct z3fold_header *zhdr) in free_handle()
397 static struct z3fold_header *init_z3fold_page(struct page *page, bool headless, in init_z3fold_page()
400 struct z3fold_header *zhdr = page_address(page); in init_z3fold_page()
446 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx()
455 static unsigned long __encode_handle(struct z3fold_header *zhdr, in __encode_handle()
481 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle()
505 struct z3fold_header *zhdr; in handle_to_buddy()
513 zhdr = (struct z3fold_header *)(addr & PAGE_MASK); in handle_to_buddy()
517 static inline struct z3fold_pool *zhdr_to_pool(struct z3fold_header *zhdr) in zhdr_to_pool()
522 static void __release_z3fold_page(struct z3fold_header *zhdr, bool locked) in __release_z3fold_page()
547 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page()
554 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page_locked()
562 struct z3fold_header *zhdr = container_of(ref, struct z3fold_header, in release_z3fold_page_locked_list()
580 struct z3fold_header *zhdr = list_first_entry(&pool->stale, in free_pages_work()
581 struct z3fold_header, buddy); in free_pages_work()
600 static int num_free_chunks(struct z3fold_header *zhdr) in num_free_chunks()
622 struct z3fold_header *zhdr) in add_to_unbuddied()
637 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy()
659 static inline void *mchunk_memmove(struct z3fold_header *zhdr, in mchunk_memmove()
668 static inline bool buddy_single(struct z3fold_header *zhdr) in buddy_single()
675 static struct z3fold_header *compact_single_buddy(struct z3fold_header *zhdr) in compact_single_buddy()
681 struct z3fold_header *new_zhdr = NULL; in compact_single_buddy()
772 static int z3fold_compact_page(struct z3fold_header *zhdr) in z3fold_compact_page()
819 static void do_compact_page(struct z3fold_header *zhdr, bool locked) in do_compact_page()
867 struct z3fold_header *zhdr = container_of(w, struct z3fold_header, in compact_page_work()
874 static inline struct z3fold_header *__z3fold_alloc(struct z3fold_pool *pool, in __z3fold_alloc()
877 struct z3fold_header *zhdr = NULL; in __z3fold_alloc()
889 struct z3fold_header, buddy); in __z3fold_alloc()
898 struct z3fold_header, buddy)) || in __z3fold_alloc()
945 struct z3fold_header, buddy); in __z3fold_alloc()
1093 struct z3fold_header *zhdr = NULL; in z3fold_alloc()
1131 struct z3fold_header, buddy); in z3fold_alloc()
1214 struct z3fold_header *zhdr; in z3fold_free()
1331 struct z3fold_header *zhdr = NULL; in z3fold_reclaim_page()
1504 struct z3fold_header *zhdr; in z3fold_map()
1549 struct z3fold_header *zhdr; in z3fold_unmap()
1579 struct z3fold_header *zhdr; in z3fold_page_isolate()
1619 struct z3fold_header *zhdr, *new_zhdr; in z3fold_page_migrate()
1684 struct z3fold_header *zhdr; in z3fold_page_putback()