Home
last modified time | relevance | path

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

12345

/linux/arch/x86/kernel/cpu/
H A Dcpuid_0x2_table.c32 CACHE_ENTRY(0x25, CACHE_L3, SZ_2M ), /* 8-way set assoc, sectored cache, 64 byte line size */
47 CACHE_ENTRY(0x45, CACHE_L2, SZ_2M ), /* 4-way set assoc, 32 byte line size */
66 CACHE_ENTRY(0x7d, CACHE_L2, SZ_2M ), /* 8-way set assoc, 64 byte line size */
72 CACHE_ENTRY(0x85, CACHE_L2, SZ_2M ), /* 8-way set assoc, 32 byte line size */
77 CACHE_ENTRY(0xd2, CACHE_L3, SZ_2M ), /* 4-way set assoc, 64 byte line size */
79 CACHE_ENTRY(0xd7, CACHE_L3, SZ_2M ), /* 8-way set assoc, 64 byte line size */
81 CACHE_ENTRY(0xdc, CACHE_L3, SZ_2M ), /* 12-way set assoc, 64 byte line size */
84 CACHE_ENTRY(0xe2, CACHE_L3, SZ_2M ), /* 16-way set assoc, 64 byte line size */
/linux/drivers/gpu/drm/xe/
H A 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()
118 /* SZ_2M increments */ in lmtt_2l_pte_index()
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 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()
128 /* SZ_2M increments */ in lmtt_ml_pte_index()
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/tools/testing/selftests/kvm/
H A 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/arch/arm64/include/asm/
H A Dboot.h13 #define MAX_FDT_SIZE SZ_2M
18 #define MIN_KIMG_ALIGN SZ_2M
H A Dcrash_reserve.h6 #define CRASH_ALIGN SZ_2M
/linux/drivers/gpu/drm/i915/gem/selftests/
H A 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 in igt_ppgtt_64K()
[all...]
/linux/fs/btrfs/tests/
H A 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/drivers/mtd/spi-nor/
H A Dwinbond.c39 nor->params->size == SZ_2M && in w25q128_post_bfpt_fixups()
40 nor->params->erase_map.regions[0].size == SZ_2M) { in w25q128_post_bfpt_fixups()
178 .size = SZ_2M,
251 .size = SZ_2M,
285 .size = SZ_2M,
H A 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,
H A Dsst.c114 .size = SZ_2M,
148 .size = SZ_2M,
165 .size = SZ_2M,
H A Dintel.c15 .size = SZ_2M,
/linux/arch/arm/mach-omap2/
H A 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/drivers/gpu/drm/panfrost/
H A Dpanfrost_mmu.c366 size_t blk_offset = -addr % SZ_2M; in get_pgsize()
368 if (blk_offset || size < SZ_2M) { in get_pgsize()
373 *count = min(blk_offset, size) / SZ_2M; in get_pgsize()
374 return SZ_2M; in get_pgsize()
542 #define NUM_FAULT_PAGES (SZ_2M / PAGE_SIZE)
570 addr &= ~((u64)SZ_2M - 1); in panfrost_mmu_map_fault_addr()
579 bo->sgts = kvmalloc_array(bo->base.base.size / SZ_2M, in panfrost_mmu_map_fault_addr()
623 sgt = &bo->sgts[page_offset / (SZ_2M / PAGE_SIZE)]; in panfrost_mmu_map_fault_addr()
625 NUM_FAULT_PAGES, 0, SZ_2M, GFP_KERNEL); in panfrost_mmu_map_fault_addr()
637 bo->heap_rss_size += SZ_2M; in panfrost_mmu_map_fault_addr()
[all...]
H A Dpanfrost_gem.c75 int n_sgt = bo->base.base.size / SZ_2M; in panfrost_gem_free_object()
177 align = size >= SZ_2M ? SZ_2M >> PAGE_SHIFT : 0; in panfrost_gem_open()
313 size = roundup(size, SZ_2M); in panfrost_gem_create()
/linux/drivers/firmware/efi/libstub/
H A Defi-stub.c256 if (IS_ALIGNED(in->phys_addr, SZ_2M) && size >= SZ_2M) in efi_get_virtmap()
257 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap()
/linux/rust/kernel/
H A Dsizes.rs30 pub const SZ_2M: usize = bindings::SZ_2M as usize; constant
/linux/arch/powerpc/platforms/83xx/
H A Dmisc.c127 int immrsize = IS_ALIGNED(immrbase, SZ_2M) ? SZ_2M : SZ_1M; in mpc83xx_setup_arch()
/linux/tools/testing/selftests/kvm/x86/
H A 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/tools/testing/memblock/tests/
H A 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/arch/loongarch/include/asm/
H A Dcrash_reserve.h5 #define CRASH_ALIGN SZ_2M
H A Defi.h30 return SZ_2M; in efi_get_kimg_min_align()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_rogue_heap_config.h103 #define ROGUE_VISTEST_HEAP_SIZE SZ_2M
/linux/drivers/mtd/nand/raw/
H A 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/tools/include/linux/
H A Dsizes.h33 #define SZ_2M 0x00200000 macro

12345