Home
last modified time | relevance | path

Searched refs:amdgpu_bo (Results 1 – 25 of 56) sorted by relevance

123

/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_object.h103 struct amdgpu_bo { struct
115 struct amdgpu_bo *parent; argument
131 struct amdgpu_bo bo; argument
140 struct amdgpu_bo bo;
144 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo()
146 return container_of(tbo, struct amdgpu_bo, tbo); in ttm_to_amdgpu_bo()
187 static inline int amdgpu_bo_reserve(struct amdgpu_bo *bo, bool no_intr) in amdgpu_bo_reserve()
201 static inline void amdgpu_bo_unreserve(struct amdgpu_bo *bo) in amdgpu_bo_unreserve()
206 static inline unsigned long amdgpu_bo_size(struct amdgpu_bo *bo) in amdgpu_bo_size()
211 static inline unsigned amdgpu_bo_ngpu_pages(struct amdgpu_bo *bo) in amdgpu_bo_ngpu_pages()
[all …]
H A Damdgpu_hmm.c68 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_gfx()
70 struct amdgpu_bo *vm_root = bo->vm_bo->vm->root.bo; in amdgpu_hmm_invalidate_gfx()
108 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_hsa()
131 int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_hmm_register()
161 void amdgpu_hmm_unregister(struct amdgpu_bo *bo) in amdgpu_hmm_unregister()
267 struct amdgpu_hmm_range *amdgpu_hmm_range_alloc(struct amdgpu_bo *bo) in amdgpu_hmm_range_alloc()
H A Damdgpu_csa.h32 int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo,
35 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va,
38 struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va,
40 void amdgpu_free_static_csa(struct amdgpu_bo **bo);
H A Damdgpu_vm.h203 struct amdgpu_bo *bo;
516 int (*callback)(void *p, struct amdgpu_bo *bo),
532 struct amdgpu_vm *vm, struct amdgpu_bo *bo);
543 bool amdgpu_vm_evictable(struct amdgpu_bo *bo);
544 void amdgpu_vm_bo_invalidate(struct amdgpu_bo *bo, bool evicted);
547 void amdgpu_vm_bo_update_shared(struct amdgpu_bo *bo);
548 void amdgpu_vm_bo_move(struct amdgpu_bo *bo, struct ttm_resource *new_mem,
552 struct amdgpu_bo *bo);
555 struct amdgpu_bo *bo);
596 struct amdgpu_bo **root, u32 pasid);
[all …]
H A Damdgpu_amdkfd.h72 struct amdgpu_bo *bo;
205 void amdgpu_amdkfd_remove_all_eviction_fences(struct amdgpu_bo *bo);
208 int amdgpu_amdkfd_bo_validate_and_fence(struct amdgpu_bo *bo,
225 void amdgpu_amdkfd_remove_all_eviction_fences(struct amdgpu_bo *bo) in amdgpu_amdkfd_remove_all_eviction_fences()
236 int amdgpu_amdkfd_bo_validate_and_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_bo_validate_and_fence()
331 int amdgpu_amdkfd_map_gtt_bo_to_gart(struct amdgpu_bo *bo, struct amdgpu_bo **bo_gart);
382 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo);
397 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo) in amdgpu_amdkfd_release_notify()
H A Damdgpu_isp.c179 struct amdgpu_bo *bo; in isp_user_buffer_alloc()
254 struct amdgpu_bo **bo = (struct amdgpu_bo **)buf_obj; in isp_kernel_buffer_alloc()
315 struct amdgpu_bo **bo = (struct amdgpu_bo **)buf_obj; in isp_kernel_buffer_free()
H A Damdgpu_amdkfd_gpuvm.c309 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo) in amdgpu_amdkfd_release_notify()
332 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
371 static int amdgpu_amdkfd_remove_eviction_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_remove_eviction_fence()
398 void amdgpu_amdkfd_remove_all_eviction_fences(struct amdgpu_bo *bo) in amdgpu_amdkfd_remove_all_eviction_fences()
417 static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, in amdgpu_amdkfd_bo_validate()
443 int amdgpu_amdkfd_bo_validate_and_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_bo_validate_and_fence()
469 static int amdgpu_amdkfd_validate_vm_bo(void *_unused, struct amdgpu_bo *bo) in amdgpu_amdkfd_validate_vm_bo()
484 struct amdgpu_bo *pd = vm->root.bo; in vm_validate_pt_pd_bos()
502 struct amdgpu_bo *pd = vm->root.bo; in vm_update_pds()
567 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
[all …]
H A Damdgpu_vm.c150 bool amdgpu_vm_is_bo_always_valid(struct amdgpu_vm *vm, struct amdgpu_bo *bo) in amdgpu_vm_is_bo_always_valid()
166 struct amdgpu_bo *bo = vm_bo->bo; in amdgpu_vm_bo_evicted()
296 struct amdgpu_bo *bo = vm_bo->bo; in amdgpu_vm_bo_reset_state_machine()
318 struct amdgpu_bo *bo = base->bo; in amdgpu_vm_update_shared()
346 void amdgpu_vm_bo_update_shared(struct amdgpu_bo *bo) in amdgpu_vm_bo_update_shared()
368 struct amdgpu_bo *bo = base->bo; in amdgpu_vm_update_stats_locked()
424 struct amdgpu_vm *vm, struct amdgpu_bo *bo) in amdgpu_vm_bo_base_init()
494 struct amdgpu_bo *bo; in amdgpu_vm_lock_done_list()
608 int (*validate)(void *p, struct amdgpu_bo *bo), in amdgpu_vm_validate()
613 struct amdgpu_bo *bo; in amdgpu_vm_validate()
[all …]
H A Damdgpu_gem.c160 struct amdgpu_bo *aobj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
172 struct amdgpu_bo *bo; in amdgpu_gem_object_create()
188 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_gem_object_create()
232 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open()
316 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_close()
369 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_mmap()
474 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
503 struct amdgpu_bo *bo; in amdgpu_gem_userptr_ioctl()
587 struct amdgpu_bo *robj; in amdgpu_mode_dumb_mmap()
647 struct amdgpu_bo *robj; in amdgpu_gem_wait_idle_ioctl()
[all …]
H A Damdgpu_umsch_mm.h145 struct amdgpu_bo *ucode_fw_obj;
152 struct amdgpu_bo *data_fw_obj;
158 struct amdgpu_bo *cmd_buf_obj;
177 struct amdgpu_bo *dbglog_bo;
H A Damdgpu_cs.h76 struct amdgpu_bo *uf_bo;
85 uint64_t addr, struct amdgpu_bo **bo,
H A Damdgpu_amdkfd.c352 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_kernel_mem()
365 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_amdkfd_alloc_kernel_mem()
423 struct amdgpu_bo **bo = (struct amdgpu_bo **) mem_obj; in amdgpu_amdkfd_free_kernel_mem()
438 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gws()
450 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_amdkfd_alloc_gws()
466 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
567 struct amdgpu_bo *bo; in amdgpu_amdkfd_get_dmabuf_info()
H A Damdgpu_gart.h33 struct amdgpu_bo;
43 struct amdgpu_bo *bo;
H A Damdgpu_gmc.h175 struct amdgpu_bo *bo,
326 struct amdgpu_bo *pdb0_bo;
411 void amdgpu_gmc_get_pde_for_bo(struct amdgpu_bo *bo, int level,
416 uint64_t amdgpu_gmc_pd_addr(struct amdgpu_bo *bo);
464 uint64_t amdgpu_gmc_vram_pa(struct amdgpu_device *adev, struct amdgpu_bo *bo);
H A Damdgpu_uvd.h41 struct amdgpu_bo *vcpu_bo;
71 struct amdgpu_bo *ib_bo;
H A Damdgpu_vm_pt.c140 struct amdgpu_bo *parent = pt->bo->parent; in amdgpu_vm_pt_parent()
367 struct amdgpu_bo *ancestor = &vmbo->bo; in amdgpu_vm_pt_clear()
369 struct amdgpu_bo *bo = &vmbo->bo; in amdgpu_vm_pt_clear()
502 struct amdgpu_bo *pt_bo; in amdgpu_vm_pt_alloc()
634 struct amdgpu_bo *bo, *pbo; in amdgpu_vm_pde_update()
820 struct amdgpu_bo *pt; in amdgpu_vm_ptes_update()
H A Damdgpu_seq64.c70 struct amdgpu_bo *bo; in amdgpu_seq64_map()
129 struct amdgpu_bo *bo; in amdgpu_seq64_unmap()
H A Damdgpu_dma_buf.h33 struct amdgpu_bo *bo);
H A Damdgpu_gds.h28 struct amdgpu_bo;
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.h88 struct amdgpu_bo;
108 struct amdgpu_bo *bo_ptr;
121 struct amdgpu_bo *bo_ptr;
265 struct amdgpu_bo *bo;
407 struct amdgpu_bo *dmub_bo;
/linux/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_priv.h378 struct amdgpu_bo *doorbells;
543 struct amdgpu_bo *wptr_bo;
544 struct amdgpu_bo *rptr_bo;
545 struct amdgpu_bo *ring_bo;
546 struct amdgpu_bo *eop_buf_bo;
547 struct amdgpu_bo *cwsr_bo;
630 struct amdgpu_bo *wptr_bo_gart;
717 struct amdgpu_bo *proc_doorbells;
1344 int kfd_queue_buffer_get(struct amdgpu_vm *vm, void __user *addr, struct amdgpu_bo **pbo,
1346 void kfd_queue_buffer_put(struct amdgpu_bo **bo);
[all …]
/linux/drivers/gpu/drm/amd/pm/powerplay/smumgr/
H A Dsmu10_smumgr.h38 struct amdgpu_bo *handle;
H A Dvega10_smumgr.h34 struct amdgpu_bo *handle;
H A Dvega12_smumgr.h35 struct amdgpu_bo *handle;
H A Dvega20_smumgr.h34 struct amdgpu_bo *handle;

123