/linux-6.12.1/drivers/gpu/drm/ttm/ |
D | ttm_tt.c | 68 uint32_t page_flags = 0; in ttm_tt_create() local 78 page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in ttm_tt_create() 83 page_flags |= TTM_TT_FLAG_EXTERNAL; in ttm_tt_create() 95 page_flags |= TTM_TT_FLAG_DECRYPTED; in ttm_tt_create() 99 bo->ttm = bdev->funcs->ttm_tt_create(bo, page_flags); in ttm_tt_create() 103 WARN_ON(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL_MAPPABLE && in ttm_tt_create() 104 !(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL)); in ttm_tt_create() 151 uint32_t page_flags, in ttm_tt_init_fields() argument 156 ttm->page_flags = page_flags; in ttm_tt_init_fields() 164 uint32_t page_flags, enum ttm_caching caching, in ttm_tt_init() argument [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_util.c | 164 if (ttm && ((ttm->page_flags & TTM_TT_FLAG_SWAPPED) || in ttm_bo_move_memcpy() 186 if (!(clear && ttm && !(ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC))) in ttm_bo_move_memcpy() 299 if (bo->ttm->page_flags & TTM_TT_FLAG_DECRYPTED) in ttm_io_prot() 358 !(man->use_tt && (ttm->page_flags & TTM_TT_FLAG_DECRYPTED))) { in ttm_bo_kmap_ttm()
|
D | ttm_bo_vm.c | 152 if (bo->ttm && (bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL)) { in ttm_bo_vm_reserve() 153 if (!(bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL_MAPPABLE)) { in ttm_bo_vm_reserve()
|
/linux-6.12.1/include/drm/ttm/ |
D | ttm_tt.h | 99 uint32_t page_flags; member 129 return tt->page_flags & TTM_TT_FLAG_PRIV_POPULATED; in ttm_tt_is_populated() 158 uint32_t page_flags, enum ttm_caching caching, 161 uint32_t page_flags, enum ttm_caching caching); 225 ttm->page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in ttm_tt_mark_for_clear() 250 uint32_t page_flags);
|
D | ttm_device.h | 74 uint32_t page_flags);
|
/linux-6.12.1/drivers/gpu/drm/ttm/tests/ |
D | ttm_tt_test.c | 44 u32 page_flags = TTM_TT_FLAG_ZERO_ALLOC; in ttm_tt_init_basic() local 55 err = ttm_tt_init(tt, bo, page_flags, caching, extra_pages); in ttm_tt_init_basic() 60 KUNIT_ASSERT_EQ(test, tt->page_flags, page_flags); in ttm_tt_init_basic() 214 u32 page_flags) in ttm_tt_null_create() argument 361 KUNIT_ASSERT_TRUE(test, tt->page_flags & TTM_TT_FLAG_SWAPPED); in ttm_tt_swapin_basic() 370 KUNIT_ASSERT_FALSE(test, tt->page_flags & TTM_TT_FLAG_SWAPPED); in ttm_tt_swapin_basic()
|
D | ttm_kunit_helpers.c | 45 static struct ttm_tt *ttm_tt_simple_create(struct ttm_buffer_object *bo, u32 page_flags) in ttm_tt_simple_create() argument 50 ttm_tt_init(tt, bo, page_flags, ttm_cached, 0); in ttm_tt_simple_create()
|
D | ttm_pool_test.c | 51 u32 page_flags, in ttm_tt_kunit_init() argument 67 err = ttm_tt_init(tt, priv->mock_bo, page_flags, caching, 0); in ttm_tt_kunit_init()
|
/linux-6.12.1/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ttm_buffer.c | 191 if (vmw_tt->dma_ttm.page_flags & TTM_TT_FLAG_EXTERNAL) { in vmw_ttm_map_dma() 365 bool external = (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_ttm_populate() 383 bool external = (ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_ttm_unpopulate() 401 uint32_t page_flags) in vmw_ttm_tt_create() argument 415 page_flags |= TTM_TT_FLAG_EXTERNAL | TTM_TT_FLAG_EXTERNAL_MAPPABLE; in vmw_ttm_tt_create() 418 ret = ttm_sg_tt_init(&vmw_be->dma_ttm, bo, page_flags, in vmw_ttm_tt_create() 421 ret = ttm_tt_init(&vmw_be->dma_ttm, bo, page_flags, in vmw_ttm_tt_create()
|
D | vmwgfx_blit.c | 559 bool src_external = (src->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_bo_cpu_blit() 560 bool dst_external = (dst->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) != 0; in vmw_bo_cpu_blit()
|
/linux-6.12.1/tools/testing/selftests/mm/ |
D | split_huge_page_test.c | 40 uint64_t page_flags; in is_backed_by_thp() local 47 pread(kpageflags_file, &page_flags, sizeof(page_flags), in is_backed_by_thp() 48 (paddr & PFN_MASK) * sizeof(page_flags)); in is_backed_by_thp() 50 return !!(page_flags & KPF_THP); in is_backed_by_thp()
|
/linux-6.12.1/drivers/gpu/drm/nouveau/ |
D | nouveau_sgdma.c | 68 nouveau_sgdma_create_ttm(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_sgdma_create_ttm() argument 86 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 | 762 nouveau_ttm_tt_create(struct ttm_buffer_object *bo, uint32_t page_flags) in nouveau_ttm_tt_create() argument 768 return ttm_agp_tt_create(bo, drm->agp.bridge, page_flags); in nouveau_ttm_tt_create() 772 return nouveau_sgdma_create_ttm(bo, page_flags); in nouveau_ttm_tt_create() 1341 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_populate() 1362 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in nouveau_ttm_tt_unpopulate()
|
/linux-6.12.1/drivers/gpu/drm/i915/gem/ |
D | i915_gem_ttm.c | 229 if (ttm->page_flags & TTM_TT_FLAG_SWAPPED) in i915_ttm_tt_shmem_populate() 230 ttm->page_flags &= ~TTM_TT_FLAG_SWAPPED; in i915_ttm_tt_shmem_populate() 243 bool backup = ttm->page_flags & TTM_TT_FLAG_SWAPPED; in i915_ttm_tt_shmem_unpopulate() 266 uint32_t page_flags) in i915_ttm_tt_create() argument 285 page_flags |= TTM_TT_FLAG_ZERO_ALLOC; in i915_ttm_tt_create() 289 page_flags |= TTM_TT_FLAG_EXTERNAL | in i915_ttm_tt_create() 299 ret = ttm_tt_init(&i915_tt->ttm, bo, page_flags, caching, ccs_pages); in i915_ttm_tt_create() 367 if (bo->ttm && bo->ttm->page_flags & TTM_TT_FLAG_EXTERNAL) in i915_ttm_eviction_valuable() 487 if (bo->ttm->page_flags & TTM_TT_FLAG_SWAPPED) in i915_ttm_shrink() 490 bo->ttm->page_flags |= TTM_TT_FLAG_SWAPPED; in i915_ttm_shrink() [all …]
|
/linux-6.12.1/tools/mm/ |
D | page-types.c | 204 static uint64_t page_flags[HASH_SIZE]; variable 440 (unsigned long long)page_flags[i], in show_summary() 443 page_flag_name(page_flags[i]), in show_summary() 444 page_flag_longname(page_flags[i])); in show_summary() 620 for (i = 1; i < ARRAY_SIZE(page_flags); i++, k++) { in hash_slot() 621 if (!k || k >= ARRAY_SIZE(page_flags)) in hash_slot() 623 if (page_flags[k] == 0) { in hash_slot() 624 page_flags[k] = flags; in hash_slot() 627 if (page_flags[k] == flags) in hash_slot()
|
/linux-6.12.1/arch/x86/boot/compressed/ |
D | ident_map_64.c | 195 unsigned long page_flags; in split_large_pmd() local 207 page_flags = info->page_flag & ~_PAGE_PSE; in split_large_pmd() 211 set_pte(&pte[i], __pte(address | page_flags)); in split_large_pmd()
|
/linux-6.12.1/Documentation/translations/zh_CN/mm/ |
D | hwpoison.rst | 136 当指定时,只有在((page_flags & mask) == value)的情况下才会poison页面。 137 这允许对许多种类的页面进行压力测试。page_flags与/proc/kpageflags中的相
|
/linux-6.12.1/drivers/gpu/drm/radeon/ |
D | radeon_ttm.c | 482 uint32_t page_flags) in radeon_ttm_tt_create() argument 491 return ttm_agp_tt_create(bo, rdev->agp->bridge, page_flags); in radeon_ttm_tt_create() 508 if (ttm_sg_tt_init(>t->ttm, bo, page_flags, caching)) { in radeon_ttm_tt_create() 534 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_populate() 541 ttm->page_flags |= TTM_TT_FLAG_EXTERNAL; in radeon_ttm_tt_populate() 558 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in radeon_ttm_tt_unpopulate() 564 ttm->page_flags &= ~TTM_TT_FLAG_EXTERNAL; in radeon_ttm_tt_unpopulate()
|
/linux-6.12.1/drivers/gpu/drm/qxl/ |
D | qxl_ttm.c | 107 uint32_t page_flags) in qxl_ttm_tt_create() argument 114 if (ttm_tt_init(ttm, bo, page_flags, ttm_cached, 0)) { in qxl_ttm_tt_create()
|
/linux-6.12.1/drivers/gpu/drm/loongson/ |
D | lsdc_ttm.c | 93 lsdc_ttm_tt_create(struct ttm_buffer_object *tbo, uint32_t page_flags) in lsdc_ttm_tt_create() argument 102 ret = ttm_sg_tt_init(tt, tbo, page_flags, ttm_cached); in lsdc_ttm_tt_create() 115 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in lsdc_ttm_tt_populate() 131 bool slave = !!(ttm->page_flags & TTM_TT_FLAG_EXTERNAL); in lsdc_ttm_tt_unpopulate()
|
/linux-6.12.1/mm/ |
D | memory-failure.c | 1676 unsigned long page_flags) in identify_page_state() argument 1689 page_flags |= (p->flags & (1UL << PG_dirty)); in identify_page_state() 1693 if ((page_flags & ps->mask) == ps->res) in identify_page_state() 2063 unsigned long page_flags; in try_memory_failure_hugetlb() local 2116 page_flags = folio->flags; in try_memory_failure_hugetlb() 2123 return identify_page_state(pfn, p, page_flags); in try_memory_failure_hugetlb() 2222 unsigned long page_flags; in memory_failure() local 2373 page_flags = folio->flags; in memory_failure() 2408 res = identify_page_state(pfn, p, page_flags); in memory_failure()
|
/linux-6.12.1/drivers/gpu/drm/xe/ |
D | xe_bo.c | 294 XE_WARN_ON(tt->page_flags & TTM_TT_FLAG_EXTERNAL); in xe_tt_map_sg() 340 u32 page_flags) in xe_ttm_tt_create() argument 399 err = ttm_tt_init(&tt->ttm, &bo->ttm, page_flags, caching, extra_pages); in xe_ttm_tt_create() 417 if (tt->page_flags & TTM_TT_FLAG_EXTERNAL) in xe_ttm_tt_populate() 429 if (tt->page_flags & TTM_TT_FLAG_EXTERNAL) in xe_ttm_tt_unpopulate() 681 (ttm->page_flags & TTM_TT_FLAG_SWAPPED)); in xe_bo_move() 686 needs_clear = (ttm && ttm->page_flags & TTM_TT_FLAG_ZERO_ALLOC) || in xe_bo_move()
|
/linux-6.12.1/Documentation/mm/ |
D | hwpoison.rst | 151 When specified, only poison pages if ((page_flags & mask) == 153 pages. The page_flags are the same as in /proc/kpageflags. The
|