Home
last modified time | relevance | path

Searched refs:sa_bo (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sa.c47 static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo);
80 struct amdgpu_sa_bo *sa_bo, *tmp; in amdgpu_sa_bo_manager_fini() local
94 list_for_each_entry_safe(sa_bo, tmp, &sa_manager->olist, olist) { in amdgpu_sa_bo_manager_fini()
95 amdgpu_sa_bo_remove_locked(sa_bo); in amdgpu_sa_bo_manager_fini()
102 static void amdgpu_sa_bo_remove_locked(struct amdgpu_sa_bo *sa_bo) in amdgpu_sa_bo_remove_locked() argument
104 struct amdgpu_sa_manager *sa_manager = sa_bo->manager; in amdgpu_sa_bo_remove_locked()
105 if (sa_manager->hole == &sa_bo->olist) { in amdgpu_sa_bo_remove_locked()
106 sa_manager->hole = sa_bo->olist.prev; in amdgpu_sa_bo_remove_locked()
108 list_del_init(&sa_bo->olist); in amdgpu_sa_bo_remove_locked()
109 list_del_init(&sa_bo->flist); in amdgpu_sa_bo_remove_locked()
[all …]
Damdgpu_object.h307 static inline uint64_t amdgpu_sa_bo_gpu_addr(struct amdgpu_sa_bo *sa_bo) in amdgpu_sa_bo_gpu_addr() argument
309 return sa_bo->manager->gpu_addr + sa_bo->soffset; in amdgpu_sa_bo_gpu_addr()
312 static inline void * amdgpu_sa_bo_cpu_addr(struct amdgpu_sa_bo *sa_bo) in amdgpu_sa_bo_cpu_addr() argument
314 return sa_bo->manager->cpu_ptr + sa_bo->soffset; in amdgpu_sa_bo_cpu_addr()
325 struct amdgpu_sa_bo **sa_bo,
328 struct amdgpu_sa_bo **sa_bo,
Damdgpu_ib.c71 &ib->sa_bo, size, 256); in amdgpu_ib_get()
77 ib->ptr = amdgpu_sa_bo_cpu_addr(ib->sa_bo); in amdgpu_ib_get()
82 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_ib_get()
100 amdgpu_sa_bo_free(adev, &ib->sa_bo, f); in amdgpu_ib_free()
Damdgpu_vce.c733 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_vce_ring_parse_cs()
Damdgpu_uvd.c1025 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_uvd_ring_parse_cs()
Damdgpu.h444 struct amdgpu_sa_bo *sa_bo; member
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_sa.c47 static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo);
80 struct radeon_sa_bo *sa_bo, *tmp; in radeon_sa_bo_manager_fini() local
89 list_for_each_entry_safe(sa_bo, tmp, &sa_manager->olist, olist) { in radeon_sa_bo_manager_fini()
90 radeon_sa_bo_remove_locked(sa_bo); in radeon_sa_bo_manager_fini()
142 static void radeon_sa_bo_remove_locked(struct radeon_sa_bo *sa_bo) in radeon_sa_bo_remove_locked() argument
144 struct radeon_sa_manager *sa_manager = sa_bo->manager; in radeon_sa_bo_remove_locked()
145 if (sa_manager->hole == &sa_bo->olist) { in radeon_sa_bo_remove_locked()
146 sa_manager->hole = sa_bo->olist.prev; in radeon_sa_bo_remove_locked()
148 list_del_init(&sa_bo->olist); in radeon_sa_bo_remove_locked()
149 list_del_init(&sa_bo->flist); in radeon_sa_bo_remove_locked()
[all …]
Dradeon_object.h178 static inline uint64_t radeon_sa_bo_gpu_addr(struct radeon_sa_bo *sa_bo) in radeon_sa_bo_gpu_addr() argument
180 return sa_bo->manager->gpu_addr + sa_bo->soffset; in radeon_sa_bo_gpu_addr()
183 static inline void * radeon_sa_bo_cpu_addr(struct radeon_sa_bo *sa_bo) in radeon_sa_bo_cpu_addr() argument
185 return sa_bo->manager->cpu_ptr + sa_bo->soffset; in radeon_sa_bo_cpu_addr()
200 struct radeon_sa_bo **sa_bo,
203 struct radeon_sa_bo **sa_bo,
Dradeon_semaphore.c44 &(*semaphore)->sa_bo, 8, 8); in radeon_semaphore_create()
51 (*semaphore)->gpu_addr = radeon_sa_bo_gpu_addr((*semaphore)->sa_bo); in radeon_semaphore_create()
53 *((uint64_t *)radeon_sa_bo_cpu_addr((*semaphore)->sa_bo)) = 0; in radeon_semaphore_create()
103 radeon_sa_bo_free(rdev, &(*semaphore)->sa_bo, fence); in radeon_semaphore_free()
Dradeon_ib.c64 r = radeon_sa_bo_new(rdev, &rdev->ring_tmp_bo, &ib->sa_bo, size, 256); in radeon_ib_get()
74 ib->ptr = radeon_sa_bo_cpu_addr(ib->sa_bo); in radeon_ib_get()
80 ib->gpu_addr = ib->sa_bo->soffset + RADEON_VA_IB_OFFSET; in radeon_ib_get()
82 ib->gpu_addr = radeon_sa_bo_gpu_addr(ib->sa_bo); in radeon_ib_get()
100 radeon_sa_bo_free(rdev, &ib->sa_bo, ib->fence); in radeon_ib_free()
Dradeon_cs.c286 p->ib.sa_bo = NULL; in radeon_cs_parser_init()
287 p->const_ib.sa_bo = NULL; in radeon_cs_parser_init()
Dradeon.h598 struct radeon_sa_bo *sa_bo; member
827 struct radeon_sa_bo *sa_bo; member