| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_lmtt_2l.c | 67 #define LMTT_2L_PTE_MAX_NUM BIT(LMTT_2L_HAW - ilog2(SZ_2M)) 106 return ilog2(SZ_2M); in lmtt_2l_pte_shift() 130 XE_WARN_ON(!IS_ALIGNED(offset, SZ_2M)); in lmtt_2l_pte_encode() 131 XE_WARN_ON(!FIELD_FIT(LMTT_2L_PTE_LMEM_PAGE, offset / SZ_2M)); in lmtt_2l_pte_encode() 132 return FIELD_PREP(LMTT_2L_PTE_LMEM_PAGE, offset / SZ_2M) | LMTT_2L_PTE_VALID; in lmtt_2l_pte_encode()
|
| H A D | xe_lmtt_ml.c | 67 #define LMTT_ML_PTE_MAX_NUM BIT(35 - ilog2(SZ_2M)) 112 return ilog2(SZ_2M); in lmtt_ml_pte_shift() 140 XE_WARN_ON(!IS_ALIGNED(offset, SZ_2M)); in lmtt_ml_pte_encode() 141 XE_WARN_ON(!FIELD_FIT(LMTT_ML_PTE_LMEM_PAGE, offset / SZ_2M)); in lmtt_ml_pte_encode() 142 return FIELD_PREP(LMTT_ML_PTE_LMEM_PAGE, offset / SZ_2M) | LMTT_ML_PTE_VALID; in lmtt_ml_pte_encode()
|
| /linux/arch/arm64/include/asm/ |
| H A D | boot.h | 13 #define MAX_FDT_SIZE SZ_2M 18 #define MIN_KIMG_ALIGN SZ_2M
|
| H A D | crash_reserve.h | 6 #define CRASH_ALIGN SZ_2M
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | pre_fault_memory_test.c | 16 #define TEST_SIZE (SZ_2M + PAGE_SIZE) 181 alignment = SZ_2M; in __test_pre_fault_memory() 193 pre_fault_memory(vcpu, gpa, 0, SZ_2M, 0, private); in __test_pre_fault_memory() 194 pre_fault_memory(vcpu, gpa, SZ_2M, PAGE_SIZE * 2, PAGE_SIZE, private); in __test_pre_fault_memory()
|
| /linux/fs/btrfs/tests/ |
| H A D | free-space-tests.c | 63 ret = btrfs_remove_free_space(cache, SZ_2M, 4096); in test_extents() 74 if (test_check_exists(cache, SZ_2M, 4096)) { in test_extents() 120 ret = btrfs_remove_free_space(cache, SZ_1M, SZ_2M); in test_bitmaps() 133 ret = test_add_free_space_entry(cache, next_bitmap_offset - SZ_2M, in test_bitmaps() 141 ret = btrfs_remove_free_space(cache, next_bitmap_offset - SZ_1M, SZ_2M); in test_bitmaps() 147 if (test_check_exists(cache, next_bitmap_offset - SZ_1M, SZ_2M)) { in test_bitmaps() 242 ret = test_add_free_space_entry(cache, SZ_2M, SZ_2M, 0); in test_bitmaps_and_extents() 302 ret = test_add_free_space_entry(cache, SZ_1M, SZ_2M, 1); in test_bitmaps_and_extents()
|
| /linux/arch/arm/mach-omap2/ |
| H A D | iomap.h | 192 #define L4_WK_54XX_SIZE SZ_2M 243 #define L4_PER3_DRA7XX_SIZE SZ_2M 251 #define L4_CFG_DRA7XX_SIZE (SZ_1M + SZ_2M)
|
| /linux/rust/kernel/ |
| H A D | sizes.rs | 30 pub const SZ_2M: usize = bindings::SZ_2M as usize; constant
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | private_mem_conversions_test.c | 27 #define PER_CPU_DATA_SIZE ((uint64_t)(SZ_2M + PAGE_SIZE)) 116 GUEST_STAGE(0, SZ_2M), 118 GUEST_STAGE(PAGE_SIZE, SZ_2M), 119 GUEST_STAGE(SZ_2M, PAGE_SIZE), 376 const size_t alignment = max_t(size_t, SZ_2M, get_backing_src_pagesz(src_type)); in test_mem_conversions()
|
| /linux/arch/powerpc/platforms/83xx/ |
| H A D | misc.c | 127 int immrsize = IS_ALIGNED(immrbase, SZ_2M) ? SZ_2M : SZ_1M; in mpc83xx_setup_arch()
|
| /linux/tools/testing/memblock/tests/ |
| H A D | basic_api.c | 312 .size = SZ_2M in memblock_add_twice_check() 405 .size = SZ_2M in memblock_add_near_max_check() 751 .base = SZ_2M, in memblock_reserve_within_check() 781 .size = SZ_2M in memblock_reserve_twice_check() 874 .size = SZ_2M in memblock_reserve_near_max_check() 1442 .base = SZ_2M, in memblock_remove_overlap_bottom_check() 1587 .base = PHYS_ADDR_MAX - SZ_2M, in memblock_remove_near_max_check() 1588 .size = SZ_2M in memblock_remove_near_max_check() 1593 .size = SZ_2M in memblock_remove_near_max_check() 1769 .base = SZ_2M, in memblock_free_absent_check() [all …]
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | sst.c | 114 .size = SZ_2M, 148 .size = SZ_2M, 165 .size = SZ_2M,
|
| H A D | intel.c | 15 .size = SZ_2M,
|
| H A D | eon.c | 47 .size = SZ_2M,
|
| H A D | gigadevice.c | 40 .size = SZ_2M,
|
| /linux/drivers/gpu/drm/tyr/ |
| H A D | driver.rs | 18 use kernel::sizes::SZ_2M; 30 pub(crate) type IoMem = kernel::io::mem::IoMem<SZ_2M>; 119 let iomem = Arc::pin_init(request.iomap_sized::<SZ_2M>(), GFP_KERNEL)?; in probe()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | crash_reserve.h | 5 #define CRASH_ALIGN SZ_2M
|
| H A D | efi.h | 30 return SZ_2M; in efi_get_kimg_min_align()
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_rogue_heap_config.h | 103 #define ROGUE_VISTEST_HEAP_SIZE SZ_2M
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_ids.c | 46 SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) }, 55 SZ_8K, SZ_8K, SZ_2M, NAND_NEED_SCRAMBLING, 6, 640,
|
| /linux/arch/riscv/include/asm/ |
| H A D | efi.h | 38 return IS_ENABLED(CONFIG_64BIT) ? SZ_2M : SZ_4M; in efi_get_kimg_min_align()
|
| /linux/tools/include/linux/ |
| H A D | sizes.h | 33 #define SZ_2M 0x00200000 macro
|
| /linux/include/linux/ |
| H A D | crash_reserve.h | 45 #define CRASH_ALIGN SZ_2M
|
| /linux/arch/powerpc/include/asm/ |
| H A D | fixmap.h | 63 #define FIX_IMMR_SIZE (SZ_2M / PAGE_SIZE)
|
| /linux/drivers/gpu/drm/panthor/ |
| H A D | panthor_mmu.c | 874 size_t blk_offset = -addr % SZ_2M; in get_pgsize() 876 if (blk_offset || size < SZ_2M) { in get_pgsize() 881 *count = min(blk_offset, size) / SZ_2M; in get_pgsize() 882 return SZ_2M; in get_pgsize() 1058 size >= SZ_2M ? SZ_2M : SZ_4K, in panthor_vm_alloc_va() 1311 if (va != ALIGN(va, SZ_2M)) in panthor_vm_prepare_unmap_op_ctx() 1314 if (va + size != ALIGN(va + size, SZ_2M) && in panthor_vm_prepare_unmap_op_ctx() 1315 ALIGN(va + size, SZ_2M) != ALIGN(va, SZ_2M)) in panthor_vm_prepare_unmap_op_ctx() 2326 .pgsize_bitmap = SZ_4K | SZ_2M, in panthor_vm_create()
|