Home
last modified time | relevance | path

Searched refs:SZ_2M (Results 1 – 25 of 117) sorted by relevance

12345

/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_lmtt_2l.c67 #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()
Dxe_lmtt_ml.c67 #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/
Dpre_fault_memory_test.c15 #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/
Dboot.h13 #define MAX_FDT_SIZE SZ_2M
18 #define MIN_KIMG_ALIGN SZ_2M
Dcrash_reserve.h6 #define CRASH_ALIGN SZ_2M
/linux-6.12.1/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c411 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/
Dpanfrost_mmu.c263 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 …]
Dpanfrost_gem.c40 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/
Dwinbond.c32 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,
Dmicron-st.c260 .size = SZ_2M,
296 .size = SZ_2M,
321 .size = SZ_2M,
334 .size = SZ_2M,
361 .size = SZ_2M,
428 .size = SZ_2M,
Dsst.c114 .size = SZ_2M,
148 .size = SZ_2M,
165 .size = SZ_2M,
Dmacronix.c58 .size = SZ_2M,
168 .size = SZ_2M,
Dintel.c15 .size = SZ_2M,
/linux-6.12.1/fs/btrfs/tests/
Dfree-space-tests.c63 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/
Diomap.h192 #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/
Defi-stub.c269 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/
Dbasic_api.c312 .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/
Dmisc.c127 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/
Dprivate_mem_conversions_test.c27 #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/
Dcrash_reserve.h5 #define CRASH_ALIGN SZ_2M
Defi.h30 return SZ_2M; in efi_get_kimg_min_align()
/linux-6.12.1/drivers/gpu/drm/imagination/
Dpvr_rogue_heap_config.h103 #define ROGUE_VISTEST_HEAP_SIZE SZ_2M
/linux-6.12.1/drivers/mtd/nand/raw/
Dnand_ids.c46 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/
Defi.h38 return IS_ENABLED(CONFIG_64BIT) ? SZ_2M : SZ_4M; in efi_get_kimg_min_align()
/linux-6.12.1/tools/include/linux/
Dsizes.h33 #define SZ_2M 0x00200000 macro

12345