Home
last modified time | relevance | path

Searched refs:placements (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_object.c105 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain()
106 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain()
113 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain()
115 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
116 rbo->placements[c++].flags = TTM_PL_FLAG_WC | in radeon_ttm_placement_from_domain()
120 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
121 rbo->placements[c].mem_type = TTM_PL_VRAM; in radeon_ttm_placement_from_domain()
122 rbo->placements[c++].flags = TTM_PL_FLAG_WC | in radeon_ttm_placement_from_domain()
128 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
129 rbo->placements[c].mem_type = TTM_PL_TT; in radeon_ttm_placement_from_domain()
[all …]
Dradeon_ttm.c88 static const struct ttm_place placements = { in radeon_evict_flags() local
98 placement->placement = &placements; in radeon_evict_flags()
99 placement->busy_placement = &placements; in radeon_evict_flags()
123 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
124 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags()
125 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags()
128 &rbo->placements[i]; in radeon_evict_flags()
216 struct ttm_place placements; in radeon_move_vram_ram() local
223 placement.placement = &placements; in radeon_move_vram_ram()
225 placement.busy_placement = &placements; in radeon_move_vram_ram()
[all …]
Dradeon_uvd.c308 rbo->placements[i].fpfn = 0 >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
309 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
321 rbo->placements[1] = rbo->placements[0]; in radeon_uvd_force_into_uvd_segment()
322 rbo->placements[1].fpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
323 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
Dradeon.h495 struct ttm_place placements[4]; member
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_object.c65 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain()
66 qbo->placement.busy_placement = qbo->placements; in qxl_ttm_placement_from_domain()
68 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
69 qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | pflag; in qxl_ttm_placement_from_domain()
72 qbo->placements[c].mem_type = TTM_PL_PRIV; in qxl_ttm_placement_from_domain()
73 qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | pflag; in qxl_ttm_placement_from_domain()
74 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
75 qbo->placements[c++].flags = TTM_PL_FLAG_CACHED | pflag; in qxl_ttm_placement_from_domain()
78 qbo->placements[c].mem_type = TTM_PL_SYSTEM; in qxl_ttm_placement_from_domain()
79 qbo->placements[c++].flags = TTM_PL_MASK_CACHING | pflag; in qxl_ttm_placement_from_domain()
[all …]
Dqxl_ttm.c55 static const struct ttm_place placements = { in qxl_evict_flags() local
63 placement->placement = &placements; in qxl_evict_flags()
64 placement->busy_placement = &placements; in qxl_evict_flags()
Dqxl_drv.h80 struct ttm_place placements[3]; member
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_gem_vram_helper.c145 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement()
146 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement()
149 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement()
150 gbo->placements[c++].flags = TTM_PL_FLAG_WC | in drm_gem_vram_placement()
156 gbo->placements[c].mem_type = TTM_PL_SYSTEM; in drm_gem_vram_placement()
157 gbo->placements[c++].flags = TTM_PL_MASK_CACHING | in drm_gem_vram_placement()
165 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()
166 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()
323 gbo->placements[i].flags |= TTM_PL_FLAG_NO_EVICT; in drm_gem_vram_pin_locked()
385 gbo->placements[i].flags &= ~TTM_PL_FLAG_NO_EVICT; in drm_gem_vram_unpin_locked()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ttm.c91 static const struct ttm_place placements = { in amdgpu_evict_flags() local
107 placement->placement = &placements; in amdgpu_evict_flags()
108 placement->busy_placement = &placements; in amdgpu_evict_flags()
138 abo->placements[0].fpfn = adev->gmc.visible_vram_size >> PAGE_SHIFT; in amdgpu_evict_flags()
139 abo->placements[0].lpfn = 0; in amdgpu_evict_flags()
140 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags()
527 struct ttm_place placements; in amdgpu_move_vram_ram() local
535 placement.placement = &placements; in amdgpu_move_vram_ram()
537 placement.busy_placement = &placements; in amdgpu_move_vram_ram()
538 placements.fpfn = 0; in amdgpu_move_vram_ram()
[all …]
Damdgpu_object.c130 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain()
396 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
397 (*bo_ptr)->placements[i].lpfn = (offset + size) >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
957 if (fpfn > bo->placements[i].fpfn) in amdgpu_bo_pin_restricted()
958 bo->placements[i].fpfn = fpfn; in amdgpu_bo_pin_restricted()
959 if (!bo->placements[i].lpfn || in amdgpu_bo_pin_restricted()
960 (lpfn && lpfn < bo->placements[i].lpfn)) in amdgpu_bo_pin_restricted()
961 bo->placements[i].lpfn = lpfn; in amdgpu_bo_pin_restricted()
962 bo->placements[i].flags |= TTM_PL_FLAG_NO_EVICT; in amdgpu_bo_pin_restricted()
1033 bo->placements[i].lpfn = 0; in amdgpu_bo_unpin()
[all …]
Damdgpu_vce.c616 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo()
617 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo()
618 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
Damdgpu_object.h87 struct ttm_place placements[AMDGPU_BO_MAX_PLACEMENTS]; member
Damdgpu_uvd.c489 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
490 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
/kernel/linux/linux-5.10/include/drm/
Ddrm_gem_vram_helper.h66 struct ttm_place placements[2]; member
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/
Dnouveau_bo.c405 nvbo->placements[i].fpfn = fpfn; in set_placement_range()
406 nvbo->placements[i].lpfn = lpfn; in set_placement_range()
425 pl->placement = nvbo->placements; in nouveau_bo_placement_set()
426 set_placement_list(drm, nvbo->placements, &pl->num_placement, in nouveau_bo_placement_set()
1290 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
1291 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
Dnouveau_bo.h16 struct ttm_place placements[3]; member