Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/i915/gem/
A Di915_gem_create.c22 struct intel_memory_region *mr = placements[i]; in object_max_page_size()
33 struct intel_memory_region **placements, in object_set_placements() argument
59 arr[i] = placements[i]; in object_set_placements()
61 obj->mm.placements = arr; in object_set_placements()
137 kfree(obj->mm.placements); in __i915_gem_object_create_user_ext()
287 BUILD_BUG_ON(ARRAY_SIZE(ext_data->placements) != ARRAY_SIZE(placements)); in set_placements()
322 placements[i] = mr; in set_placements()
335 ext_data->placements[i] = placements[i]; in set_placements()
346 ext_data->placements, in set_placements()
422 ext_data.placements[0] = in i915_gem_create_ext_ioctl()
[all …]
A Di915_gem_object.c307 kfree(obj->mm.placements); in __i915_gem_free_object()
618 if (mr == obj->mm.placements[i]) in i915_gem_object_can_migrate()
703 if (obj->mm.placements[i]->type == type) in i915_gem_object_placement_possible()
A Di915_gem_object_types.h494 struct intel_memory_region **placements; member
A Di915_gem_ttm.c165 i915_ttm_place_from_region(num_allowed ? obj->mm.placements[0] : in i915_ttm_placement_from_obj()
171 i915_ttm_place_from_region(obj->mm.placements[i], busy + i, flags); in i915_ttm_placement_from_obj()
310 struct intel_memory_region *mr = obj->mm.placements[i]; in i915_ttm_adjust_gem_after_move()
A Di915_gem_object.h72 struct intel_memory_region **placements,
/linux/drivers/gpu/drm/radeon/
A Dradeon_object.c109 rbo->placements[c].fpfn = in radeon_ttm_placement_from_domain()
115 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
117 rbo->placements[c++].flags = 0; in radeon_ttm_placement_from_domain()
121 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
127 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
132 rbo->placements[c].fpfn = 0; in radeon_ttm_placement_from_domain()
143 !rbo->placements[i].fpfn) in radeon_ttm_placement_from_domain()
144 rbo->placements[i].lpfn = in radeon_ttm_placement_from_domain()
147 rbo->placements[i].lpfn = 0; in radeon_ttm_placement_from_domain()
330 bo->placements[i].lpfn = in radeon_bo_pin_restricted()
[all …]
A Dradeon_ttm.c85 static const struct ttm_place placements = { in radeon_evict_flags() local
95 placement->placement = &placements; in radeon_evict_flags()
96 placement->busy_placement = &placements; in radeon_evict_flags()
120 if (rbo->placements[i].mem_type == TTM_PL_VRAM) { in radeon_evict_flags()
121 if (rbo->placements[i].fpfn < fpfn) in radeon_evict_flags()
122 rbo->placements[i].fpfn = fpfn; in radeon_evict_flags()
125 &rbo->placements[i]; in radeon_evict_flags()
A Dradeon_uvd.c310 rbo->placements[i].fpfn = 0 >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
311 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
323 rbo->placements[1] = rbo->placements[0]; in radeon_uvd_force_into_uvd_segment()
324 rbo->placements[1].fpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
325 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
A Dradeon.h490 struct ttm_place placements[4]; member
/linux/drivers/gpu/drm/qxl/
A Dqxl_object.c68 qbo->placement.placement = qbo->placements; in qxl_ttm_placement_from_domain()
71 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
72 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain()
75 qbo->placements[c].mem_type = TTM_PL_PRIV; in qxl_ttm_placement_from_domain()
76 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain()
77 qbo->placements[c].mem_type = TTM_PL_VRAM; in qxl_ttm_placement_from_domain()
78 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain()
82 qbo->placements[c++].flags = pflag; in qxl_ttm_placement_from_domain()
86 qbo->placements[c++].flags = 0; in qxl_ttm_placement_from_domain()
91 qbo->placements[i].fpfn = 0; in qxl_ttm_placement_from_domain()
[all …]
A Dqxl_ttm.c54 static const struct ttm_place placements = { in qxl_evict_flags() local
62 placement->placement = &placements; in qxl_evict_flags()
63 placement->busy_placement = &placements; in qxl_evict_flags()
A Dqxl_drv.h82 struct ttm_place placements[3]; member
/linux/drivers/gpu/drm/
A Ddrm_gem_vram_helper.c147 gbo->placement.placement = gbo->placements; in drm_gem_vram_placement()
148 gbo->placement.busy_placement = gbo->placements; in drm_gem_vram_placement()
151 gbo->placements[c].mem_type = TTM_PL_VRAM; in drm_gem_vram_placement()
152 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement()
156 gbo->placements[c].mem_type = TTM_PL_SYSTEM; in drm_gem_vram_placement()
157 gbo->placements[c++].flags = invariant_flags; in drm_gem_vram_placement()
164 gbo->placements[i].fpfn = 0; in drm_gem_vram_placement()
165 gbo->placements[i].lpfn = 0; in drm_gem_vram_placement()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_object.c127 struct ttm_place *places = abo->placements; in amdgpu_bo_placement_from_domain()
386 (*bo_ptr)->placements[i].fpfn = offset >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
387 (*bo_ptr)->placements[i].lpfn = (offset + size) >> PAGE_SHIFT; in amdgpu_bo_create_kernel_at()
931 if (fpfn > bo->placements[i].fpfn) in amdgpu_bo_pin_restricted()
932 bo->placements[i].fpfn = fpfn; in amdgpu_bo_pin_restricted()
933 if (!bo->placements[i].lpfn || in amdgpu_bo_pin_restricted()
934 (lpfn && lpfn < bo->placements[i].lpfn)) in amdgpu_bo_pin_restricted()
935 bo->placements[i].lpfn = lpfn; in amdgpu_bo_pin_restricted()
1340 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_bo_fault_reserve_notify()
A Damdgpu_ttm.c94 static const struct ttm_place placements = { in amdgpu_evict_flags() local
110 placement->placement = &placements; in amdgpu_evict_flags()
111 placement->busy_placement = &placements; in amdgpu_evict_flags()
158 abo->placements[0].lpfn = 0; in amdgpu_evict_flags()
159 abo->placement.busy_placement = &abo->placements[1]; in amdgpu_evict_flags()
965 struct ttm_place placements; in amdgpu_ttm_alloc_gart() local
981 placement.placement = &placements; in amdgpu_ttm_alloc_gart()
983 placement.busy_placement = &placements; in amdgpu_ttm_alloc_gart()
984 placements.fpfn = 0; in amdgpu_ttm_alloc_gart()
986 placements.mem_type = TTM_PL_TT; in amdgpu_ttm_alloc_gart()
[all …]
A Damdgpu_vce.c630 bo->placements[i].fpfn = max(bo->placements[i].fpfn, fpfn); in amdgpu_vce_validate_bo()
631 bo->placements[i].lpfn = bo->placements[i].lpfn ? in amdgpu_vce_validate_bo()
632 min(bo->placements[i].lpfn, lpfn) : lpfn; in amdgpu_vce_validate_bo()
A Damdgpu_object.h98 struct ttm_place placements[AMDGPU_BO_MAX_PLACEMENTS]; member
A Damdgpu_uvd.c550 abo->placements[i].fpfn = 0 >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
551 abo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in amdgpu_uvd_force_into_uvd_segment()
/linux/include/drm/
A Ddrm_gem_vram_helper.h66 struct ttm_place placements[2]; member
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_bo.c392 nvbo->placements[i].fpfn = fpfn; in set_placement_range()
393 nvbo->placements[i].lpfn = lpfn; in set_placement_range()
408 pl->placement = nvbo->placements; in nouveau_bo_placement_set()
409 set_placement_list(nvbo->placements, &pl->num_placement, domain); in nouveau_bo_placement_set()
1224 nvbo->placements[i].fpfn = 0; in nouveau_ttm_fault_reserve_notify()
1225 nvbo->placements[i].lpfn = mappable; in nouveau_ttm_fault_reserve_notify()
A Dnouveau_bo.h16 struct ttm_place placements[3]; member

Completed in 77 milliseconds