Searched refs:mem_obj (Results 1 – 11 of 11) sorted by relevance
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_device.c | 1117 struct kfd_mem_obj **mem_obj) in kfd_gtt_sa_allocate() argument 1127 *mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in kfd_gtt_sa_allocate() 1128 if (!(*mem_obj)) in kfd_gtt_sa_allocate() 1131 pr_debug("Allocated mem_obj = %p for size = %d\n", *mem_obj, size); in kfd_gtt_sa_allocate() 1150 (*mem_obj)->range_start = found; in kfd_gtt_sa_allocate() 1151 (*mem_obj)->range_end = found; in kfd_gtt_sa_allocate() 1152 (*mem_obj)->gpu_addr = kfd_gtt_sa_calc_gpu_addr( in kfd_gtt_sa_allocate() 1156 (*mem_obj)->cpu_ptr = kfd_gtt_sa_calc_cpu_addr( in kfd_gtt_sa_allocate() 1162 (uint64_t *) (*mem_obj)->gpu_addr, (*mem_obj)->cpu_ptr); in kfd_gtt_sa_allocate() 1174 (*mem_obj)->range_end = in kfd_gtt_sa_allocate() [all …]
|
D | kfd_dbgdev.c | 53 struct kfd_mem_obj *mem_obj; in dbgdev_diq_submit_ib() local 114 &mem_obj); in dbgdev_diq_submit_ib() 122 rm_state = (uint64_t *) mem_obj->cpu_ptr; in dbgdev_diq_submit_ib() 138 addr.quad_part = mem_obj->gpu_addr; in dbgdev_diq_submit_ib() 161 kfd_gtt_sa_free(dbgdev->dev, mem_obj); in dbgdev_diq_submit_ib() 342 struct kfd_mem_obj *mem_obj; in dbgdev_address_watch_diq() local 366 status = kfd_gtt_sa_allocate(dbgdev->dev, ib_size, &mem_obj); in dbgdev_address_watch_diq() 373 packet_buff_uint = mem_obj->cpu_ptr; in dbgdev_address_watch_diq() 471 mem_obj->gpu_addr, in dbgdev_address_watch_diq() 481 kfd_gtt_sa_free(dbgdev->dev, mem_obj); in dbgdev_address_watch_diq() [all …]
|
D | kfd_priv.h | 912 struct kfd_mem_obj **mem_obj); 914 int kfd_gtt_sa_free(struct kfd_dev *kfd, struct kfd_mem_obj *mem_obj);
|
D | kfd_device_queue_manager.c | 1831 struct kfd_mem_obj *mem_obj = &dqm->hiq_sdma_mqd; in allocate_hiq_sdma_mqd() local 1838 &(mem_obj->gtt_mem), &(mem_obj->gpu_addr), in allocate_hiq_sdma_mqd() 1839 (void *)&(mem_obj->cpu_ptr), false); in allocate_hiq_sdma_mqd()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_amdkfd.c | 242 void **mem_obj, uint64_t *gpu_addr, in amdgpu_amdkfd_alloc_gtt_mem() argument 295 *mem_obj = bo; in amdgpu_amdkfd_alloc_gtt_mem() 313 void amdgpu_amdkfd_free_gtt_mem(struct kgd_dev *kgd, void *mem_obj) in amdgpu_amdkfd_free_gtt_mem() argument 315 struct amdgpu_bo *bo = (struct amdgpu_bo *) mem_obj; in amdgpu_amdkfd_free_gtt_mem() 325 void **mem_obj) in amdgpu_amdkfd_alloc_gws() argument 347 *mem_obj = bo; in amdgpu_amdkfd_alloc_gws() 351 void amdgpu_amdkfd_free_gws(struct kgd_dev *kgd, void *mem_obj) in amdgpu_amdkfd_free_gws() argument 353 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
|
D | amdgpu_amdkfd.h | 184 void **mem_obj, uint64_t *gpu_addr, 186 void amdgpu_amdkfd_free_gtt_mem(struct kgd_dev *kgd, void *mem_obj); 187 int amdgpu_amdkfd_alloc_gws(struct kgd_dev *kgd, size_t size, void **mem_obj); 188 void amdgpu_amdkfd_free_gws(struct kgd_dev *kgd, void *mem_obj);
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/siw/ |
D | siw_mem.c | 89 int siw_mr_add_mem(struct siw_mr *mr, struct ib_pd *pd, void *mem_obj, in siw_mr_add_mem() argument 100 mem->mem_obj = mem_obj; in siw_mr_add_mem() 146 if (!mem->is_mw && mem->mem_obj) { in siw_free_mem()
|
D | siw_mem.h | 22 int siw_mr_add_mem(struct siw_mr *mr, struct ib_pd *pd, void *mem_obj,
|
D | siw_qp_rx.c | 488 if (mem_p->mem_obj == NULL) in siw_proc_send() 601 if (mem->mem_obj == NULL) in siw_proc_write() 853 if (mem_p->mem_obj == NULL) in siw_proc_rresp()
|
D | siw_qp_tx.c | 57 if (!mem->mem_obj) { in siw_try_1seg() 463 is_kva = mem->mem_obj == NULL ? 1 : 0; in siw_tx_hdt()
|
D | siw.h | 159 void *mem_obj; member
|