Home
last modified time | relevance | path

Searched refs:mqd_mem_obj (Results 1 – 9 of 9) sorted by relevance

/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c50 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_hiq_mqd() local
52 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_hiq_mqd()
53 if (!mqd_mem_obj) in allocate_hiq_mqd()
56 mqd_mem_obj->gtt_mem = dev->dqm->hiq_sdma_mqd.gtt_mem; in allocate_hiq_mqd()
57 mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr; in allocate_hiq_mqd()
58 mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; in allocate_hiq_mqd()
60 return mqd_mem_obj; in allocate_hiq_mqd()
66 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_sdma_mqd() local
69 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_sdma_mqd()
70 if (!mqd_mem_obj) in allocate_sdma_mqd()
[all …]
Dkfd_mqd_manager_v9.c88 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_mqd() local
107 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_mqd()
108 if (!mqd_mem_obj) in allocate_mqd()
113 &(mqd_mem_obj->gtt_mem), in allocate_mqd()
114 &(mqd_mem_obj->gpu_addr), in allocate_mqd()
115 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd()
118 kfree(mqd_mem_obj); in allocate_mqd()
123 &mqd_mem_obj); in allocate_mqd()
128 return mqd_mem_obj; in allocate_mqd()
132 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
[all …]
Dkfd_mqd_manager_cik.c78 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
81 &mqd_mem_obj)) in allocate_mqd()
84 return mqd_mem_obj; in allocate_mqd()
88 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
94 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
95 addr = mqd_mem_obj->gpu_addr; in init_mqd()
142 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument
147 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
153 *gart_addr = mqd_mem_obj->gpu_addr; in init_mqd_sdma()
159 struct kfd_mem_obj *mqd_mem_obj) in free_mqd() argument
[all …]
Dkfd_mqd_manager_v10.c78 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
81 &mqd_mem_obj)) in allocate_mqd()
84 return mqd_mem_obj; in allocate_mqd()
88 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
94 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
95 addr = mqd_mem_obj->gpu_addr; in init_mqd()
245 struct kfd_mem_obj *mqd_mem_obj) in free_mqd() argument
247 kfd_gtt_sa_free(mm->dev, mqd_mem_obj); in free_mqd()
287 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
292 init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); in init_mqd_hiq()
[all …]
Dkfd_mqd_manager_vi.c81 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
84 &mqd_mem_obj)) in allocate_mqd()
87 return mqd_mem_obj; in allocate_mqd()
91 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
97 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
98 addr = mqd_mem_obj->gpu_addr; in init_mqd()
270 struct kfd_mem_obj *mqd_mem_obj) in free_mqd() argument
272 kfd_gtt_sa_free(mm->dev, mqd_mem_obj); in free_mqd()
307 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
311 init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); in init_mqd_hiq()
[all …]
Dkfd_mqd_manager.h74 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr,
91 struct kfd_mem_obj *mqd_mem_obj);
118 struct kfd_mem_obj *mqd_mem_obj);
Dkfd_kernel_queue.c147 kq->queue->mqd_mem_obj = kq->mqd_mgr->allocate_mqd(kq->mqd_mgr->dev, in kq_initialize()
149 if (!kq->queue->mqd_mem_obj) in kq_initialize()
152 kq->queue->mqd_mem_obj, in kq_initialize()
180 kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, kq->queue->mqd_mem_obj); in kq_initialize()
212 kq->queue->mqd_mem_obj); in kq_uninitialize()
Dkfd_device_queue_manager.c378 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_nocpsch()
381 if (!q->mqd_mem_obj) { in create_queue_nocpsch()
385 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch()
419 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch()
564 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch()
1329 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_cpsch()
1330 if (!q->mqd_mem_obj) { in create_queue_cpsch()
1342 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_cpsch()
1569 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_cpsch()
1671 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in process_termination_nocpsch()
[all …]
Dkfd_priv.h521 struct kfd_mem_obj *mqd_mem_obj; member