Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_object.h79 struct amdgpu_bo { struct
97 struct amdgpu_bo *parent; argument
98 struct amdgpu_bo *shadow; argument
111 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo() argument
113 return container_of(tbo, struct amdgpu_bo, tbo); in ttm_to_amdgpu_bo()
152 static inline int amdgpu_bo_reserve(struct amdgpu_bo *bo, bool no_intr) in amdgpu_bo_reserve()
166 static inline void amdgpu_bo_unreserve(struct amdgpu_bo *bo) in amdgpu_bo_unreserve()
171 static inline unsigned long amdgpu_bo_size(struct amdgpu_bo *bo) in amdgpu_bo_size()
176 static inline unsigned amdgpu_bo_ngpu_pages(struct amdgpu_bo *bo) in amdgpu_bo_ngpu_pages()
181 static inline unsigned amdgpu_bo_gpu_page_alignment(struct amdgpu_bo *bo) in amdgpu_bo_gpu_page_alignment()
[all …]
Damdgpu_object.c62 static void amdgpu_bo_subtract_pin_size(struct amdgpu_bo *bo) in amdgpu_bo_subtract_pin_size()
78 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_destroy()
125 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain()
233 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_reserved()
328 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_kernel()
354 void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, in amdgpu_bo_free_kernel()
450 struct amdgpu_bo **bo_ptr) in amdgpu_bo_do_create()
459 struct amdgpu_bo *bo; in amdgpu_bo_do_create()
485 sizeof(struct amdgpu_bo)); in amdgpu_bo_do_create()
487 bo = kzalloc(sizeof(struct amdgpu_bo), GFP_KERNEL); in amdgpu_bo_do_create()
[all …]
Damdgpu_mn.h79 int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr);
80 void amdgpu_mn_unregister(struct amdgpu_bo *bo);
90 static inline int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_mn_register()
96 static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {} in amdgpu_mn_unregister()
Damdgpu_bo_list.h30 struct amdgpu_bo;
45 struct amdgpu_bo *gds_obj;
46 struct amdgpu_bo *gws_obj;
47 struct amdgpu_bo *oa_obj;
Damdgpu_dma_buf.c51 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_prime_get_sg_table()
68 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_prime_vmap()
88 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_prime_vunmap()
107 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_prime_mmap()
197 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_map_attach()
253 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_map_detach()
285 struct amdgpu_bo *bo = gem_to_amdgpu_bo(dma_buf->priv); in amdgpu_dma_buf_begin_cpu_access()
336 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_prime_export()
372 struct amdgpu_bo *bo; in amdgpu_gem_prime_import_sg_table()
Damdgpu_rlc.h133 struct amdgpu_bo *save_restore_obj;
139 struct amdgpu_bo *clear_state_obj;
145 struct amdgpu_bo *cp_table_obj;
178 struct amdgpu_bo *rlc_autoload_bo;
183 struct amdgpu_bo *rlc_toc_bo;
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,
37 void amdgpu_free_static_csa(struct amdgpu_bo **bo);
Damdgpu_vm_sdma.c36 static int amdgpu_vm_sdma_map_table(struct amdgpu_bo *table) in amdgpu_vm_sdma_map_table()
63 struct amdgpu_bo *root = p->vm->root.base.bo; in amdgpu_vm_sdma_prepare()
96 struct amdgpu_bo *root = p->vm->root.base.bo; in amdgpu_vm_sdma_commit()
135 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_copy_ptes()
164 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_set_ptes()
196 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_update()
Damdgpu_ttm.h76 u64 amdgpu_vram_mgr_bo_visible_size(struct amdgpu_bo *bo);
97 int amdgpu_fill_buffer(struct amdgpu_bo *bo,
107 int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages);
110 static inline int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, in amdgpu_ttm_tt_get_user_pages()
Damdgpu_vm.h135 struct amdgpu_bo *bo;
220 int (*map_table)(struct amdgpu_bo *bo);
224 struct amdgpu_bo *bo, uint64_t pe, uint64_t addr,
357 int (*callback)(void *p, struct amdgpu_bo *bo),
371 struct amdgpu_bo *bo, bool evicted);
374 struct amdgpu_bo *bo);
377 struct amdgpu_bo *bo);
Damdgpu_psp.h129 struct amdgpu_bo *xgmi_shared_bo;
139 struct amdgpu_bo *ras_shared_bo;
154 struct amdgpu_bo *fw_pri_bo;
172 struct amdgpu_bo *tmr_bo;
181 struct amdgpu_bo *asd_shared_bo;
186 struct amdgpu_bo *fence_buf_bo;
191 struct amdgpu_bo *cmd_buf_bo;
Damdgpu_gfx.h45 struct amdgpu_bo *hpd_eop_obj;
47 struct amdgpu_bo *mec_fw_obj;
88 struct amdgpu_bo *eop_obj;
205 struct amdgpu_bo *bo;
232 struct amdgpu_bo *pfp_fw_obj;
238 struct amdgpu_bo *ce_fw_obj;
244 struct amdgpu_bo *me_fw_obj;
Damdgpu_csa.c37 int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo, in amdgpu_allocate_static_csa()
54 void amdgpu_free_static_csa(struct amdgpu_bo **bo) in amdgpu_free_static_csa()
66 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va, in amdgpu_map_static_csa()
Damdgpu_amdkfd_gpuvm.c124 sizeof(struct amdgpu_bo)); in amdgpu_amdkfd_reserve_mem_limit()
168 sizeof(struct amdgpu_bo)); in unreserve_mem_limit()
194 void amdgpu_amdkfd_unreserve_memory_limit(struct amdgpu_bo *bo) in amdgpu_amdkfd_unreserve_memory_limit()
218 static int amdgpu_amdkfd_remove_eviction_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_remove_eviction_fence()
274 static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, in amdgpu_amdkfd_bo_validate()
296 static int amdgpu_amdkfd_validate(void *param, struct amdgpu_bo *bo) in amdgpu_amdkfd_validate()
312 struct amdgpu_bo *pd = vm->root.base.bo; in vm_validate_pt_pd_bos()
348 struct amdgpu_bo *pd = vm->root.base.bo; in vm_update_pds()
377 struct amdgpu_bo *bo = mem->bo; in add_bo_to_vm()
448 struct amdgpu_bo *bo = mem->bo; in add_kgd_mem_to_kfd_bo_list()
[all …]
Damdgpu_gem.c42 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
56 struct amdgpu_bo *bo; in amdgpu_gem_object_create()
124 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open()
157 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_close()
263 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
290 struct amdgpu_bo *bo; in amdgpu_gem_userptr_ioctl()
368 struct amdgpu_bo *robj; in amdgpu_mode_dumb_mmap()
427 struct amdgpu_bo *robj; in amdgpu_gem_wait_idle_ioctl()
460 struct amdgpu_bo *robj; in amdgpu_gem_metadata_ioctl()
550 struct amdgpu_bo *abo; in amdgpu_gem_va_ioctl()
[all …]
Damdgpu_bo_list.c54 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_bo_list_free()
95 struct amdgpu_bo *bo; in amdgpu_bo_list_create()
144 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(array[i].tv.bo); in amdgpu_bo_list_create()
149 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(array[i].tv.bo); in amdgpu_bo_list_create()
204 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_bo_list_get_list()
Damdgpu_gart.h33 struct amdgpu_bo;
43 struct amdgpu_bo *bo;
Damdgpu_fb.c108 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpufb_destroy_pinned_object()
127 struct amdgpu_bo *abo = NULL; in amdgpufb_create_pinned_object()
207 struct amdgpu_bo *abo = NULL; in amdgpufb_create()
375 struct amdgpu_bo *robj; in amdgpu_fbdev_total_size()
386 bool amdgpu_fbdev_robj_is_fb(struct amdgpu_device *adev, struct amdgpu_bo *robj) in amdgpu_fbdev_robj_is_fb()
Damdgpu_mn.c78 struct amdgpu_bo *bo, *next_bo; in amdgpu_mn_destroy()
174 struct amdgpu_bo *bo; in amdgpu_mn_invalidate_node()
266 struct amdgpu_bo *bo; in amdgpu_mn_sync_pagetables_hsa()
375 int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_mn_register()
434 void amdgpu_mn_unregister(struct amdgpu_bo *bo) in amdgpu_mn_unregister()
Damdgpu_mes.h35 struct amdgpu_bo *ucode_fw_obj;
42 struct amdgpu_bo *data_fw_obj;
Damdgpu_vm_cpu.c32 static int amdgpu_vm_cpu_map_table(struct amdgpu_bo *table) in amdgpu_vm_cpu_map_table()
83 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_cpu_update()
Damdgpu_amdkfd.c273 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gtt_mem()
342 struct amdgpu_bo *bo = (struct amdgpu_bo *) mem_obj; in amdgpu_amdkfd_free_gtt_mem()
355 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gws()
380 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
511 struct amdgpu_bo *bo; in amdgpu_amdkfd_get_dmabuf_info()
693 void amdgpu_amdkfd_unreserve_memory_limit(struct amdgpu_bo *bo) in amdgpu_amdkfd_unreserve_memory_limit()
Damdgpu_trace.h117 TP_PROTO(struct amdgpu_bo *bo),
120 __field(struct amdgpu_bo *, bo)
248 __field(struct amdgpu_bo *, bo)
272 __field(struct amdgpu_bo *, bo)
411 TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
415 __field(struct amdgpu_bo *, bo)
447 TP_PROTO(struct amdgpu_bo* bo, uint32_t new_placement, uint32_t old_placement),
450 __field(struct amdgpu_bo *, bo)
Damdgpu_cs.c44 struct amdgpu_bo *bo; in amdgpu_cs_user_fence_chunk()
399 struct amdgpu_bo *bo) in amdgpu_cs_bo_validate()
454 struct amdgpu_bo *validated) in amdgpu_cs_try_evict()
467 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(candidate->tv.bo); in amdgpu_cs_try_evict()
513 static int amdgpu_cs_validate(void *param, struct amdgpu_bo *bo) in amdgpu_cs_validate()
538 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(lobj->tv.bo); in amdgpu_cs_list_validate()
577 struct amdgpu_bo *gds; in amdgpu_cs_parser_bos()
578 struct amdgpu_bo *gws; in amdgpu_cs_parser_bos()
579 struct amdgpu_bo *oa; in amdgpu_cs_parser_bos()
620 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_cs_parser_bos()
[all …]
Damdgpu_vce.h36 struct amdgpu_bo *vcpu_bo;
62 struct amdgpu_bo *bo,

123