Home
last modified time | relevance | path

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

123

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_object.h85 struct amdgpu_bo { struct
103 struct amdgpu_bo *parent; argument
104 struct amdgpu_bo *shadow; argument
119 static inline struct amdgpu_bo *ttm_to_amdgpu_bo(struct ttm_buffer_object *tbo) in ttm_to_amdgpu_bo() argument
121 return container_of(tbo, struct amdgpu_bo, tbo); in ttm_to_amdgpu_bo()
160 static inline int amdgpu_bo_reserve(struct amdgpu_bo *bo, bool no_intr) in amdgpu_bo_reserve()
174 static inline void amdgpu_bo_unreserve(struct amdgpu_bo *bo) in amdgpu_bo_unreserve()
179 static inline unsigned long amdgpu_bo_size(struct amdgpu_bo *bo) in amdgpu_bo_size()
184 static inline unsigned amdgpu_bo_ngpu_pages(struct amdgpu_bo *bo) in amdgpu_bo_ngpu_pages()
189 static inline unsigned amdgpu_bo_gpu_page_alignment(struct amdgpu_bo *bo) in amdgpu_bo_gpu_page_alignment()
[all …]
H A Damdgpu_object.c69 static void amdgpu_bo_subtract_pin_size(struct amdgpu_bo *bo) in amdgpu_bo_subtract_pin_size()
85 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(tbo); in amdgpu_bo_destroy()
132 void amdgpu_bo_placement_from_domain(struct amdgpu_bo *abo, u32 domain) in amdgpu_bo_placement_from_domain()
240 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_reserved()
335 u32 domain, struct amdgpu_bo **bo_ptr, in amdgpu_bo_create_kernel()
369 struct amdgpu_bo **bo_ptr, void **cpu_addr) in amdgpu_bo_create_kernel_at()
425 void amdgpu_bo_free_kernel(struct amdgpu_bo **bo, u64 *gpu_addr, in amdgpu_bo_free_kernel()
521 struct amdgpu_bo **bo_ptr) in amdgpu_bo_do_create()
530 struct amdgpu_bo *bo; in amdgpu_bo_do_create()
556 sizeof(struct amdgpu_bo)); in amdgpu_bo_do_create()
[all …]
H A Damdgpu_mn.c72 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_mn_invalidate_gfx()
109 struct amdgpu_bo *bo = container_of(mni, struct amdgpu_bo, notifier); in amdgpu_mn_invalidate_hsa()
138 int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_mn_register()
156 void amdgpu_mn_unregister(struct amdgpu_bo *bo) in amdgpu_mn_unregister()
H A Damdgpu_mn.h36 int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr);
37 void amdgpu_mn_unregister(struct amdgpu_bo *bo);
39 static inline int amdgpu_mn_register(struct amdgpu_bo *bo, unsigned long addr) in amdgpu_mn_register()
45 static inline void amdgpu_mn_unregister(struct amdgpu_bo *bo) {} in amdgpu_mn_unregister()
H A Damdgpu_dma_buf.c58 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_prime_vmap()
78 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()
198 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_attach()
242 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_detach()
272 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_map()
310 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_dma_buf_unmap()
334 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gem); in amdgpu_dma_buf_begin_cpu_access()
385 struct amdgpu_bo *bo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_prime_export()
416 struct amdgpu_bo *bo; in amdgpu_dma_buf_create_obj()
H A Damdgpu_bo_list.h32 struct amdgpu_bo;
47 struct amdgpu_bo *gds_obj;
48 struct amdgpu_bo *gws_obj;
49 struct amdgpu_bo *oa_obj;
H A Damdgpu_rlc.h135 struct amdgpu_bo *save_restore_obj;
141 struct amdgpu_bo *clear_state_obj;
147 struct amdgpu_bo *cp_table_obj;
180 struct amdgpu_bo *rlc_autoload_bo;
185 struct amdgpu_bo *rlc_toc_bo;
H A Damdgpu_vm.h141 struct amdgpu_bo *bo;
235 int (*map_table)(struct amdgpu_bo *bo);
239 struct amdgpu_bo *bo, uint64_t pe, uint64_t addr,
386 int (*callback)(void *p, struct amdgpu_bo *bo),
399 bool amdgpu_vm_evictable(struct amdgpu_bo *bo);
401 struct amdgpu_bo *bo, bool evicted);
408 struct amdgpu_bo *bo);
411 struct amdgpu_bo *bo);
H A Damdgpu_psp.h142 struct amdgpu_bo *xgmi_shared_bo;
152 struct amdgpu_bo *ras_shared_bo;
161 struct amdgpu_bo *hdcp_shared_bo;
169 struct amdgpu_bo *dtm_shared_bo;
212 struct amdgpu_bo *c2p_bo;
227 struct amdgpu_bo *fw_pri_bo;
245 struct amdgpu_bo *tmr_bo;
256 struct amdgpu_bo *fence_buf_bo;
261 struct amdgpu_bo *cmd_buf_bo;
H A Damdgpu_csa.h34 int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo,
37 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va,
39 void amdgpu_free_static_csa(struct amdgpu_bo **bo);
H A Damdgpu_amdkfd_gpuvm.c134 sizeof(struct amdgpu_bo)); in amdgpu_amdkfd_reserve_mem_limit()
178 sizeof(struct amdgpu_bo)); in unreserve_mem_limit()
204 void amdgpu_amdkfd_unreserve_memory_limit(struct amdgpu_bo *bo) in amdgpu_amdkfd_unreserve_memory_limit()
228 static int amdgpu_amdkfd_remove_eviction_fence(struct amdgpu_bo *bo, in amdgpu_amdkfd_remove_eviction_fence()
284 static int amdgpu_amdkfd_bo_validate(struct amdgpu_bo *bo, uint32_t domain, in amdgpu_amdkfd_bo_validate()
306 static int amdgpu_amdkfd_validate(void *param, struct amdgpu_bo *bo) in amdgpu_amdkfd_validate()
322 struct amdgpu_bo *pd = vm->root.base.bo; in vm_validate_pt_pd_bos()
358 struct amdgpu_bo *pd = vm->root.base.bo; in vm_update_pds()
420 struct amdgpu_bo *bo = mem->bo; in add_bo_to_vm()
490 struct amdgpu_bo *bo = mem->bo; in add_kgd_mem_to_kfd_bo_list()
[all …]
H A Damdgpu_ttm.h92 u64 amdgpu_vram_mgr_bo_visible_size(struct amdgpu_bo *bo);
113 int amdgpu_fill_buffer(struct amdgpu_bo *bo,
128 int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, struct page **pages);
131 static inline int amdgpu_ttm_tt_get_user_pages(struct amdgpu_bo *bo, in amdgpu_ttm_tt_get_user_pages()
H A Damdgpu_vm_sdma.c41 static int amdgpu_vm_sdma_map_table(struct amdgpu_bo *table) in amdgpu_vm_sdma_map_table()
68 struct amdgpu_bo *root = p->vm->root.base.bo; in amdgpu_vm_sdma_prepare()
147 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_copy_ptes()
176 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_set_ptes()
208 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_sdma_update()
H A Damdgpu_gfx.h47 struct amdgpu_bo *hpd_eop_obj;
49 struct amdgpu_bo *mec_fw_obj;
94 struct amdgpu_bo *eop_obj;
217 struct amdgpu_bo *pfp_fw_obj;
223 struct amdgpu_bo *ce_fw_obj;
229 struct amdgpu_bo *me_fw_obj;
H A Damdgpu_gem.c49 struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); in amdgpu_gem_object_free()
63 struct amdgpu_bo *bo; in amdgpu_gem_object_create()
131 struct amdgpu_bo *abo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_open()
172 struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); in amdgpu_gem_object_close()
278 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpu_gem_create_ioctl()
305 struct amdgpu_bo *bo; in amdgpu_gem_userptr_ioctl()
383 struct amdgpu_bo *robj; in amdgpu_mode_dumb_mmap()
442 struct amdgpu_bo *robj; in amdgpu_gem_wait_idle_ioctl()
475 struct amdgpu_bo *robj; in amdgpu_gem_metadata_ioctl()
593 struct amdgpu_bo *abo; in amdgpu_gem_va_ioctl()
[all …]
H A Damdgpu_csa.c42 int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo, in amdgpu_allocate_static_csa()
59 void amdgpu_free_static_csa(struct amdgpu_bo **bo) in amdgpu_free_static_csa()
71 struct amdgpu_bo *bo, struct amdgpu_bo_va **bo_va, in amdgpu_map_static_csa()
H A Damdgpu_bo_list.c61 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_bo_list_free()
102 struct amdgpu_bo *bo; in amdgpu_bo_list_create()
161 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(array[i].tv.bo); in amdgpu_bo_list_create()
166 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(array[i].tv.bo); in amdgpu_bo_list_create()
221 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_bo_list_get_list()
H A Damdgpu_amdkfd.c235 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gtt_mem()
304 struct amdgpu_bo *bo = (struct amdgpu_bo *) mem_obj; in amdgpu_amdkfd_free_gtt_mem()
317 struct amdgpu_bo *bo = NULL; in amdgpu_amdkfd_alloc_gws()
342 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
477 struct amdgpu_bo *bo; in amdgpu_amdkfd_get_dmabuf_info()
685 void amdgpu_amdkfd_unreserve_memory_limit(struct amdgpu_bo *bo) in amdgpu_amdkfd_unreserve_memory_limit()
H A Damdgpu_trace.h119 TP_PROTO(struct amdgpu_bo *bo),
122 __field(struct amdgpu_bo *, bo)
250 __field(struct amdgpu_bo *, bo)
274 __field(struct amdgpu_bo *, bo)
418 TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
422 __field(struct amdgpu_bo *, bo)
454 TP_PROTO(struct amdgpu_bo* bo, uint32_t new_placement, uint32_t old_placement),
457 __field(struct amdgpu_bo *, bo)
H A Damdgpu_vm.c236 struct amdgpu_bo *bo = vm_bo->bo; in amdgpu_vm_bo_evicted()
326 struct amdgpu_bo *bo) in amdgpu_vm_bo_base_init()
369 struct amdgpu_bo *parent = pt->base.bo->parent; in amdgpu_vm_pt_parent()
613 struct amdgpu_bo *abo; in amdgpu_vm_del_from_lru_notify()
658 struct amdgpu_bo *bo = bo_base->bo; in amdgpu_vm_move_to_lru_tail()
687 int (*validate)(void *p, struct amdgpu_bo *bo), in amdgpu_vm_validate_pt_bos()
696 struct amdgpu_bo *bo = bo_base->bo; in amdgpu_vm_validate_pt_bos()
750 struct amdgpu_bo *bo, in amdgpu_vm_clear_bo()
756 struct amdgpu_bo *ancestor = bo; in amdgpu_vm_clear_bo()
911 struct amdgpu_bo *pt; in amdgpu_vm_alloc_pts()
[all …]
H A Damdgpu_fb.c123 struct amdgpu_bo *abo = gem_to_amdgpu_bo(gobj); in amdgpufb_destroy_pinned_object()
142 struct amdgpu_bo *abo = NULL; in amdgpufb_create_pinned_object()
222 struct amdgpu_bo *abo = NULL; in amdgpufb_create()
416 struct amdgpu_bo *robj; in amdgpu_fbdev_total_size()
427 bool amdgpu_fbdev_robj_is_fb(struct amdgpu_device *adev, struct amdgpu_bo *robj) in amdgpu_fbdev_robj_is_fb()
H A Damdgpu_cs.c50 struct amdgpu_bo *bo; in amdgpu_cs_user_fence_chunk()
405 struct amdgpu_bo *bo) in amdgpu_cs_bo_validate()
458 static int amdgpu_cs_validate(void *param, struct amdgpu_bo *bo) in amdgpu_cs_validate()
481 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(lobj->tv.bo); in amdgpu_cs_list_validate()
525 struct amdgpu_bo *gds; in amdgpu_cs_parser_bos()
526 struct amdgpu_bo *gws; in amdgpu_cs_parser_bos()
527 struct amdgpu_bo *oa; in amdgpu_cs_parser_bos()
566 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_cs_parser_bos()
630 struct amdgpu_bo *bo = ttm_to_amdgpu_bo(e->tv.bo); in amdgpu_cs_parser_bos()
652 struct amdgpu_bo *uf = ttm_to_amdgpu_bo(p->uf_entry.tv.bo); in amdgpu_cs_parser_bos()
[all …]
H A Damdgpu_mes.h37 struct amdgpu_bo *ucode_fw_obj;
44 struct amdgpu_bo *data_fw_obj;
H A Damdgpu_vm_cpu.c37 static int amdgpu_vm_cpu_map_table(struct amdgpu_bo *table) in amdgpu_vm_cpu_map_table()
88 struct amdgpu_bo *bo, uint64_t pe, in amdgpu_vm_cpu_update()
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm.h62 struct amdgpu_bo;
90 struct amdgpu_bo *bo_ptr;
156 struct amdgpu_bo *dmub_bo;

123