/linux-6.12.1/tools/testing/selftests/mm/ |
D | thuge-gen.c | 53 unsigned long page_sizes[NUM_PAGESIZES]; variable 183 &page_sizes[num_page_sizes]); in find_pagesizes() 184 page_sizes[num_page_sizes] <<= 10; in find_pagesizes() 185 ksft_print_msg("Found %luMB\n", page_sizes[i] >> 20); in find_pagesizes() 187 if (page_sizes[num_page_sizes] > largest) in find_pagesizes() 188 largest = page_sizes[i]; in find_pagesizes() 190 if (read_free(page_sizes[num_page_sizes]) >= NUM_PAGES) in find_pagesizes() 194 page_sizes[num_page_sizes] >> 20, NUM_PAGES); in find_pagesizes() 225 unsigned long ps = page_sizes[i]; in main() 239 unsigned long ps = page_sizes[i]; in main()
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/selftests/ |
D | huge_pages.c | 44 static const unsigned int page_sizes[] = { variable 55 for (i = 0; i < ARRAY_SIZE(page_sizes); ++i) { in get_largest_page_size() 56 unsigned int page_size = page_sizes[i]; in get_largest_page_size() 365 unsigned int supported = RUNTIME_INFO(i915)->page_sizes; in igt_check_page_sizes() 374 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.sg)) { in igt_check_page_sizes() 376 vma->page_sizes.sg & ~supported, supported); in igt_check_page_sizes() 386 if (vma->page_sizes.phys != obj->mm.page_sizes.phys) { in igt_check_page_sizes() 388 vma->page_sizes.phys, obj->mm.page_sizes.phys); in igt_check_page_sizes() 392 if (vma->page_sizes.sg != obj->mm.page_sizes.sg) { in igt_check_page_sizes() 394 vma->page_sizes.sg, obj->mm.page_sizes.sg); in igt_check_page_sizes() [all …]
|
/linux-6.12.1/drivers/gpu/drm/i915/gt/ |
D | selftest_tlb.c | 97 va->page_sizes.phys, va->page_sizes.sg, in pte_tlbinv() 153 va->page_sizes.phys, va->page_sizes.sg); in pte_tlbinv() 159 .bi.page_sizes = vb->obj->mm.page_sizes, in pte_tlbinv() 273 if ((A->mm.page_sizes.phys | B->mm.page_sizes.phys) & (A->base.size - 1)) in mem_tlbinv() 316 (unsigned long *)&RUNTIME_INFO(gt->i915)->page_sizes, in mem_tlbinv() 317 BITS_PER_TYPE(RUNTIME_INFO(gt->i915)->page_sizes)) { in mem_tlbinv()
|
D | gen8_ppgtt.c | 531 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in xehp_ppgtt_insert_huge() 544 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K) { in xehp_ppgtt_insert_huge() 634 if (vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge() 651 vma_res->bi.page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge() 743 if (vma_res->bi.page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
|
D | intel_gtt.c | 392 if (obj->mm.page_sizes.sg < size) in setup_scratch_page()
|
/linux-6.12.1/drivers/gpu/drm/i915/ |
D | i915_vma_resource.h | 51 struct i915_page_sizes page_sizes; member 204 const struct i915_page_sizes *page_sizes, in i915_vma_resource_init() argument 219 vma_res->bi.page_sizes = *page_sizes; in i915_vma_resource_init()
|
D | i915_scatterlist.h | 128 unsigned int page_sizes; in i915_sg_dma_sizes() local 130 page_sizes = 0; in i915_sg_dma_sizes() 134 page_sizes |= sg_dma_len(sg); in i915_sg_dma_sizes() 138 return page_sizes; in i915_sg_dma_sizes()
|
D | i915_debugfs.c | 108 stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len) in stringify_page_sizes() argument 112 switch (page_sizes) { in stringify_page_sizes() 125 if (page_sizes & I915_GTT_PAGE_SIZE_2M) in stringify_page_sizes() 127 if (page_sizes & I915_GTT_PAGE_SIZE_64K) in stringify_page_sizes() 129 if (page_sizes & I915_GTT_PAGE_SIZE_4K) in stringify_page_sizes()
|
D | i915_pci.c | 75 .__runtime.page_sizes = I915_GTT_PAGE_SIZE_4K 474 .__runtime.page_sizes = I915_GTT_PAGE_SIZE_4K | \ 602 .__runtime.page_sizes = I915_GTT_PAGE_SIZE_4K | \ 697 .__runtime.page_sizes = I915_GTT_PAGE_SIZE_4K | \
|
D | i915_vma_types.h | 198 struct i915_page_sizes page_sizes; member
|
D | intel_device_info.h | 214 unsigned int page_sizes; /* page sizes supported by the HW */ member
|
D | i915_vma.c | 452 i915_vma_resource_init(vma_res, vma->vm, vma->pages, &vma->page_sizes, in i915_vma_resource_init_from_vma() 883 vma->page_sizes.sg > I915_GTT_PAGE_SIZE && in i915_vma_insert() 892 rounddown_pow_of_two(vma->page_sizes.sg | in i915_vma_insert() 904 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) in i915_vma_insert() 1362 vma->page_sizes = vma->obj->mm.page_sizes; in i915_vma_get_pages()
|
D | intel_device_info.c | 114 drm_printf(p, "page-sizes: 0x%x\n", runtime->page_sizes); in intel_device_info_print()
|
D | i915_drv.h | 678 ((sizes) & ~RUNTIME_INFO(i915)->page_sizes) == 0; \
|
D | i915_gem.c | 1163 RUNTIME_INFO(dev_priv)->page_sizes = I915_GTT_PAGE_SIZE_4K; in i915_gem_init()
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_pages.c | 23 unsigned long supported = RUNTIME_INFO(i915)->page_sizes; in __i915_gem_object_set_pages() 48 obj->mm.page_sizes.phys = i915_sg_dma_sizes(pages->sgl); in __i915_gem_object_set_pages() 49 GEM_BUG_ON(!obj->mm.page_sizes.phys); in __i915_gem_object_set_pages() 59 obj->mm.page_sizes.sg = 0; in __i915_gem_object_set_pages() 61 if (obj->mm.page_sizes.phys & ~0u << i) in __i915_gem_object_set_pages() 62 obj->mm.page_sizes.sg |= BIT(i); in __i915_gem_object_set_pages() 64 GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg)); in __i915_gem_object_set_pages() 232 obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0; in __i915_gem_object_unset_pages()
|
D | i915_gem_object_types.h | 668 struct i915_page_sizes page_sizes; member
|
/linux-6.12.1/arch/powerpc/include/asm/ |
D | plpar_wrappers.h | 538 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument 545 page_sizes, start, end); in pseries_rpt_invalidate() 559 all, page_sizes, 0, -1UL); in pseries_rpt_invalidate() 584 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument
|
/linux-6.12.1/drivers/iommu/ |
D | io-pgtable-arm.c | 844 unsigned long granule, page_sizes; in arm_lpae_restrict_pgsizes() local 865 page_sizes = (SZ_4K | SZ_2M | SZ_1G); in arm_lpae_restrict_pgsizes() 868 page_sizes = (SZ_16K | SZ_32M); in arm_lpae_restrict_pgsizes() 872 page_sizes = (SZ_64K | SZ_512M); in arm_lpae_restrict_pgsizes() 874 page_sizes |= 1ULL << 42; /* 4TB */ in arm_lpae_restrict_pgsizes() 877 page_sizes = 0; in arm_lpae_restrict_pgsizes() 880 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
|
/linux-6.12.1/drivers/gpu/drm/i915/selftests/ |
D | mock_gem_device.c | 122 .__runtime.page_sizes = (I915_GTT_PAGE_SIZE_4K |
|
/linux-6.12.1/drivers/mtd/nand/raw/brcmnand/ |
D | brcmnand.c | 272 const unsigned int *page_sizes; member 713 ctrl->page_sizes = page_sizes_v3_4; in brcmnand_revision_init() 715 ctrl->page_sizes = page_sizes_v2_2; in brcmnand_revision_init() 717 ctrl->page_sizes = page_sizes_v2_1; in brcmnand_revision_init() 2576 if (ctrl->page_sizes) { in brcmnand_set_cfg() 2579 for (i = 0, found = 0; ctrl->page_sizes[i]; i++) in brcmnand_set_cfg() 2580 if (ctrl->page_sizes[i] == cfg->page_size) { in brcmnand_set_cfg()
|