Home
last modified time | relevance | path

Searched refs:rbo (Results 1 – 10 of 10) sorted by relevance

/drivers/gpu/drm/radeon/
Dradeon_object.c97 void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain) in radeon_ttm_placement_from_domain() argument
101 rbo->placement.placement = rbo->placements; in radeon_ttm_placement_from_domain()
102 rbo->placement.busy_placement = rbo->placements; in radeon_ttm_placement_from_domain()
104 rbo->placements[c++].flags = TTM_PL_FLAG_WC | in radeon_ttm_placement_from_domain()
109 if (rbo->flags & RADEON_GEM_GTT_UC) { in radeon_ttm_placement_from_domain()
110 rbo->placements[c++].flags = TTM_PL_FLAG_UNCACHED | in radeon_ttm_placement_from_domain()
113 } else if ((rbo->flags & RADEON_GEM_GTT_WC) || in radeon_ttm_placement_from_domain()
114 (rbo->rdev->flags & RADEON_IS_AGP)) { in radeon_ttm_placement_from_domain()
115 rbo->placements[c++].flags = TTM_PL_FLAG_WC | in radeon_ttm_placement_from_domain()
119 rbo->placements[c++].flags = TTM_PL_FLAG_CACHED | in radeon_ttm_placement_from_domain()
[all …]
Dradeon_fb.c92 struct radeon_bo *rbo = gem_to_radeon_bo(gobj); in radeonfb_destroy_pinned_object() local
95 ret = radeon_bo_reserve(rbo, false); in radeonfb_destroy_pinned_object()
97 radeon_bo_kunmap(rbo); in radeonfb_destroy_pinned_object()
98 radeon_bo_unpin(rbo); in radeonfb_destroy_pinned_object()
99 radeon_bo_unreserve(rbo); in radeonfb_destroy_pinned_object()
110 struct radeon_bo *rbo = NULL; in radeonfb_create_pinned_object() local
136 rbo = gem_to_radeon_bo(gobj); in radeonfb_create_pinned_object()
154 ret = radeon_bo_set_tiling_flags(rbo, in radeonfb_create_pinned_object()
162 ret = radeon_bo_reserve(rbo, false); in radeonfb_create_pinned_object()
166 ret = radeon_bo_pin_restricted(rbo, RADEON_GEM_DOMAIN_VRAM, in radeonfb_create_pinned_object()
[all …]
Dradeon_gem.c142 struct radeon_bo *rbo = gem_to_radeon_bo(obj); in radeon_gem_object_open() local
143 struct radeon_device *rdev = rbo->rdev; in radeon_gem_object_open()
154 r = radeon_bo_reserve(rbo, false); in radeon_gem_object_open()
159 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_open()
161 bo_va = radeon_vm_bo_add(rdev, vm, rbo); in radeon_gem_object_open()
165 radeon_bo_unreserve(rbo); in radeon_gem_object_open()
173 struct radeon_bo *rbo = gem_to_radeon_bo(obj); in radeon_gem_object_close() local
174 struct radeon_device *rdev = rbo->rdev; in radeon_gem_object_close()
185 r = radeon_bo_reserve(rbo, true); in radeon_gem_object_close()
191 bo_va = radeon_vm_bo_find(vm, rbo); in radeon_gem_object_close()
[all …]
Dradeon_legacy_crtc.c377 struct radeon_bo *rbo; in radeon_crtc_do_set_base() local
424 rbo = gem_to_radeon_bo(obj); in radeon_crtc_do_set_base()
426 r = radeon_bo_reserve(rbo, false); in radeon_crtc_do_set_base()
430 r = radeon_bo_pin_restricted(rbo, RADEON_GEM_DOMAIN_VRAM, 1 << 27, in radeon_crtc_do_set_base()
433 radeon_bo_unreserve(rbo); in radeon_crtc_do_set_base()
453 nsize = radeon_bo_size(rbo); in radeon_crtc_do_set_base()
463 radeon_bo_get_tiling_flags(rbo, &tiling_flags, NULL); in radeon_crtc_do_set_base()
464 radeon_bo_unreserve(rbo); in radeon_crtc_do_set_base()
560 rbo = gem_to_radeon_bo(radeon_fb->obj); in radeon_crtc_do_set_base()
561 r = radeon_bo_reserve(rbo, false); in radeon_crtc_do_set_base()
[all …]
Datombios_crtc.c1139 struct radeon_bo *rbo; in dce4_crtc_do_set_base() local
1167 rbo = gem_to_radeon_bo(obj); in dce4_crtc_do_set_base()
1168 r = radeon_bo_reserve(rbo, false); in dce4_crtc_do_set_base()
1173 fb_location = radeon_bo_gpu_offset(rbo); in dce4_crtc_do_set_base()
1175 r = radeon_bo_pin(rbo, RADEON_GEM_DOMAIN_VRAM, &fb_location); in dce4_crtc_do_set_base()
1177 radeon_bo_unreserve(rbo); in dce4_crtc_do_set_base()
1182 radeon_bo_get_tiling_flags(rbo, &tiling_flags, NULL); in dce4_crtc_do_set_base()
1183 radeon_bo_unreserve(rbo); in dce4_crtc_do_set_base()
1432 rbo = gem_to_radeon_bo(radeon_fb->obj); in dce4_crtc_do_set_base()
1433 r = radeon_bo_reserve(rbo, false); in dce4_crtc_do_set_base()
[all …]
Dradeon_uvd.c259 void radeon_uvd_force_into_uvd_segment(struct radeon_bo *rbo, in radeon_uvd_force_into_uvd_segment() argument
264 for (i = 0; i < rbo->placement.num_placement; ++i) { in radeon_uvd_force_into_uvd_segment()
265 rbo->placements[i].fpfn = 0 >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
266 rbo->placements[i].lpfn = (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
274 if (rbo->placement.num_placement > 1) in radeon_uvd_force_into_uvd_segment()
278 rbo->placements[1] = rbo->placements[0]; in radeon_uvd_force_into_uvd_segment()
279 rbo->placements[1].fpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
280 rbo->placements[1].lpfn += (256 * 1024 * 1024) >> PAGE_SHIFT; in radeon_uvd_force_into_uvd_segment()
281 rbo->placement.num_placement++; in radeon_uvd_force_into_uvd_segment()
282 rbo->placement.num_busy_placement++; in radeon_uvd_force_into_uvd_segment()
Dradeon_ttm.c187 struct radeon_bo *rbo; in radeon_evict_flags() local
196 rbo = container_of(bo, struct radeon_bo, tbo); in radeon_evict_flags()
199 if (rbo->rdev->ring[radeon_copy_ring_index(rbo->rdev)].ready == false) in radeon_evict_flags()
200 radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_CPU); in radeon_evict_flags()
202 radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_GTT); in radeon_evict_flags()
206 radeon_ttm_placement_from_domain(rbo, RADEON_GEM_DOMAIN_CPU); in radeon_evict_flags()
208 *placement = rbo->placement; in radeon_evict_flags()
213 struct radeon_bo *rbo = container_of(bo, struct radeon_bo, tbo); in radeon_verify_access() local
217 return drm_vma_node_verify_access(&rbo->gem_base.vma_node, filp); in radeon_verify_access()
Dradeon.h1664 void radeon_uvd_force_into_uvd_segment(struct radeon_bo *rbo,
2927 extern void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain);
/drivers/gpu/drm/qxl/
Dqxl_release.c329 struct qxl_bo **rbo) in qxl_alloc_release_reserved() argument
350 if (rbo) in qxl_alloc_release_reserved()
351 *rbo = NULL; in qxl_alloc_release_reserved()
374 if (rbo) in qxl_alloc_release_reserved()
375 *rbo = bo; in qxl_alloc_release_reserved()
Dqxl_drv.h493 struct qxl_bo **rbo);