/linux-6.12.1/drivers/gpu/drm/xe/ |
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()
|
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-6.12.1/tools/testing/selftests/kvm/ |
D | pre_fault_memory_test.c | 15 #define TEST_SIZE (SZ_2M + PAGE_SIZE) 88 alignment = SZ_2M; in __test_pre_fault_memory() 100 pre_fault_memory(vcpu, guest_test_phys_mem, SZ_2M, 0); in __test_pre_fault_memory() 101 pre_fault_memory(vcpu, guest_test_phys_mem + SZ_2M, PAGE_SIZE * 2, PAGE_SIZE); in __test_pre_fault_memory()
|
/linux-6.12.1/arch/arm64/include/asm/ |
D | boot.h | 13 #define MAX_FDT_SIZE SZ_2M 18 #define MIN_KIMG_ALIGN SZ_2M
|
D | crash_reserve.h | 6 #define CRASH_ALIGN SZ_2M
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_pages.c | 411 IS_ALIGNED(i915_vma_offset(vma), SZ_2M) && in igt_check_page_sizes() 412 vma->page_sizes.sg & SZ_2M && in igt_check_page_sizes() 413 vma->resource->page_sizes_gtt < SZ_2M) { in igt_check_page_sizes() 887 .size = SZ_2M, in igt_ppgtt_64K() 892 .size = SZ_2M - SZ_4K, in igt_ppgtt_64K() 897 .size = SZ_2M + SZ_4K, in igt_ppgtt_64K() 902 .size = SZ_2M + SZ_64K, in igt_ppgtt_64K() 907 .size = SZ_2M - SZ_64K, in igt_ppgtt_64K() 914 .offset = SZ_2M, in igt_ppgtt_64K() 919 .offset = SZ_2M - SZ_64K, in igt_ppgtt_64K() [all …]
|
/linux-6.12.1/drivers/gpu/drm/panfrost/ |
D | panfrost_mmu.c | 263 size_t blk_offset = -addr % SZ_2M; in get_pgsize() 265 if (blk_offset || size < SZ_2M) { in get_pgsize() 270 *count = min(blk_offset, size) / SZ_2M; in get_pgsize() 271 return SZ_2M; in get_pgsize() 439 #define NUM_FAULT_PAGES (SZ_2M / PAGE_SIZE) 467 addr &= ~((u64)SZ_2M - 1); in panfrost_mmu_map_fault_addr() 476 bo->sgts = kvmalloc_array(bo->base.base.size / SZ_2M, in panfrost_mmu_map_fault_addr() 520 sgt = &bo->sgts[page_offset / (SZ_2M / PAGE_SIZE)]; in panfrost_mmu_map_fault_addr() 522 NUM_FAULT_PAGES, 0, SZ_2M, GFP_KERNEL); in panfrost_mmu_map_fault_addr() 534 bo->heap_rss_size += SZ_2M; in panfrost_mmu_map_fault_addr() [all …]
|
D | panfrost_gem.c | 40 int n_sgt = bo->base.base.size / SZ_2M; in panfrost_gem_free_object() 142 align = size >= SZ_2M ? SZ_2M >> PAGE_SHIFT : 0; in panfrost_gem_open() 275 size = roundup(size, SZ_2M); in panfrost_gem_create()
|
/linux-6.12.1/drivers/mtd/spi-nor/ |
D | winbond.c | 32 nor->params->size == SZ_2M && in w25q128_post_bfpt_fixups() 33 nor->params->erase_map.regions[0].size == SZ_2M) { in w25q128_post_bfpt_fixups() 98 .size = SZ_2M, 166 .size = SZ_2M, 200 .size = SZ_2M,
|
D | micron-st.c | 260 .size = SZ_2M, 296 .size = SZ_2M, 321 .size = SZ_2M, 334 .size = SZ_2M, 361 .size = SZ_2M, 428 .size = SZ_2M,
|
D | sst.c | 114 .size = SZ_2M, 148 .size = SZ_2M, 165 .size = SZ_2M,
|
D | macronix.c | 58 .size = SZ_2M, 168 .size = SZ_2M,
|
D | intel.c | 15 .size = SZ_2M,
|
/linux-6.12.1/fs/btrfs/tests/ |
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-6.12.1/arch/arm/mach-omap2/ |
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-6.12.1/drivers/firmware/efi/libstub/ |
D | efi-stub.c | 269 if (IS_ALIGNED(in->phys_addr, SZ_2M) && size >= SZ_2M) in efi_get_virtmap() 270 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap()
|
/linux-6.12.1/tools/testing/memblock/tests/ |
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-6.12.1/arch/powerpc/platforms/83xx/ |
D | misc.c | 127 int immrsize = IS_ALIGNED(immrbase, SZ_2M) ? SZ_2M : SZ_1M; in mpc83xx_setup_arch()
|
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/ |
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-6.12.1/arch/loongarch/include/asm/ |
D | crash_reserve.h | 5 #define CRASH_ALIGN SZ_2M
|
D | efi.h | 30 return SZ_2M; in efi_get_kimg_min_align()
|
/linux-6.12.1/drivers/gpu/drm/imagination/ |
D | pvr_rogue_heap_config.h | 103 #define ROGUE_VISTEST_HEAP_SIZE SZ_2M
|
/linux-6.12.1/drivers/mtd/nand/raw/ |
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-6.12.1/arch/riscv/include/asm/ |
D | efi.h | 38 return IS_ENABLED(CONFIG_64BIT) ? SZ_2M : SZ_4M; in efi_get_kimg_min_align()
|
/linux-6.12.1/tools/include/linux/ |
D | sizes.h | 33 #define SZ_2M 0x00200000 macro
|