Home
last modified time | relevance | path

Searched refs:page_sizes (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c25 static const unsigned int page_sizes[] = { variable
36 for (i = 0; i < ARRAY_SIZE(page_sizes); ++i) { in get_largest_page_size()
37 unsigned int page_size = page_sizes[i]; in get_largest_page_size()
338 unsigned int supported = INTEL_INFO(i915)->page_sizes; in igt_check_page_sizes()
347 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.sg)) { in igt_check_page_sizes()
349 vma->page_sizes.sg & ~supported, supported); in igt_check_page_sizes()
353 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.gtt)) { in igt_check_page_sizes()
355 vma->page_sizes.gtt & ~supported, supported); in igt_check_page_sizes()
359 if (vma->page_sizes.phys != obj->mm.page_sizes.phys) { in igt_check_page_sizes()
361 vma->page_sizes.phys, obj->mm.page_sizes.phys); in igt_check_page_sizes()
[all …]
Di915_gem_client_blt.c73 &obj->mm.page_sizes, in __igt_client_fill()
/kernel/linux/linux-5.10/tools/testing/selftests/vm/
Dthuge-gen.c50 unsigned long page_sizes[NUM_PAGESIZES]; variable
69 &page_sizes[i]); in find_pagesizes()
70 page_sizes[i] <<= 10; in find_pagesizes()
71 printf("Found %luMB\n", page_sizes[i] >> 20); in find_pagesizes()
201 if (page_sizes[i] > largest) in sanity_checks()
202 largest = page_sizes[i]; in sanity_checks()
204 if (read_free(page_sizes[i]) < NUM_PAGES) { in sanity_checks()
206 page_sizes[i] >> 20, in sanity_checks()
236 unsigned long ps = page_sizes[i]; in main()
248 unsigned long ps = page_sizes[i]; in main()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_scatterlist.h97 unsigned int page_sizes; in i915_sg_page_sizes() local
99 page_sizes = 0; in i915_sg_page_sizes()
103 page_sizes |= sg->length; in i915_sg_page_sizes()
107 return page_sizes; in i915_sg_page_sizes()
Di915_vma_types.h186 struct i915_page_sizes page_sizes; member
Dintel_device_info.h172 unsigned int page_sizes; /* page sizes supported by the HW */ member
Di915_debugfs.c97 stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len) in stringify_page_sizes() argument
101 switch (page_sizes) { in stringify_page_sizes()
114 if (page_sizes & I915_GTT_PAGE_SIZE_2M) in stringify_page_sizes()
116 if (page_sizes & I915_GTT_PAGE_SIZE_64K) in stringify_page_sizes()
118 if (page_sizes & I915_GTT_PAGE_SIZE_4K) in stringify_page_sizes()
161 stringify_page_sizes(vma->page_sizes.gtt, NULL, 0)); in i915_debugfs_describe_obj()
Di915_pci.c154 .page_sizes = I915_GTT_PAGE_SIZE_4K
635 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
802 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
Di915_vma.c693 vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in i915_vma_insert()
701 rounddown_pow_of_two(vma->page_sizes.sg | in i915_vma_insert()
713 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) in i915_vma_insert()
Dintel_device_info.c100 drm_printf(p, "page-sizes: %x\n", info->page_sizes); in intel_device_info_print_static()
Di915_gem.c1113 mkwrite_device_info(dev_priv)->page_sizes = in i915_gem_init()
Di915_drv.h1664 ((sizes) & ~INTEL_INFO(dev_priv)->page_sizes) == 0; \
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_client_blt.c16 struct i915_page_sizes page_sizes; member
24 vma->page_sizes = sleeve->page_sizes; in vma_set_pages()
59 struct i915_page_sizes *page_sizes) in create_sleeve() argument
80 sleeve->page_sizes = *page_sizes; in create_sleeve()
315 struct i915_page_sizes *page_sizes, in i915_gem_schedule_fill_pages_blt() argument
322 sleeve = create_sleeve(ce->vm, obj, pages, page_sizes); in i915_gem_schedule_fill_pages_blt()
Di915_gem_pages.c20 unsigned long supported = INTEL_INFO(i915)->page_sizes; in __i915_gem_object_set_pages()
49 obj->mm.page_sizes.phys = sg_page_sizes; 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()
189 obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0; in __i915_gem_object_unset_pages()
Di915_gem_client_blt.h18 struct i915_page_sizes *page_sizes,
Di915_gem_object_types.h248 } page_sizes; member
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dplpar_wrappers.h355 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument
362 page_sizes, start, end); in pseries_rpt_invalidate()
376 all, page_sizes, 0, -1UL); in pseries_rpt_invalidate()
401 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dintel_gtt.c119 memset(&vma->page_sizes, 0, sizeof(vma->page_sizes)); in clear_pages()
196 if (obj->mm.page_sizes.sg < size) in setup_scratch_page()
Dgen8_ppgtt.c429 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
446 vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
524 vma->page_sizes.gtt |= page_size; in gen8_ppgtt_insert_huge()
536 if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
549 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()
Dintel_ppgtt.c293 vma->page_sizes = vma->obj->mm.page_sizes; in ppgtt_set_pages()
Dintel_ggtt.c455 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in ggtt_bind_vma()
834 vma->page_sizes = vma->obj->mm.page_sizes; in ggtt_set_pages()
Dgen6_ppgtt.c155 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
/kernel/linux/linux-5.10/drivers/iommu/
Dio-pgtable-arm.c680 unsigned long granule, page_sizes; in arm_lpae_restrict_pgsizes() local
701 page_sizes = (SZ_4K | SZ_2M | SZ_1G); in arm_lpae_restrict_pgsizes()
704 page_sizes = (SZ_16K | SZ_32M); in arm_lpae_restrict_pgsizes()
708 page_sizes = (SZ_64K | SZ_512M); in arm_lpae_restrict_pgsizes()
710 page_sizes |= 1ULL << 42; /* 4TB */ in arm_lpae_restrict_pgsizes()
713 page_sizes = 0; in arm_lpae_restrict_pgsizes()
716 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/
Dmock_gem_device.c172 mkwrite_device_info(i915)->page_sizes = in mock_gem_device()
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c265 const unsigned int *page_sizes; member
661 ctrl->page_sizes = page_sizes_v3_4; in brcmnand_revision_init()
663 ctrl->page_sizes = page_sizes_v2_2; in brcmnand_revision_init()
665 ctrl->page_sizes = page_sizes_v2_1; in brcmnand_revision_init()
2436 if (ctrl->page_sizes) { in brcmnand_set_cfg()
2439 for (i = 0, found = 0; ctrl->page_sizes[i]; i++) in brcmnand_set_cfg()
2440 if (ctrl->page_sizes[i] == cfg->page_size) { in brcmnand_set_cfg()

12