Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.h95 struct amdgpu_bo { struct
107 struct amdgpu_bo *parent; argument
123 struct amdgpu_bo bo; argument
132 struct amdgpu_bo bo;
133 struct amdgpu_bo *shadow;
159 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo()
161 return container_of(tbo, struct amdgpu_bo, tbo); in ttm_to_amdgpu_bo()
202 static inline int amdgpu_bo_reserve(struct amdgpu_bo *bo, bool no_intr) in amdgpu_bo_reserve()
216 static inline void amdgpu_bo_unreserve(struct amdgpu_bo *bo) in amdgpu_bo_unreserve()
221 static inline unsigned long amdgpu_bo_size(struct amdgpu_bo *bo) in amdgpu_bo_size()
[all …]
Damdgpu_ttm.h76 struct amdgpu_bo *stolen_vga_memory;
78 struct amdgpu_bo *stolen_extended_memory;
81 struct amdgpu_bo *stolen_reserved_memory;
89 struct amdgpu_bo *fw_reserved_memory;
94 struct amdgpu_bo *fw_vram_usage_reserved_bo;
100 struct amdgpu_bo *drv_vram_usage_reserved_bo;
104 struct amdgpu_bo *sdma_access_bo;
126 u64 amdgpu_vram_mgr_bo_visible_size(struct amdgpu_bo *bo);
158 int amdgpu_fill_buffer(struct amdgpu_bo *bo,
169 int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages,
[all …]
Damdgpu_object.c58 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_destroy()
71 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_user_destroy()
82 struct amdgpu_bo *shadow_bo = ttm_to_amdgpu_bo(tbo), *bo; in amdgpu_bo_vm_destroy()
125 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain()
249 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_reserved()
270 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_bo_create_reserved()
345 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_kernel()
378 struct amdgpu_bo **bo_ptr, void **cpu_addr) in amdgpu_bo_create_kernel_at()
438 void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, in amdgpu_bo_free_kernel()
545 struct amdgpu_bo **bo_ptr) in amdgpu_bo_create()
[all …]
Damdgpu_bo_list.h33 struct amdgpu_bo;
38 struct amdgpu_bo *bo;
49 struct amdgpu_bo *gds_obj;
50 struct amdgpu_bo *gws_obj;
51 struct amdgpu_bo *oa_obj;
Damdgpu_hmm.h41 int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr);
42 void amdgpu_hmm_unregister(struct amdgpu_bo *bo);
44 static inline int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_hmm_register()
50 static inline void amdgpu_hmm_unregister(struct amdgpu_bo *bo) {} in amdgpu_hmm_unregister()
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);
Damdgpu_dma_buf.c58 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_attach()
88 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_detach()
105 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_pin()
121 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_unpin()
144 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_map()
238 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dma_buf->priv); in amdgpu_dma_buf_begin_cpu_access()
291 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_prime_export()
323 struct amdgpu_bo *bo; in amdgpu_dma_buf_create_obj()
330 struct amdgpu_bo *other = gem_to_amdgpu_bo(dma_buf->priv); in amdgpu_dma_buf_create_obj()
368 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_move_notify()
[all …]
Damdgpu_hmm.c70 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_gfx()
107 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_hmm_invalidate_hsa()
130 int amdgpu_hmm_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_hmm_register()
148 void amdgpu_hmm_unregister(struct amdgpu_bo *bo) in amdgpu_hmm_unregister()
Damdgpu_csa.c39 int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo, in amdgpu_allocate_static_csa()
55 void amdgpu_free_static_csa(struct amdgpu_bo **bo) in amdgpu_free_static_csa()
67 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va, in amdgpu_map_static_csa()
107 struct amdgpu_bo *bo, struct amdgpu_bo_va *bo_va, in amdgpu_unmap_static_csa()
Damdgpu_rlc.h188 struct amdgpu_bo *save_restore_obj;
194 struct amdgpu_bo *clear_state_obj;
200 struct amdgpu_bo *cp_table_obj;
251 struct amdgpu_bo *rlc_autoload_bo;
256 struct amdgpu_bo *rlc_toc_bo;
Damdgpu_amdkfd_gpuvm.c284 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo) in amdgpu_amdkfd_release_notify()
307 struct kgd_mem *mem, struct amdgpu_bo **bo_out) in create_dmamap_sg_bo()
346 static int amdgpu_amdkfd_remove_eviction_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_remove_eviction_fence()
364 int amdgpu_amdkfd_remove_fence_on_pt_pd_bos(struct amdgpu_bo *bo) in amdgpu_amdkfd_remove_fence_on_pt_pd_bos()
366 struct amdgpu_bo *root = bo; in amdgpu_amdkfd_remove_fence_on_pt_pd_bos()
400 static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, in amdgpu_amdkfd_bo_validate()
422 static int amdgpu_amdkfd_validate_vm_bo(void *_unused, struct amdgpu_bo *bo) in amdgpu_amdkfd_validate_vm_bo()
436 struct amdgpu_bo *pd = vm->root.bo; in vm_validate_pt_pd_bos()
453 struct amdgpu_bo *pd = vm->root.bo; in vm_update_pds()
517 struct amdgpu_bo *bo = attachment->bo_va->base.bo; in kfd_mem_dmamap_userptr()
[all …]
Damdgpu_gfx.h104 struct amdgpu_bo *hpd_eop_obj;
106 struct amdgpu_bo *mec_fw_obj;
108 struct amdgpu_bo *mec_fw_data_obj;
156 struct amdgpu_bo *eop_obj;
314 struct amdgpu_bo *pfp_fw_obj;
318 struct amdgpu_bo *pfp_fw_data_obj;
324 struct amdgpu_bo *ce_fw_obj;
330 struct amdgpu_bo *me_fw_obj;
334 struct amdgpu_bo *me_fw_data_obj;
Damdgpu_job.h95 void amdgpu_job_set_resources(struct amdgpu_job *job, struct amdgpu_bo *gds,
96 struct amdgpu_bo *gws, struct amdgpu_bo *oa);
Damdgpu_mes.h91 struct amdgpu_bo *ucode_fw_obj[AMDGPU_MAX_MES_PIPES];
97 struct amdgpu_bo *data_fw_obj[AMDGPU_MAX_MES_PIPES];
103 struct amdgpu_bo *eop_gpu_obj[AMDGPU_MAX_MES_PIPES];
144 struct amdgpu_bo *proc_ctx_bo;
160 struct amdgpu_bo *gang_ctx_bo;
172 struct amdgpu_bo *mqd_obj;
Damdgpu_vm.h152 struct amdgpu_bo *bo;
412 int (*callback)(void *p, struct amdgpu_bo *bo),
423 struct amdgpu_vm *vm, struct amdgpu_bo *bo);
433 bool amdgpu_vm_evictable(struct amdgpu_bo *bo);
435 struct amdgpu_bo *bo, bool evicted);
438 struct amdgpu_bo *bo);
441 struct amdgpu_bo *bo);
Damdgpu_gem.c90 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
104 struct amdgpu_bo *bo; in amdgpu_gem_object_create()
119 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_gem_object_create()
164 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open()
196 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_close()
245 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_mmap()
358 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
387 struct amdgpu_bo *bo; in amdgpu_gem_userptr_ioctl()
464 struct amdgpu_bo *robj; in amdgpu_mode_dumb_mmap()
524 struct amdgpu_bo *robj; in amdgpu_gem_wait_idle_ioctl()
[all …]
Damdgpu_cs.h76 struct amdgpu_bo *uf_bo;
85 uint64_t addr, struct amdgpu_bo **bo,
Damdgpu_amdkfd.h69 struct amdgpu_bo *bo;
191 int amdgpu_amdkfd_remove_fence_on_pt_pd_bos(struct amdgpu_bo *bo);
208 int amdgpu_amdkfd_remove_fence_on_pt_pd_bos(struct amdgpu_bo *bo) in amdgpu_amdkfd_remove_fence_on_pt_pd_bos()
312 int amdgpu_amdkfd_map_gtt_bo_to_gart(struct amdgpu_device *adev, struct amdgpu_bo *bo);
358 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo);
373 void amdgpu_amdkfd_release_notify(struct amdgpu_bo *bo) in amdgpu_amdkfd_release_notify()
Damdgpu_gart.h33 struct amdgpu_bo;
43 struct amdgpu_bo *bo;
Damdgpu_gmc.h298 struct amdgpu_bo *pdb0_bo;
381 void amdgpu_gmc_get_pde_for_bo(struct amdgpu_bo *bo, int level,
386 uint64_t amdgpu_gmc_pd_addr(struct amdgpu_bo *bo);
416 uint64_t amdgpu_gmc_vram_pa(struct amdgpu_device *adev, struct amdgpu_bo *bo);
417 uint64_t amdgpu_gmc_vram_cpu_pa(struct amdgpu_device *adev, struct amdgpu_bo *bo);
Damdgpu_vm_pt.c154 struct amdgpu_bo *parent = pt->bo->parent; in amdgpu_vm_pt_parent()
381 struct amdgpu_bo *ancestor = &vmbo->bo; in amdgpu_vm_pt_clear()
383 struct amdgpu_bo *bo = &vmbo->bo; in amdgpu_vm_pt_clear()
424 struct amdgpu_bo *shadow = vmbo->shadow; in amdgpu_vm_pt_clear()
508 struct amdgpu_bo *bo; in amdgpu_vm_pt_create()
564 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_vm_pt_create()
602 struct amdgpu_bo *pt_bo; in amdgpu_vm_pt_alloc()
641 struct amdgpu_bo *shadow; in amdgpu_vm_pt_free()
769 struct amdgpu_bo *bo = parent->bo, *pbo; in amdgpu_vm_pde_update()
954 struct amdgpu_bo *pt; in amdgpu_vm_ptes_update()
Damdgpu_amdkfd.c270 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gtt_mem()
282 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_amdkfd_alloc_gtt_mem()
340 struct amdgpu_bo *bo = (struct amdgpu_bo *) mem_obj; in amdgpu_amdkfd_free_gtt_mem()
352 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gws()
364 bp.bo_ptr_size = sizeof(struct amdgpu_bo); in amdgpu_amdkfd_alloc_gws()
380 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
500 struct amdgpu_bo *bo; in amdgpu_amdkfd_get_dmabuf_info()
Damdgpu_psp.h167 struct amdgpu_bo *shared_bo;
237 struct amdgpu_bo *c2p_bo;
320 struct amdgpu_bo *fw_pri_bo;
338 struct amdgpu_bo *tmr_bo;
351 struct amdgpu_bo *fence_buf_bo;
356 struct amdgpu_bo *cmd_buf_bo;
Damdgpu_uvd.h41 struct amdgpu_bo *vcpu_bo;
71 struct amdgpu_bo *ib_bo;
Damdgpu_trace.h117 TP_PROTO(struct amdgpu_bo *bo),
120 __field(struct amdgpu_bo *, bo)
250 __field(struct amdgpu_bo *, bo)
274 __field(struct amdgpu_bo *, bo)
461 TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
465 __field(struct amdgpu_bo *, bo)
497 TP_PROTO(struct amdgpu_bo *bo, uint32_t new_placement, uint32_t old_placement),
500 __field(struct amdgpu_bo *, bo)

1234