Home
last modified time | relevance | path

Searched refs:mem_obj (Results 1 – 10 of 10) sorted by relevance

/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_device.c1185 struct kfd_mem_obj **mem_obj) in kfd_gtt_sa_allocate() argument
1196 *mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in kfd_gtt_sa_allocate()
1197 if (!(*mem_obj)) in kfd_gtt_sa_allocate()
1200 pr_debug("Allocated mem_obj = %p for size = %d\n", *mem_obj, size); in kfd_gtt_sa_allocate()
1219 (*mem_obj)->range_start = found; in kfd_gtt_sa_allocate()
1220 (*mem_obj)->range_end = found; in kfd_gtt_sa_allocate()
1221 (*mem_obj)->gpu_addr = kfd_gtt_sa_calc_gpu_addr( in kfd_gtt_sa_allocate()
1225 (*mem_obj)->cpu_ptr = kfd_gtt_sa_calc_cpu_addr( in kfd_gtt_sa_allocate()
1231 (uint64_t *) (*mem_obj)->gpu_addr, (*mem_obj)->cpu_ptr); in kfd_gtt_sa_allocate()
1243 (*mem_obj)->range_end = in kfd_gtt_sa_allocate()
[all …]
Dkfd_priv.h1096 struct kfd_mem_obj **mem_obj);
1098 int kfd_gtt_sa_free(struct kfd_node *node, struct kfd_mem_obj *mem_obj);
Dkfd_device_queue_manager.c2467 struct kfd_mem_obj *mem_obj = &dqm->hiq_sdma_mqd; in allocate_hiq_sdma_mqd() local
2475 &(mem_obj->gtt_mem), &(mem_obj->gpu_addr), in allocate_hiq_sdma_mqd()
2476 (void *)&(mem_obj->cpu_ptr), false); in allocate_hiq_sdma_mqd()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd.c267 void **mem_obj, uint64_t *gpu_addr, in amdgpu_amdkfd_alloc_gtt_mem() argument
320 *mem_obj = bo; in amdgpu_amdkfd_alloc_gtt_mem()
338 void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void *mem_obj) in amdgpu_amdkfd_free_gtt_mem() argument
340 struct amdgpu_bo *bo = (struct amdgpu_bo *) mem_obj; in amdgpu_amdkfd_free_gtt_mem()
350 void **mem_obj) in amdgpu_amdkfd_alloc_gws() argument
374 *mem_obj = bo; in amdgpu_amdkfd_alloc_gws()
378 void amdgpu_amdkfd_free_gws(struct amdgpu_device *adev, void *mem_obj) in amdgpu_amdkfd_free_gws() argument
380 struct amdgpu_bo *bo = (struct amdgpu_bo *)mem_obj; in amdgpu_amdkfd_free_gws()
Damdgpu_amdkfd.h222 void **mem_obj, uint64_t *gpu_addr,
224 void amdgpu_amdkfd_free_gtt_mem(struct amdgpu_device *adev, void *mem_obj);
226 void **mem_obj);
227 void amdgpu_amdkfd_free_gws(struct amdgpu_device *adev, void *mem_obj);
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_mem.c89 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()
Dsiw_mem.h22 int siw_mr_add_mem(struct siw_mr *mr, struct ib_pd *pd, void *mem_obj,
Dsiw_qp_rx.c488 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()
Dsiw_qp_tx.c57 if (!mem->mem_obj) { in siw_try_1seg()
475 is_kva = mem->mem_obj == NULL ? 1 : 0; in siw_tx_hdt()
Dsiw.h160 void *mem_obj; member