Home
last modified time | relevance | path

Searched refs:page_flags (Results 1 – 25 of 27) sorted by relevance

12

/linux-5.19.10/drivers/gpu/drm/ttm/
Dttm_tt.c62 uint32_t page_flags = 0; in ttm_tt_create() local
72 page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in ttm_tt_create()
77 page_flags |= TTM_TT_FLAG_EXTERNAL; in ttm_tt_create()
84 bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags); in ttm_tt_create()
88 WARN_ON(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL_MAPPABLE && in ttm_tt_create()
89 !(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL)); in ttm_tt_create()
134 uint32_t page_flags, in ttm_tt_init_fields() argument
140 ttm->page_flags = page_flags; in ttm_tt_init_fields()
148 uint32_t page_flags, enum ttm_caching caching, in ttm_tt_init() argument
151 ttm_tt_init_fields(ttm, bo, page_flags, caching, extra_pages); in ttm_tt_init()
[all …]
Dttm_agp_backend.c126 uint32_t page_flags) in ttm_agp_tt_create() argument
137 if (ttm_tt_init(&agp_be->ttm, bo, page_flags, ttm_write_combined, 0)) { in ttm_agp_tt_create()
Dttm_bo_vm.c157 if (bo->ttm && (bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL)) { in ttm_bo_vm_reserve()
158 if (!(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL_MAPPABLE)) { in ttm_bo_vm_reserve()
Dttm_bo_util.c150 if (ttm && ((ttm->page_flags & TTM_TT_FLAG_SWAPPED) || in ttm_bo_move_memcpy()
172 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) in ttm_bo_move_memcpy()
Dttm_bo.c1083 bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL || in ttm_bo_swapout()
1084 bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED || in ttm_bo_swapout()
/linux-5.19.10/include/drm/ttm/
Dttm_tt.h92 uint32_t page_flags; member
122 return tt->page_flags & TTM_TT_FLAG_PRIV_POPULATED; in ttm_tt_is_populated()
151 uint32_t page_flags, enum ttm_caching caching,
154 uint32_t page_flags, enum ttm_caching caching);
218 ttm->page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in ttm_tt_mark_for_clear()
243 uint32_t page_flags);
Dttm_device.h74 uint32_t page_flags);
/linux-5.19.10/tools/testing/selftests/vm/
Dsplit_huge_page_test.c37 uint64_t page_flags; in is_backed_by_thp() local
44 pread(kpageflags_file, &page_flags, sizeof(page_flags), in is_backed_by_thp()
45 (paddr & PFN_MASK) * sizeof(page_flags)); in is_backed_by_thp()
47 return !!(page_flags & KPF_THP); in is_backed_by_thp()
/linux-5.19.10/drivers/gpu/drm/i915/gem/
Di915_gem_ttm.c233 if (ttm->page_flags & TTM_TT_FLAG_SWAPPED) in i915_ttm_tt_shmem_populate()
234 ttm->page_flags &= ~TTM_TT_FLAG_SWAPPED; in i915_ttm_tt_shmem_populate()
247 bool backup = ttm->page_flags & TTM_TT_FLAG_SWAPPED; in i915_ttm_tt_shmem_unpopulate()
288 uint32_t page_flags) in i915_ttm_tt_create() argument
309 page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in i915_ttm_tt_create()
313 page_flags |= TTM_TT_FLAG_EXTERNAL | in i915_ttm_tt_create()
323 ret = ttm_tt_init(&i915_tt->ttm, bo, page_flags, caching, ccs_pages); in i915_ttm_tt_create()
392 if (bo->ttm && bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in i915_ttm_eviction_valuable()
550 if (bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED) in i915_ttm_shrink()
553 bo->ttm->page_flags |= TTM_TT_FLAG_SWAPPED; in i915_ttm_shrink()
[all …]
Di915_gem_ttm_move.c509 if (ttm && (dst_man->use_tt || (ttm->page_flags & TTM_TT_FLAG_SWAPPED))) { in i915_ttm_move()
520 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) { in i915_ttm_move()
/linux-5.19.10/drivers/gpu/drm/nouveau/
Dnouveau_sgdma.c67 nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_sgdma_create_ttm() argument
85 if (ttm_sg_tt_init(&nvbe->ttm, bo, page_flags, caching)) { in nouveau_sgdma_create_ttm()
Dnouveau_ttm.h16 u32 page_flags);
Dnouveau_bo.c699 nouveau_ttm_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_ttm_tt_create() argument
705 return ttm_agp_tt_create(bo, drm->agp.bridge, page_flags); in nouveau_ttm_tt_create()
709 return nouveau_sgdma_create_ttm(bo, page_flags); in nouveau_ttm_tt_create()
1268 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_populate()
1289 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_unpopulate()
/linux-5.19.10/arch/x86/boot/compressed/
Dident_map_64.c188 unsigned long page_flags; in split_large_pmd() local
200 page_flags = info->page_flag & ~_PAGE_PSE; in split_large_pmd()
204 set_pte(&pte[i], __pte(address | page_flags)); in split_large_pmd()
/linux-5.19.10/tools/vm/
Dpage-types.c206 static uint64_t page_flags[HASH_SIZE]; variable
442 (unsigned long long)page_flags[i], in show_summary()
445 page_flag_name(page_flags[i]), in show_summary()
446 page_flag_longname(page_flags[i])); in show_summary()
624 for (i = 1; i < ARRAY_SIZE(page_flags); i++, k++) { in hash_slot()
625 if (!k || k >= ARRAY_SIZE(page_flags)) in hash_slot()
627 if (page_flags[k] == 0) { in hash_slot()
628 page_flags[k] = flags; in hash_slot()
631 if (page_flags[k] == flags) in hash_slot()
/linux-5.19.10/Documentation/translations/zh_CN/vm/
Dhwpoison.rst136 当指定时,只有在((page_flags & mask) == value)的情况下才会poison页面。
137 这允许对许多种类的页面进行压力测试。page_flags与/proc/kpageflags中的相
/linux-5.19.10/drivers/gpu/drm/radeon/
Dradeon_ttm.c493 uint32_t page_flags) in radeon_ttm_tt_create() argument
502 return ttm_agp_tt_create(bo, rdev->agp->bridge, page_flags); in radeon_ttm_tt_create()
519 if (ttm_sg_tt_init(&gtt->ttm, bo, page_flags, caching)) { in radeon_ttm_tt_create()
545 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_populate()
552 ttm->page_flags |= TTM_TT_FLAG_EXTERNAL; in radeon_ttm_tt_populate()
569 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_unpopulate()
575 ttm->page_flags &= ~TTM_TT_FLAG_EXTERNAL; in radeon_ttm_tt_unpopulate()
/linux-5.19.10/drivers/gpu/drm/qxl/
Dqxl_ttm.c109 uint32_t page_flags) in qxl_ttm_tt_create() argument
116 if (ttm_tt_init(ttm, bo, page_flags, ttm_cached, 0)) { in qxl_ttm_tt_create()
/linux-5.19.10/mm/
Dmemory-failure.c1463 unsigned long page_flags) in identify_page_state() argument
1476 page_flags |= (p->flags & (1UL << PG_dirty)); in identify_page_state()
1480 if ((page_flags & ps->mask) == ps->res) in identify_page_state()
1559 unsigned long page_flags; in try_memory_failure_hugetlb() local
1608 page_flags = head->flags; in try_memory_failure_hugetlb()
1631 return identify_page_state(pfn, p, page_flags); in try_memory_failure_hugetlb()
1764 unsigned long page_flags; in memory_failure() local
1917 page_flags = p->flags; in memory_failure()
1961 res = identify_page_state(pfn, p, page_flags); in memory_failure()
/linux-5.19.10/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ttm_buffer.c503 uint32_t page_flags) in vmw_ttm_tt_create() argument
516 ret = ttm_sg_tt_init(&vmw_be->dma_ttm, bo, page_flags, in vmw_ttm_tt_create()
519 ret = ttm_tt_init(&vmw_be->dma_ttm, bo, page_flags, in vmw_ttm_tt_create()
/linux-5.19.10/Documentation/vm/
Dhwpoison.rst153 When specified, only poison pages if ((page_flags & mask) ==
155 pages. The page_flags are the same as in /proc/kpageflags. The
/linux-5.19.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c879 } else if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) { in amdgpu_ttm_backend_bind()
1046 uint32_t page_flags) in amdgpu_ttm_tt_create() argument
1064 if (ttm_sg_tt_init(&gtt->ttm, bo, page_flags, caching)) { in amdgpu_ttm_tt_create()
1094 if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in amdgpu_ttm_tt_populate()
1129 if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in amdgpu_ttm_tt_unpopulate()
1183 bo->ttm->page_flags |= TTM_TT_FLAG_EXTERNAL; in amdgpu_ttm_tt_set_userptr()
/linux-5.19.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c861 uint32_t page_flags) in bo_driver_ttm_tt_create() argument
870 ret = ttm_tt_init(tt, bo, page_flags, ttm_cached, 0); in bo_driver_ttm_tt_create()
/linux-5.19.10/drivers/iommu/
Drockchip-iommu.c574 u32 page_flags = 0; in log_iova() local
598 page_flags = pte & RK_PTE_PAGE_FLAGS_MASK; in log_iova()
606 rk_pte_is_page_valid(pte), &page_addr_phys, page_flags); in log_iova()
/linux-5.19.10/arch/x86/mm/pat/
Dset_memory.c2303 unsigned numpages, unsigned long page_flags) in kernel_map_pages_in_pgd() argument
2313 .mask_clr = __pgprot(~page_flags & (_PAGE_NX|_PAGE_RW)), in kernel_map_pages_in_pgd()
2322 if (!(page_flags & _PAGE_ENC)) in kernel_map_pages_in_pgd()
2325 cpa.mask_set = __pgprot(_PAGE_PRESENT | page_flags); in kernel_map_pages_in_pgd()

12