Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.c153 if (ttm && ((ttm->page_flags & TTM_TT_FLAG_SWAPPED) || in ttm_bo_move_memcpy()
175 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) in ttm_bo_move_memcpy()
Dttm_bo.c1134 bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL || in ttm_bo_swapout()
1135 bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED || in ttm_bo_swapout()
/linux-6.1.9/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-6.1.9/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-6.1.9/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.c701 nouveau_ttm_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_ttm_tt_create() argument
707 return ttm_agp_tt_create(bo, drm->agp.bridge, page_flags); in nouveau_ttm_tt_create()
711 return nouveau_sgdma_create_ttm(bo, page_flags); in nouveau_ttm_tt_create()
1271 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_populate()
1292 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_unpopulate()
/linux-6.1.9/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()
270 uint32_t page_flags) in i915_ttm_tt_create() argument
291 page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in i915_ttm_tt_create()
295 page_flags |= TTM_TT_FLAG_EXTERNAL | in i915_ttm_tt_create()
305 ret = ttm_tt_init(&i915_tt->ttm, bo, page_flags, caching, ccs_pages); in i915_ttm_tt_create()
373 if (bo->ttm && bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in i915_ttm_eviction_valuable()
493 if (bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED) in i915_ttm_shrink()
496 bo->ttm->page_flags |= TTM_TT_FLAG_SWAPPED; in i915_ttm_shrink()
[all …]
Di915_gem_ttm_move.c579 if (ttm && (dst_man->use_tt || (ttm->page_flags & TTM_TT_FLAG_SWAPPED))) { in i915_ttm_move()
590 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) { in i915_ttm_move()
/linux-6.1.9/arch/x86/boot/compressed/
Dident_map_64.c194 unsigned long page_flags; in split_large_pmd() local
206 page_flags = info->page_flag & ~_PAGE_PSE; in split_large_pmd()
210 set_pte(&pte[i], __pte(address | page_flags)); in split_large_pmd()
/linux-6.1.9/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-6.1.9/Documentation/translations/zh_CN/mm/
Dhwpoison.rst136 当指定时,只有在((page_flags & mask) == value)的情况下才会poison页面。
137 这允许对许多种类的页面进行压力测试。page_flags与/proc/kpageflags中的相
/linux-6.1.9/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-6.1.9/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-6.1.9/mm/
Dmemory-failure.c1510 unsigned long page_flags) in identify_page_state() argument
1523 page_flags |= (p->flags & (1UL << PG_dirty)); in identify_page_state()
1527 if ((page_flags & ps->mask) == ps->res) in identify_page_state()
1839 unsigned long page_flags; in try_memory_failure_hugetlb() local
1890 page_flags = head->flags; in try_memory_failure_hugetlb()
1898 return identify_page_state(pfn, p, page_flags); in try_memory_failure_hugetlb()
1983 unsigned long page_flags; in memory_failure() local
2134 page_flags = p->flags; in memory_failure()
2178 res = identify_page_state(pfn, p, page_flags); in memory_failure()
/linux-6.1.9/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-6.1.9/Documentation/mm/
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-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c869 } else if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) { in amdgpu_ttm_backend_bind()
1036 uint32_t page_flags) in amdgpu_ttm_tt_create() argument
1054 if (ttm_sg_tt_init(&gtt->ttm, bo, page_flags, caching)) { in amdgpu_ttm_tt_create()
1084 if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in amdgpu_ttm_tt_populate()
1119 if (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in amdgpu_ttm_tt_unpopulate()
1173 bo->ttm->page_flags |= TTM_TT_FLAG_EXTERNAL; in amdgpu_ttm_tt_set_userptr()
/linux-6.1.9/drivers/gpu/drm/
Ddrm_gem_vram_helper.c875 uint32_t page_flags) in bo_driver_ttm_tt_create() argument
884 ret = ttm_tt_init(tt, bo, page_flags, ttm_cached, 0); in bo_driver_ttm_tt_create()
/linux-6.1.9/drivers/iommu/
Drockchip-iommu.c572 u32 page_flags = 0; in log_iova() local
596 page_flags = pte & RK_PTE_PAGE_FLAGS_MASK; in log_iova()
604 rk_pte_is_page_valid(pte), &page_addr_phys, page_flags); in log_iova()
/linux-6.1.9/arch/x86/mm/pat/
Dset_memory.c2352 unsigned numpages, unsigned long page_flags) in kernel_map_pages_in_pgd() argument
2362 .mask_clr = __pgprot(~page_flags & (_PAGE_NX|_PAGE_RW)), in kernel_map_pages_in_pgd()
2371 if (!(page_flags & _PAGE_ENC)) in kernel_map_pages_in_pgd()
2374 cpa.mask_set = __pgprot(_PAGE_PRESENT | page_flags); in kernel_map_pages_in_pgd()

12