Lines Matching refs:CHUNK_SHIFT
56 #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()
617 sz = zhdr->middle_chunks << CHUNK_SHIFT; in compact_single_buddy()
621 p += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in compact_single_buddy()
622 sz = zhdr->last_chunks << CHUNK_SHIFT; in compact_single_buddy()
650 q += new_zhdr->start_middle << CHUNK_SHIFT; in compact_single_buddy()
654 q += PAGE_SIZE - (new_zhdr->last_chunks << CHUNK_SHIFT); in compact_single_buddy()
1194 addr += zhdr->start_middle << CHUNK_SHIFT; in z3fold_map()
1198 addr += PAGE_SIZE - (handle_to_chunks(handle) << CHUNK_SHIFT); in z3fold_map()