Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/amdkfd/
Dkfd_mqd_manager.c51 struct kfd_mem_obj *mqd_mem_obj; in allocate_hiq_mqd() local
53 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_hiq_mqd()
54 if (!mqd_mem_obj) in allocate_hiq_mqd()
57 mqd_mem_obj->gtt_mem = dev->dqm->hiq_sdma_mqd.gtt_mem; in allocate_hiq_mqd()
58 mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr; in allocate_hiq_mqd()
59 mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; in allocate_hiq_mqd()
61 return mqd_mem_obj; in allocate_hiq_mqd()
67 struct kfd_mem_obj *mqd_mem_obj; in allocate_sdma_mqd() local
70 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_sdma_mqd()
71 if (!mqd_mem_obj) in allocate_sdma_mqd()
[all …]
Dkfd_mqd_manager_cik.c79 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
82 &mqd_mem_obj)) in allocate_mqd()
85 return mqd_mem_obj; in allocate_mqd()
89 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
95 m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
96 addr = mqd_mem_obj->gpu_addr; in init_mqd()
143 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_sdma() argument
148 m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; in init_mqd_sdma()
154 *gart_addr = mqd_mem_obj->gpu_addr; in init_mqd_sdma()
261 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
[all …]
Dkfd_mqd_manager_v9.c114 struct kfd_mem_obj *mqd_mem_obj = NULL; in allocate_mqd() local
133 mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); in allocate_mqd()
134 if (!mqd_mem_obj) in allocate_mqd()
140 &(mqd_mem_obj->gtt_mem), in allocate_mqd()
141 &(mqd_mem_obj->gpu_addr), in allocate_mqd()
142 (void *)&(mqd_mem_obj->cpu_ptr), true); in allocate_mqd()
145 kfree(mqd_mem_obj); in allocate_mqd()
150 &mqd_mem_obj); in allocate_mqd()
155 return mqd_mem_obj; in allocate_mqd()
159 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
[all …]
Dkfd_mqd_manager_v10.c79 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
82 &mqd_mem_obj)) in allocate_mqd()
85 return mqd_mem_obj; in allocate_mqd()
89 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
95 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
96 addr = mqd_mem_obj->gpu_addr; in init_mqd()
282 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
290 m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
291 addr = mqd_mem_obj->gpu_addr; in restore_mqd()
309 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
[all …]
Dkfd_mqd_manager_vi.c82 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
85 &mqd_mem_obj)) in allocate_mqd()
88 return mqd_mem_obj; in allocate_mqd()
92 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
98 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
99 addr = mqd_mem_obj->gpu_addr; in init_mqd()
293 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
301 m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
302 addr = mqd_mem_obj->gpu_addr; in restore_mqd()
320 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
[all …]
Dkfd_mqd_manager.h75 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr,
93 struct kfd_mem_obj *mqd_mem_obj);
113 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr,
137 struct kfd_mem_obj *mqd_mem_obj);
152 struct kfd_mem_obj *mqd_mem_obj);
171 struct kfd_mem_obj *mqd_mem_obj, uint32_t virtual_xcc_id);
Dkfd_mqd_manager_v11.c105 struct kfd_mem_obj *mqd_mem_obj; in allocate_mqd() local
117 if (kfd_gtt_sa_allocate(node, size, &mqd_mem_obj)) in allocate_mqd()
120 return mqd_mem_obj; in allocate_mqd()
124 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd() argument
132 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in init_mqd()
133 addr = mqd_mem_obj->gpu_addr; in init_mqd()
335 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in restore_mqd() argument
343 m = (struct v11_compute_mqd *) mqd_mem_obj->cpu_ptr; in restore_mqd()
344 addr = mqd_mem_obj->gpu_addr; in restore_mqd()
363 struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, in init_mqd_hiq() argument
[all …]
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.c585 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_nocpsch()
588 if (!q->mqd_mem_obj) { in create_queue_nocpsch()
594 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_nocpsch()
598 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_nocpsch()
633 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in create_queue_nocpsch()
845 mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); in destroy_queue_nocpsch()
1813 q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); in create_queue_cpsch()
1814 if (!q->mqd_mem_obj) { in create_queue_cpsch()
1830 mqd_mgr->restore_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, &q->gart_mqd_addr, in create_queue_cpsch()
1834 mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, in create_queue_cpsch()
[all …]
Dkfd_priv.h583 struct kfd_mem_obj *mqd_mem_obj; member