Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/gem/selftests/
A Dhuge_pages.c25 static const unsigned int page_sizes[] = { variable
363 if (vma->page_sizes.phys != obj->mm.page_sizes.phys) { in igt_check_page_sizes()
365 vma->page_sizes.phys, obj->mm.page_sizes.phys); in igt_check_page_sizes()
369 if (vma->page_sizes.sg != obj->mm.page_sizes.sg) { in igt_check_page_sizes()
371 vma->page_sizes.sg, obj->mm.page_sizes.sg); in igt_check_page_sizes()
389 vma->page_sizes.sg & SZ_2M && in igt_check_page_sizes()
392 vma->page_sizes.sg, vma->page_sizes.gtt); in igt_check_page_sizes()
396 if (obj->mm.page_sizes.gtt) { in igt_check_page_sizes()
398 obj->mm.page_sizes.gtt); in igt_check_page_sizes()
425 combination |= page_sizes[j]; in igt_mock_exhaust_device_supported_pages()
[all …]
/linux/tools/testing/selftests/vm/
A 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()
/linux/drivers/gpu/drm/i915/
A Di915_scatterlist.h117 unsigned int page_sizes; in i915_sg_dma_sizes() local
119 page_sizes = 0; in i915_sg_dma_sizes()
123 page_sizes |= sg_dma_len(sg); in i915_sg_dma_sizes()
127 return page_sizes; in i915_sg_dma_sizes()
A Di915_debugfs.c99 stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len) in stringify_page_sizes() argument
103 switch (page_sizes) { in stringify_page_sizes()
116 if (page_sizes & I915_GTT_PAGE_SIZE_2M) in stringify_page_sizes()
118 if (page_sizes & I915_GTT_PAGE_SIZE_64K) in stringify_page_sizes()
120 if (page_sizes & I915_GTT_PAGE_SIZE_4K) in stringify_page_sizes()
173 stringify_page_sizes(vma->page_sizes.gtt, NULL, 0)); in i915_debugfs_describe_obj()
A Di915_vma_types.h191 struct i915_page_sizes page_sizes; member
A Di915_pci.c152 .page_sizes = I915_GTT_PAGE_SIZE_4K
632 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
786 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
984 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
A Dintel_device_info.h184 unsigned int page_sizes; /* page sizes supported by the HW */ member
A Di915_vma.c694 vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in i915_vma_insert()
702 rounddown_pow_of_two(vma->page_sizes.sg | in i915_vma_insert()
714 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) in i915_vma_insert()
A Dintel_device_info.c114 drm_printf(p, "page-sizes: %x\n", info->page_sizes); in intel_device_info_print_static()
A Di915_gem.c1044 mkwrite_device_info(dev_priv)->page_sizes = in i915_gem_init()
A Di915_drv.h1653 ((sizes) & ~INTEL_INFO(dev_priv)->page_sizes) == 0; \
A Di915_gpu_error.c1044 dst->gtt_page_sizes = vma->page_sizes.gtt; in i915_vma_coredump_create()
/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_pages.c18 unsigned long supported = INTEL_INFO(i915)->page_sizes; in __i915_gem_object_set_pages()
43 obj->mm.page_sizes.phys = sg_page_sizes; in __i915_gem_object_set_pages()
53 obj->mm.page_sizes.sg = 0; in __i915_gem_object_set_pages()
55 if (obj->mm.page_sizes.phys & ~0u << i) in __i915_gem_object_set_pages()
56 obj->mm.page_sizes.sg |= BIT(i); in __i915_gem_object_set_pages()
58 GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg)); in __i915_gem_object_set_pages()
219 obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0; in __i915_gem_object_unset_pages()
A Di915_gem_object_types.h542 } page_sizes; member
/linux/arch/powerpc/include/asm/
A Dplpar_wrappers.h359 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument
366 page_sizes, start, end); in pseries_rpt_invalidate()
380 all, page_sizes, 0, -1UL); in pseries_rpt_invalidate()
405 u64 page_sizes, u64 start, u64 end) in pseries_rpt_invalidate() argument
/linux/drivers/iommu/
A Dio-pgtable-arm.c741 unsigned long granule, page_sizes; in arm_lpae_restrict_pgsizes() local
762 page_sizes = (SZ_4K | SZ_2M | SZ_1G); in arm_lpae_restrict_pgsizes()
765 page_sizes = (SZ_16K | SZ_32M); in arm_lpae_restrict_pgsizes()
769 page_sizes = (SZ_64K | SZ_512M); in arm_lpae_restrict_pgsizes()
771 page_sizes |= 1ULL << 42; /* 4TB */ in arm_lpae_restrict_pgsizes()
774 page_sizes = 0; in arm_lpae_restrict_pgsizes()
777 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
/linux/drivers/gpu/drm/i915/gt/
A Dintel_gtt.c235 memset(&vma->page_sizes, 0, sizeof(vma->page_sizes)); in clear_pages()
310 if (obj->mm.page_sizes.sg < size) in setup_scratch_page()
A Dgen8_ppgtt.c479 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
496 vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
576 vma->page_sizes.gtt |= page_size; in gen8_ppgtt_insert_huge()
588 if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
601 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()
A Dintel_ppgtt.c297 vma->page_sizes = vma->obj->mm.page_sizes; in ppgtt_set_pages()
A Dintel_ggtt.c474 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in ggtt_bind_vma()
888 vma->page_sizes = vma->obj->mm.page_sizes; in ggtt_set_pages()
A Dgen6_ppgtt.c143 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
/linux/drivers/gpu/drm/i915/selftests/
A Dmock_gem_device.c170 mkwrite_device_info(i915)->page_sizes = in mock_gem_device()
/linux/drivers/gpu/drm/i915/display/
A Dintel_dpt.c95 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in dpt_bind_vma()
/linux/drivers/mtd/nand/raw/brcmnand/
A Dbrcmnand.c268 const unsigned int *page_sizes; member
664 ctrl->page_sizes = page_sizes_v3_4; in brcmnand_revision_init()
666 ctrl->page_sizes = page_sizes_v2_2; in brcmnand_revision_init()
668 ctrl->page_sizes = page_sizes_v2_1; in brcmnand_revision_init()
2485 if (ctrl->page_sizes) { in brcmnand_set_cfg()
2488 for (i = 0, found = 0; ctrl->page_sizes[i]; i++) in brcmnand_set_cfg()
2489 if (ctrl->page_sizes[i] == cfg->page_size) { in brcmnand_set_cfg()

Completed in 68 milliseconds