Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/
Dhuge_pages.c22 static const unsigned int page_sizes[] = { variable
33 for (i = 0; i < ARRAY_SIZE(page_sizes); ++i) { in get_largest_page_size()
34 unsigned int page_size = page_sizes[i]; in get_largest_page_size()
334 unsigned int supported = INTEL_INFO(i915)->page_sizes; in igt_check_page_sizes()
338 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.sg)) { in igt_check_page_sizes()
340 vma->page_sizes.sg & ~supported, supported); in igt_check_page_sizes()
344 if (!HAS_PAGE_SIZES(i915, vma->page_sizes.gtt)) { in igt_check_page_sizes()
346 vma->page_sizes.gtt & ~supported, supported); in igt_check_page_sizes()
350 if (vma->page_sizes.phys != obj->mm.page_sizes.phys) { in igt_check_page_sizes()
352 vma->page_sizes.phys, obj->mm.page_sizes.phys); in igt_check_page_sizes()
[all …]
Di915_gem_client_blt.c69 &obj->mm.page_sizes, in igt_client_fill()
/Linux-v5.4/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()
/Linux-v5.4/drivers/gpu/drm/i915/gem/
Di915_gem_client_blt.c17 struct i915_page_sizes page_sizes; member
25 vma->page_sizes = sleeve->page_sizes; in vma_set_pages()
58 struct i915_page_sizes *page_sizes) in create_sleeve() argument
79 sleeve->page_sizes = *page_sizes; in create_sleeve()
267 struct i915_page_sizes *page_sizes, in i915_gem_schedule_fill_pages_blt() argument
274 sleeve = create_sleeve(ce->vm, obj, pages, page_sizes); in i915_gem_schedule_fill_pages_blt()
Di915_gem_pages.c16 unsigned long supported = INTEL_INFO(i915)->page_sizes; in __i915_gem_object_set_pages()
42 obj->mm.page_sizes.phys = sg_page_sizes; in __i915_gem_object_set_pages()
52 obj->mm.page_sizes.sg = 0; in __i915_gem_object_set_pages()
54 if (obj->mm.page_sizes.phys & ~0u << i) in __i915_gem_object_set_pages()
55 obj->mm.page_sizes.sg |= BIT(i); in __i915_gem_object_set_pages()
57 GEM_BUG_ON(!HAS_PAGE_SIZES(i915, obj->mm.page_sizes.sg)); in __i915_gem_object_set_pages()
177 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.h191 } page_sizes; member
/Linux-v5.4/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()
Dintel_device_info.h160 unsigned int page_sizes; /* page sizes supported by the HW */ member
Di915_pci.c145 .page_sizes = I915_GTT_PAGE_SIZE_4K
586 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
728 .page_sizes = I915_GTT_PAGE_SIZE_4K | \
Di915_gem_gtt.c180 vma->page_sizes = vma->obj->mm.page_sizes; in ppgtt_set_pages()
195 memset(&vma->page_sizes, 0, sizeof(vma->page_sizes)); in clear_pages()
1235 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_2M && in gen8_ppgtt_insert_huge()
1252 vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K && in gen8_ppgtt_insert_huge()
1329 vma->page_sizes.gtt |= page_size; in gen8_ppgtt_insert_huge()
1341 if (vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in gen8_ppgtt_insert()
1354 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen8_ppgtt_insert()
1680 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in gen6_ppgtt_insert_entries()
2444 vma->page_sizes.gtt = I915_GTT_PAGE_SIZE; in ggtt_bind_vma()
2553 vma->page_sizes = vma->obj->mm.page_sizes; in ggtt_set_pages()
Di915_vma.c625 vma->page_sizes.sg > I915_GTT_PAGE_SIZE) { in i915_vma_insert()
633 rounddown_pow_of_two(vma->page_sizes.sg | in i915_vma_insert()
645 if (vma->page_sizes.sg & I915_GTT_PAGE_SIZE_64K) in i915_vma_insert()
Di915_vma.h64 struct i915_page_sizes page_sizes; member
Di915_debugfs.c106 stringify_page_sizes(unsigned int page_sizes, char *buf, size_t len) in stringify_page_sizes() argument
110 switch (page_sizes) { in stringify_page_sizes()
123 if (page_sizes & I915_GTT_PAGE_SIZE_2M) in stringify_page_sizes()
125 if (page_sizes & I915_GTT_PAGE_SIZE_64K) in stringify_page_sizes()
127 if (page_sizes & I915_GTT_PAGE_SIZE_4K) in stringify_page_sizes()
171 stringify_page_sizes(vma->page_sizes.gtt, NULL, 0)); in describe_obj()
Di915_gem.c1429 mkwrite_device_info(dev_priv)->page_sizes = in i915_gem_init()
Di915_drv.h2112 ((sizes) & ~INTEL_INFO(dev_priv)->page_sizes) == 0; \
/Linux-v5.4/drivers/iommu/
Dio-pgtable-arm.c702 unsigned long granule, page_sizes; in arm_lpae_restrict_pgsizes() local
723 page_sizes = (SZ_4K | SZ_2M | SZ_1G); in arm_lpae_restrict_pgsizes()
726 page_sizes = (SZ_16K | SZ_32M); in arm_lpae_restrict_pgsizes()
730 page_sizes = (SZ_64K | SZ_512M); in arm_lpae_restrict_pgsizes()
732 page_sizes |= 1ULL << 42; /* 4TB */ in arm_lpae_restrict_pgsizes()
735 page_sizes = 0; in arm_lpae_restrict_pgsizes()
738 cfg->pgsize_bitmap &= page_sizes; in arm_lpae_restrict_pgsizes()
/Linux-v5.4/drivers/gpu/drm/i915/selftests/
Dmock_gem_device.c176 mkwrite_device_info(i915)->page_sizes = in mock_gem_device()
/Linux-v5.4/drivers/mtd/nand/raw/brcmnand/
Dbrcmnand.c198 const unsigned int *page_sizes; member
505 static const unsigned int page_sizes[] = { 512, 2048, 4096, 8192, 0 }; in brcmnand_revision_init() local
551 ctrl->page_sizes = page_sizes; in brcmnand_revision_init()
2109 if (ctrl->page_sizes) { in brcmnand_set_cfg()
2112 for (i = 0, found = 0; ctrl->page_sizes[i]; i++) in brcmnand_set_cfg()
2113 if (ctrl->page_sizes[i] == cfg->page_size) { in brcmnand_set_cfg()