Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_sa.c80 struct drm_suballoc **sa_bo, in amdgpu_sa_bo_new() argument
87 *sa_bo = NULL; in amdgpu_sa_bo_new()
92 *sa_bo = sa; in amdgpu_sa_bo_new()
96 void amdgpu_sa_bo_free(struct amdgpu_device *adev, struct drm_suballoc **sa_bo, in amdgpu_sa_bo_free() argument
99 if (sa_bo == NULL || *sa_bo == NULL) { in amdgpu_sa_bo_free()
103 drm_suballoc_free(*sa_bo, fence); in amdgpu_sa_bo_free()
104 *sa_bo = NULL; in amdgpu_sa_bo_free()
Damdgpu_object.h375 static inline uint64_t amdgpu_sa_bo_gpu_addr(struct drm_suballoc *sa_bo) in amdgpu_sa_bo_gpu_addr() argument
377 return to_amdgpu_sa_manager(sa_bo->manager)->gpu_addr + in amdgpu_sa_bo_gpu_addr()
378 drm_suballoc_soffset(sa_bo); in amdgpu_sa_bo_gpu_addr()
381 static inline void *amdgpu_sa_bo_cpu_addr(struct drm_suballoc *sa_bo) in amdgpu_sa_bo_cpu_addr() argument
383 return to_amdgpu_sa_manager(sa_bo->manager)->cpu_ptr + in amdgpu_sa_bo_cpu_addr()
384 drm_suballoc_soffset(sa_bo); in amdgpu_sa_bo_cpu_addr()
395 struct drm_suballoc **sa_bo,
398 struct drm_suballoc **sa_bo,
Damdgpu_ib.c72 &ib->sa_bo, size); in amdgpu_ib_get()
78 ib->ptr = amdgpu_sa_bo_cpu_addr(ib->sa_bo); in amdgpu_ib_get()
83 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_ib_get()
101 amdgpu_sa_bo_free(adev, &ib->sa_bo, f); in amdgpu_ib_free()
Damdgpu_ring.h96 struct drm_suballoc *sa_bo; member
Damdgpu_vce.c750 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_vce_ring_parse_cs()
Damdgpu_uvd.c1086 ib->gpu_addr = amdgpu_sa_bo_gpu_addr(ib->sa_bo); in amdgpu_uvd_ring_parse_cs()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_sa.c122 struct drm_suballoc **sa_bo, in radeon_sa_bo_new() argument
129 *sa_bo = NULL; in radeon_sa_bo_new()
133 *sa_bo = sa; in radeon_sa_bo_new()
137 void radeon_sa_bo_free(struct drm_suballoc **sa_bo, in radeon_sa_bo_free() argument
140 if (sa_bo == NULL || *sa_bo == NULL) { in radeon_sa_bo_free()
145 drm_suballoc_free(*sa_bo, &fence->base); in radeon_sa_bo_free()
147 drm_suballoc_free(*sa_bo, NULL); in radeon_sa_bo_free()
149 *sa_bo = NULL; in radeon_sa_bo_free()
Dradeon_object.h178 static inline uint64_t radeon_sa_bo_gpu_addr(struct drm_suballoc *sa_bo) in radeon_sa_bo_gpu_addr() argument
180 return to_radeon_sa_manager(sa_bo->manager)->gpu_addr + in radeon_sa_bo_gpu_addr()
181 drm_suballoc_soffset(sa_bo); in radeon_sa_bo_gpu_addr()
184 static inline void *radeon_sa_bo_cpu_addr(struct drm_suballoc *sa_bo) in radeon_sa_bo_cpu_addr() argument
186 return to_radeon_sa_manager(sa_bo->manager)->cpu_ptr + in radeon_sa_bo_cpu_addr()
187 drm_suballoc_soffset(sa_bo); in radeon_sa_bo_cpu_addr()
201 struct drm_suballoc **sa_bo,
203 extern void radeon_sa_bo_free(struct drm_suballoc **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(&(*semaphore)->sa_bo, fence); in radeon_semaphore_free()
Dradeon_ib.c64 r = radeon_sa_bo_new(&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 = drm_suballoc_soffset(ib->sa_bo) + 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(&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.h553 struct drm_suballoc *sa_bo; member
782 struct drm_suballoc *sa_bo; member