Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
H A 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()
H A Damdgpu_object.h318 static inline uint64_t amdgpu_sa_bo_gpu_addr(struct drm_suballoc *sa_bo) in amdgpu_sa_bo_gpu_addr() argument
320 return to_amdgpu_sa_manager(sa_bo->manager)->gpu_addr + in amdgpu_sa_bo_gpu_addr()
321 drm_suballoc_soffset(sa_bo); in amdgpu_sa_bo_gpu_addr()
324 static inline void *amdgpu_sa_bo_cpu_addr(struct drm_suballoc *sa_bo) in amdgpu_sa_bo_cpu_addr() argument
326 return to_amdgpu_sa_manager(sa_bo->manager)->cpu_ptr + in amdgpu_sa_bo_cpu_addr()
327 drm_suballoc_soffset(sa_bo); in amdgpu_sa_bo_cpu_addr()
338 struct drm_suballoc **sa_bo,
341 struct drm_suballoc **sa_bo,
H A 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()
H A Damdgpu_ring.h99 struct drm_suballoc *sa_bo; member
/linux/drivers/gpu/drm/radeon/
H A 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()
H A 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,
H A 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()
H A Dradeon_ib.c66 r = radeon_sa_bo_new(&rdev->ring_tmp_bo, &ib->sa_bo, size, 256); in radeon_ib_get()
76 ib->ptr = radeon_sa_bo_cpu_addr(ib->sa_bo); in radeon_ib_get()
82 ib->gpu_addr = drm_suballoc_soffset(ib->sa_bo) + RADEON_VA_IB_OFFSET; in radeon_ib_get()
84 ib->gpu_addr = radeon_sa_bo_gpu_addr(ib->sa_bo); in radeon_ib_get()
102 radeon_sa_bo_free(&ib->sa_bo, ib->fence); in radeon_ib_free()
H A 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()
H A Dradeon.h552 struct drm_suballoc *sa_bo; member
781 struct drm_suballoc *sa_bo; member
/linux/drivers/gpu/drm/xe/
H A Dxe_sa.c96 void xe_sa_bo_flush_write(struct drm_suballoc *sa_bo) in xe_sa_bo_flush_write() argument
98 struct xe_sa_manager *sa_manager = to_xe_sa_manager(sa_bo->manager); in xe_sa_bo_flush_write()
104 xe_map_memcpy_to(xe, &sa_manager->bo->vmap, drm_suballoc_soffset(sa_bo), in xe_sa_bo_flush_write()
105 xe_sa_bo_cpu_addr(sa_bo), in xe_sa_bo_flush_write()
106 drm_suballoc_size(sa_bo)); in xe_sa_bo_flush_write()
109 void xe_sa_bo_free(struct drm_suballoc *sa_bo, in xe_sa_bo_free() argument
112 drm_suballoc_free(sa_bo, fence); in xe_sa_bo_free()
H A Dxe_sa.h18 void xe_sa_bo_flush_write(struct drm_suballoc *sa_bo);
19 void xe_sa_bo_free(struct drm_suballoc *sa_bo,