mqd_mem_obj 324 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); mqd_mem_obj 327 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c if (!q->mqd_mem_obj) { mqd_mem_obj 331 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, mqd_mem_obj 365 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); mqd_mem_obj 459 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); mqd_mem_obj 1166 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c q->mqd_mem_obj = mqd_mgr->allocate_mqd(mqd_mgr->dev, &q->properties); mqd_mem_obj 1167 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c if (!q->mqd_mem_obj) { mqd_mem_obj 1179 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->init_mqd(mqd_mgr, &q->mqd, q->mqd_mem_obj, mqd_mem_obj 1395 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); mqd_mem_obj 1643 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c mqd_mgr->free_mqd(mqd_mgr, q->mqd, q->mqd_mem_obj); mqd_mem_obj 135 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c kq->queue->mqd_mem_obj = kq->mqd_mgr->allocate_mqd(kq->mqd_mgr->dev, mqd_mem_obj 137 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c if (!kq->queue->mqd_mem_obj) mqd_mem_obj 140 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c kq->queue->mqd_mem_obj, mqd_mem_obj 168 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c kq->mqd_mgr->free_mqd(kq->mqd_mgr, kq->queue->mqd, kq->queue->mqd_mem_obj); mqd_mem_obj 199 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c kq->queue->mqd_mem_obj); mqd_mem_obj 50 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c struct kfd_mem_obj *mqd_mem_obj = NULL; mqd_mem_obj 52 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); mqd_mem_obj 53 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c if (!mqd_mem_obj) mqd_mem_obj 56 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->gtt_mem = dev->dqm->hiq_sdma_mqd.gtt_mem; mqd_mem_obj 57 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr; mqd_mem_obj 58 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->cpu_ptr = dev->dqm->hiq_sdma_mqd.cpu_ptr; mqd_mem_obj 60 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c return mqd_mem_obj; mqd_mem_obj 66 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c struct kfd_mem_obj *mqd_mem_obj = NULL; mqd_mem_obj 69 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_KERNEL); mqd_mem_obj 70 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c if (!mqd_mem_obj) mqd_mem_obj 80 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->gtt_mem = (void *)((uint64_t)dev->dqm->hiq_sdma_mqd.gtt_mem mqd_mem_obj 82 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->gpu_addr = dev->dqm->hiq_sdma_mqd.gpu_addr + offset; mqd_mem_obj 83 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c mqd_mem_obj->cpu_ptr = (uint32_t *)((uint64_t) mqd_mem_obj 86 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c return mqd_mem_obj; mqd_mem_obj 90 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c struct kfd_mem_obj *mqd_mem_obj) mqd_mem_obj 92 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c WARN_ON(!mqd_mem_obj->gtt_mem); mqd_mem_obj 93 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c kfree(mqd_mem_obj); mqd_mem_obj 73 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 90 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h struct kfd_mem_obj *mqd_mem_obj); mqd_mem_obj 116 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h struct kfd_mem_obj *mqd_mem_obj); mqd_mem_obj 78 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c struct kfd_mem_obj *mqd_mem_obj; mqd_mem_obj 81 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c &mqd_mem_obj)) mqd_mem_obj 84 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c return mqd_mem_obj; mqd_mem_obj 88 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 94 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c m = (struct cik_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 95 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 142 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 147 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c m = (struct cik_sdma_rlc_registers *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 153 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c *gart_addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 159 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c struct kfd_mem_obj *mqd_mem_obj) mqd_mem_obj 161 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c kfd_gtt_sa_free(mm->dev, mqd_mem_obj); mqd_mem_obj 307 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 310 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); mqd_mem_obj 73 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c struct kfd_mem_obj *mqd_mem_obj = NULL; mqd_mem_obj 80 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_NOIO); mqd_mem_obj 81 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c if (!mqd_mem_obj) mqd_mem_obj 86 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c &(mqd_mem_obj->gtt_mem), mqd_mem_obj 87 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c &(mqd_mem_obj->gpu_addr), mqd_mem_obj 88 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c (void *)&(mqd_mem_obj->cpu_ptr), true); mqd_mem_obj 91 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c &mqd_mem_obj); mqd_mem_obj 95 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c kfree(mqd_mem_obj); mqd_mem_obj 99 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c return mqd_mem_obj; mqd_mem_obj 104 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 110 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c m = (struct v10_compute_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 111 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 251 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c struct kfd_mem_obj *mqd_mem_obj) mqd_mem_obj 255 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c if (mqd_mem_obj->gtt_mem) { mqd_mem_obj 256 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c amdgpu_amdkfd_free_gtt_mem(kfd->kgd, mqd_mem_obj->gtt_mem); mqd_mem_obj 257 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c kfree(mqd_mem_obj); mqd_mem_obj 259 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c kfd_gtt_sa_free(mm->dev, mqd_mem_obj); mqd_mem_obj 296 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 301 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); mqd_mem_obj 322 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 327 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c m = (struct v10_sdma_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 333 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c *gart_addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 88 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c struct kfd_mem_obj *mqd_mem_obj = NULL; mqd_mem_obj 95 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c mqd_mem_obj = kzalloc(sizeof(struct kfd_mem_obj), GFP_NOIO); mqd_mem_obj 96 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c if (!mqd_mem_obj) mqd_mem_obj 101 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c &(mqd_mem_obj->gtt_mem), mqd_mem_obj 102 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c &(mqd_mem_obj->gpu_addr), mqd_mem_obj 103 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c (void *)&(mqd_mem_obj->cpu_ptr), true); mqd_mem_obj 106 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c &mqd_mem_obj); mqd_mem_obj 110 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c kfree(mqd_mem_obj); mqd_mem_obj 114 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c return mqd_mem_obj; mqd_mem_obj 119 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 125 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c m = (struct v9_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 126 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 270 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c struct kfd_mem_obj *mqd_mem_obj) mqd_mem_obj 274 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c if (mqd_mem_obj->gtt_mem) { mqd_mem_obj 275 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c amdgpu_amdkfd_free_gtt_mem(kfd->kgd, mqd_mem_obj->gtt_mem); mqd_mem_obj 276 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c kfree(mqd_mem_obj); mqd_mem_obj 278 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c kfd_gtt_sa_free(mm->dev, mqd_mem_obj); mqd_mem_obj 314 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 319 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); mqd_mem_obj 340 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 345 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c m = (struct v9_sdma_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 351 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c *gart_addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 81 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c struct kfd_mem_obj *mqd_mem_obj; mqd_mem_obj 84 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c &mqd_mem_obj)) mqd_mem_obj 87 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c return mqd_mem_obj; mqd_mem_obj 91 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 97 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c m = (struct vi_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 98 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 263 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c struct kfd_mem_obj *mqd_mem_obj) mqd_mem_obj 265 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c kfd_gtt_sa_free(mm->dev, mqd_mem_obj); mqd_mem_obj 300 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 304 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c init_mqd(mm, mqd, mqd_mem_obj, gart_addr, q); mqd_mem_obj 323 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c struct kfd_mem_obj *mqd_mem_obj, uint64_t *gart_addr, mqd_mem_obj 328 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c m = (struct vi_sdma_mqd *) mqd_mem_obj->cpu_ptr; mqd_mem_obj 334 drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c *gart_addr = mqd_mem_obj->gpu_addr; mqd_mem_obj 492 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct kfd_mem_obj *mqd_mem_obj;