Lines Matching refs:buddy
72 enum buddy { enum
109 struct list_head buddy; member
344 INIT_LIST_HEAD(&zhdr->buddy); in init_z3fold_page()
361 static inline int __idx(struct z3fold_header *zhdr, enum buddy bud) in __idx()
373 enum buddy bud) in __encode_handle()
397 static unsigned long encode_handle(struct z3fold_header *zhdr, enum buddy bud) in encode_handle()
419 static enum buddy handle_to_buddy(unsigned long handle) in handle_to_buddy()
443 WARN_ON(!list_empty(&zhdr->buddy)); in __release_z3fold_page()
453 list_add(&zhdr->buddy, &pool->stale); in __release_z3fold_page()
475 list_del_init(&zhdr->buddy); in release_z3fold_page_locked_list()
499 struct z3fold_header, buddy); in free_pages_work()
502 list_del(&zhdr->buddy); in free_pages_work()
550 list_add(&zhdr->buddy, &unbuddied[freechunks]); in add_to_unbuddied()
557 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy()
559 enum buddy bud = HEADLESS; in get_free_buddy()
629 enum buddy new_bud = HEADLESS; in compact_single_buddy()
750 list_del_init(&zhdr->buddy); in do_compact_page()
802 struct z3fold_header, buddy); in __z3fold_alloc()
810 struct z3fold_header, buddy)) || in __z3fold_alloc()
819 list_del_init(&zhdr->buddy); in __z3fold_alloc()
857 struct z3fold_header, buddy); in __z3fold_alloc()
864 list_del_init(&zhdr->buddy); in __z3fold_alloc()
1007 enum buddy bud; in z3fold_alloc()
1097 enum buddy bud; in z3fold_free()
1180 enum buddy buddy; in z3fold_map() local
1189 buddy = handle_to_buddy(handle); in z3fold_map()
1190 switch (buddy) { in z3fold_map()
1202 pr_err("unknown buddy id %d\n", buddy); in z3fold_map()
1224 enum buddy buddy; in z3fold_unmap() local
1232 buddy = handle_to_buddy(handle); in z3fold_unmap()
1233 if (buddy == MIDDLE) in z3fold_unmap()
1273 if (!list_empty(&zhdr->buddy)) in z3fold_page_isolate()
1274 list_del_init(&zhdr->buddy); in z3fold_page_isolate()
1321 INIT_LIST_HEAD(&new_zhdr->buddy); in z3fold_page_migrate()
1354 if (!list_empty(&zhdr->buddy)) in z3fold_page_putback()
1355 list_del_init(&zhdr->buddy); in z3fold_page_putback()
1359 if (list_empty(&zhdr->buddy)) in z3fold_page_putback()