Home
last modified time | relevance | path

Searched refs:last_chunks (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/mm/
H A Dzbud.c114 unsigned int last_chunks; member
140 zhdr->last_chunks = 0; in init_zbud_page()
170 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
187 return NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
289 zhdr->last_chunks = chunks; in zbud_alloc()
291 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0) { in zbud_alloc()
321 zhdr->last_chunks = 0; in zbud_free()
328 if (zhdr->first_chunks == 0 && zhdr->last_chunks == 0) { in zbud_free()
H A Dz3fold.c118 unsigned short last_chunks; member
388 h |= (zhdr->last_chunks << BUDDY_SHIFT); in __encode_handle()
528 int nfree_after = zhdr->last_chunks ? in num_free_chunks()
533 nfree = NCHUNKS - zhdr->first_chunks - zhdr->last_chunks; in num_free_chunks()
541 if (zhdr->first_chunks == 0 || zhdr->last_chunks == 0 || in add_to_unbuddied()
564 else if (!zhdr->last_chunks) in get_free_buddy()
569 else if (!zhdr->last_chunks) in get_free_buddy()
590 (zhdr->first_chunks && zhdr->last_chunks) || in buddy_single()
591 (zhdr->middle_chunks && zhdr->last_chunks)); in buddy_single()
620 } else if (zhdr->last_chunks && zhdr->slots->slot[last_idx]) { in compact_single_buddy()
[all …]