Lines Matching refs:chunks
556 static inline enum buddy get_free_buddy(struct z3fold_header *zhdr, int chunks) in get_free_buddy() argument
562 chunks <= zhdr->start_middle - ZHDR_CHUNKS) in get_free_buddy()
629 short chunks = size_to_chunks(sz); in compact_single_buddy() local
639 new_bud = get_free_buddy(new_zhdr, chunks); in compact_single_buddy()
643 new_zhdr->first_chunks = chunks; in compact_single_buddy()
647 new_zhdr->middle_chunks = chunks; in compact_single_buddy()
653 new_zhdr->last_chunks = chunks; in compact_single_buddy()
791 int chunks = size_to_chunks(size), i; in __z3fold_alloc() local
797 for_each_unbuddied_list(i, chunks) { in __z3fold_alloc()
853 l = &unbuddied[chunks]; in __z3fold_alloc()
1003 int chunks = size_to_chunks(size); in z3fold_alloc() local
1021 bud = get_free_buddy(zhdr, chunks); in z3fold_alloc()
1063 zhdr->first_chunks = chunks; in z3fold_alloc()
1065 zhdr->last_chunks = chunks; in z3fold_alloc()
1067 zhdr->middle_chunks = chunks; in z3fold_alloc()