Lines Matching refs:CHUNK_SHIFT
60 #define CHUNK_SHIFT (PAGE_SHIFT - NCHUNKS_ORDER) macro
61 #define CHUNK_SIZE (1 << CHUNK_SHIFT)
63 #define ZHDR_CHUNKS (ZHDR_SIZE_ALIGNED >> CHUNK_SHIFT)
64 #define TOTAL_CHUNKS (PAGE_SIZE >> CHUNK_SHIFT)
206 return (size + CHUNK_SIZE - 1) >> CHUNK_SHIFT; in size_to_chunks()
646 return memmove(beg + (dst_chunk << CHUNK_SHIFT), in mchunk_memmove()
647 beg + (zhdr->start_middle << CHUNK_SHIFT), in mchunk_memmove()
648 zhdr->middle_chunks << CHUNK_SHIFT); in mchunk_memmove()
676 sz = zhdr->first_chunks << CHUNK_SHIFT; in compact_single_buddy()
680 p += zhdr->start_middle << CHUNK_SHIFT; in compact_single_buddy()
681 sz = zhdr->middle_chunks << CHUNK_SHIFT; in compact_single_buddy()
685 p += PAGE_SIZE - (zhdr->last_chunks << CHUNK_SHIFT); in compact_single_buddy()
686 sz = zhdr->last_chunks << CHUNK_SHIFT; in compact_single_buddy()
714 q += new_zhdr->start_middle << CHUNK_SHIFT; in compact_single_buddy()
718 q += PAGE_SIZE - (new_zhdr->last_chunks << CHUNK_SHIFT); in compact_single_buddy()
1507 addr += zhdr->start_middle << CHUNK_SHIFT; in z3fold_map()
1511 addr += PAGE_SIZE - (handle_to_chunks(handle) << CHUNK_SHIFT); in z3fold_map()