Lines Matching refs:first_chunks

116 	unsigned short first_chunks;  member
527 int nfree_before = zhdr->first_chunks ? in num_free_chunks()
534 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
542 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0 || in add_to_unbuddied()
562 if (!zhdr->first_chunks && in get_free_buddy()
568 if (!zhdr->first_chunks) in get_free_buddy()
590 return !((zhdr->first_chunks && zhdr->middle_chunks) || in buddy_single()
591 (zhdr->first_chunks && zhdr->last_chunks) || in buddy_single()
611 if (zhdr->first_chunks && zhdr->slots->slot[first_idx]) { in compact_single_buddy()
613 sz = zhdr->first_chunks << CHUNK_SHIFT; in compact_single_buddy()
615 moved_chunks = &zhdr->first_chunks; in compact_single_buddy()
644 new_zhdr->first_chunks = chunks; in compact_single_buddy()
650 new_zhdr->first_chunks + ZHDR_CHUNKS; in compact_single_buddy()
701 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in z3fold_compact_page()
704 zhdr->first_chunks = zhdr->middle_chunks; in z3fold_compact_page()
715 if (zhdr->first_chunks != 0 && zhdr->last_chunks == 0 && in z3fold_compact_page()
716 zhdr->start_middle - (zhdr->first_chunks + ZHDR_CHUNKS) >= in z3fold_compact_page()
718 mchunk_memmove(zhdr, zhdr->first_chunks + ZHDR_CHUNKS); in z3fold_compact_page()
719 zhdr->start_middle = zhdr->first_chunks + ZHDR_CHUNKS; in z3fold_compact_page()
721 } else if (zhdr->last_chunks != 0 && zhdr->first_chunks == 0 && in z3fold_compact_page()
1064 zhdr->first_chunks = chunks; in z3fold_alloc()
1069 zhdr->start_middle = zhdr->first_chunks + ZHDR_CHUNKS; in z3fold_alloc()
1123 zhdr->first_chunks = 0; in z3fold_free()
1326 if (new_zhdr->first_chunks) in z3fold_page_migrate()