/linux-5.19.10/drivers/gpu/drm/ttm/ |
D | ttm_tt.c | 62 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 …]
|
D | ttm_agp_backend.c | 126 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()
|
D | ttm_bo_vm.c | 157 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()
|
D | ttm_bo_util.c | 150 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()
|
D | ttm_bo.c | 1083 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/ |
D | ttm_tt.h | 92 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);
|
D | ttm_device.h | 74 uint32_t page_flags);
|
/linux-5.19.10/tools/testing/selftests/vm/ |
D | split_huge_page_test.c | 37 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/ |
D | i915_gem_ttm.c | 233 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 …]
|
D | i915_gem_ttm_move.c | 509 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/ |
D | nouveau_sgdma.c | 67 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()
|
D | nouveau_ttm.h | 16 u32 page_flags);
|
D | nouveau_bo.c | 699 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/ |
D | ident_map_64.c | 188 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/ |
D | page-types.c | 206 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/ |
D | hwpoison.rst | 136 当指定时,只有在((page_flags & mask) == value)的情况下才会poison页面。 137 这允许对许多种类的页面进行压力测试。page_flags与/proc/kpageflags中的相
|
/linux-5.19.10/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 493 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(>t->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/ |
D | qxl_ttm.c | 109 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/ |
D | memory-failure.c | 1463 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/ |
D | vmwgfx_ttm_buffer.c | 503 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/ |
D | hwpoison.rst | 153 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/ |
D | amdgpu_ttm.c | 879 } 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(>t->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/ |
D | drm_gem_vram_helper.c | 861 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/ |
D | rockchip-iommu.c | 574 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/ |
D | set_memory.c | 2303 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()
|