Home
last modified time | relevance | path

Searched refs:CHUNK_SHIFT (Results 1 – 4 of 4) sorted by relevance

/Linux-v6.6/mm/
Dzbud.c70 #define CHUNK_SHIFT (PAGE_SHIFT - NCHUNKS_ORDER) macro
71 #define CHUNK_SIZE (1 << CHUNK_SHIFT)
73 #define NCHUNKS ((PAGE_SIZE - ZHDR_SIZE_ALIGNED) >> CHUNK_SHIFT)
129 return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT; in size_to_chunks()
170 handle += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in encode_handle()
Dz3fold.c56 #define CHUNK_SHIFT (PAGE_SHIFT - NCHUNKS_ORDER) macro
57 #define CHUNK_SIZE (1 << CHUNK_SHIFT)
59 #define ZHDR_CHUNKS (ZHDR_SIZE_ALIGNED >> CHUNK_SHIFT)
60 #define TOTAL_CHUNKS (PAGE_SIZE >> CHUNK_SHIFT)
188 return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT; in size_to_chunks()
582 return memmove(beg + (dst_chunk << CHUNK_SHIFT), in mchunk_memmove()
583 beg + (zhdr->start_middle << CHUNK_SHIFT), in mchunk_memmove()
584 zhdr->middle_chunks << CHUNK_SHIFT); in mchunk_memmove()
612 sz = zhdr->first_chunks << CHUNK_SHIFT; in compact_single_buddy()
616 p += zhdr->start_middle << CHUNK_SHIFT; in compact_single_buddy()
[all …]
/Linux-v6.6/drivers/infiniband/sw/siw/
Dsiw_mem.h45 #define CHUNK_SHIFT 9 /* sets number of pages per chunk */ macro
46 #define PAGES_PER_CHUNK (_AC(1, UL) << CHUNK_SHIFT)
61 chunk_idx = page_idx >> CHUNK_SHIFT, in siw_get_upage()
Dsiw_mem.c382 num_chunks = (num_pages >> CHUNK_SHIFT) + 1; in siw_umem_get()