pqm 289 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c err = pqm_create_queue(&p->pqm, dev, filep, &q_properties, &queue_id); pqm 341 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c retval = pqm_destroy_queue(&p->pqm, args->queue_id); pqm 386 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c retval = pqm_update_queue(&p->pqm, args->queue_id, &properties); pqm 438 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c retval = pqm_set_cu_mask(&p->pqm, args->queue_id, &properties); pqm 456 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c r = pqm_get_wave_state(&p->pqm, args->queue_id, pqm 187 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c status = pqm_create_queue(dbgdev->pqm, dbgdev->dev, NULL, pqm 197 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c kq = pqm_get_kernel_queue(dbgdev->pqm, qid); pqm 201 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pqm_destroy_queue(dbgdev->pqm, qid); pqm 222 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c status = pqm_destroy_queue(dbgdev->pqm, pqm 827 drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c pdbgdev->pqm = NULL; pqm 108 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c pmgr->dbgdev->pqm = &p->pqm; pqm 262 drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.h struct process_queue_manager *pqm; pqm 470 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c qpd->pqm->process); pqm 1623 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c dbgdev_wave_reset_wavefronts(dqm->dev, qpd->pqm->process); pqm 134 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c if (qpd->pqm->process->is_32bit_user_mode) { pqm 145 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c qpd->pqm->process->is_32bit_user_mode, temp, qpd->sh_mem_bases); pqm 175 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c qpd->pqm->process->is_32bit_user_mode, temp, qpd->sh_mem_bases); pqm 174 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c if (qpd->pqm->process->is_32bit_user_mode) { pqm 189 drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c qpd->pqm->process->is_32bit_user_mode, temp, qpd->sh_mem_bases); pqm 84 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v10.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pqm 83 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_v9.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pqm 95 drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c packet->bitfields2.pasid = qpd->pqm->process->pasid; pqm 546 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct process_queue_manager *pqm; pqm 699 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct process_queue_manager pqm; pqm 900 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_init(struct process_queue_manager *pqm, struct kfd_process *p); pqm 901 drivers/gpu/drm/amd/amdkfd/kfd_priv.h void pqm_uninit(struct process_queue_manager *pqm); pqm 902 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_create_queue(struct process_queue_manager *pqm, pqm 907 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_destroy_queue(struct process_queue_manager *pqm, unsigned int qid); pqm 908 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_update_queue(struct process_queue_manager *pqm, unsigned int qid, pqm 910 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_set_cu_mask(struct process_queue_manager *pqm, unsigned int qid, pqm 912 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_set_gws(struct process_queue_manager *pqm, unsigned int qid, pqm 914 drivers/gpu/drm/amd/amdkfd/kfd_priv.h struct kernel_queue *pqm_get_kernel_queue(struct process_queue_manager *pqm, pqm 916 drivers/gpu/drm/amd/amdkfd/kfd_priv.h int pqm_get_wave_state(struct process_queue_manager *pqm, pqm 536 drivers/gpu/drm/amd/amdkfd/kfd_process.c pqm_uninit(&p->pqm); pqm 649 drivers/gpu/drm/amd/amdkfd/kfd_process.c err = pqm_init(&process->pqm, process); pqm 674 drivers/gpu/drm/amd/amdkfd/kfd_process.c pqm_uninit(&process->pqm); pqm 746 drivers/gpu/drm/amd/amdkfd/kfd_process.c pdd->qpd.pqm = &p->pqm; pqm 1178 drivers/gpu/drm/amd/amdkfd/kfd_process.c r = pqm_debugfs_mqds(m, &p->pqm); pqm 32 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_manager *pqm, unsigned int qid) pqm 36 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry(pqn, &pqm->queues, process_queue_list) { pqm 45 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c static int find_available_queue_slot(struct process_queue_manager *pqm, pqm 50 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c found = find_first_zero_bit(pqm->queue_slot_bitmap, pqm 57 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid); pqm 61 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c set_bit(found, pqm->queue_slot_bitmap); pqm 78 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_set_gws(struct process_queue_manager *pqm, unsigned int qid, pqm 87 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 98 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pqm 135 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_init(struct process_queue_manager *pqm, struct kfd_process *p) pqm 137 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c INIT_LIST_HEAD(&pqm->queues); pqm 138 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->queue_slot_bitmap = pqm 141 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqm->queue_slot_bitmap) pqm 143 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process = p; pqm 148 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c void pqm_uninit(struct process_queue_manager *pqm) pqm 152 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry_safe(pqn, next, &pqm->queues, process_queue_list) { pqm 154 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c amdgpu_amdkfd_remove_gws_from_process(pqm->process->kgd_process_info, pqm 161 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqm->queue_slot_bitmap); pqm 162 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->queue_slot_bitmap = NULL; pqm 165 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c static int create_cp_queue(struct process_queue_manager *pqm, pqm 184 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c (*q)->process = pqm->process; pqm 191 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_create_queue(struct process_queue_manager *pqm, pqm 208 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pqm 226 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = find_available_queue_slot(pqm, qid); pqm 253 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); pqm 274 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = create_cp_queue(pqm, dev, &q, properties, f, *qid); pqm 302 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid, type, retval); pqm 317 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_add(&pqn->process_queue_list, &pqm->queues); pqm 330 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c clear_bit(*qid, pqm->queue_slot_bitmap); pqm 337 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_destroy_queue(struct process_queue_manager *pqm, unsigned int qid) pqm 349 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 363 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pdd = kfd_get_process_device_data(dev, pqm->process); pqm 381 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqm->process->pasid, pqm 388 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c amdgpu_amdkfd_remove_gws_from_process(pqm->process->kgd_process_info, pqm 400 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c clear_bit(qid, pqm->queue_slot_bitmap); pqm 410 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_update_queue(struct process_queue_manager *pqm, unsigned int qid, pqm 416 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 435 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_set_cu_mask(struct process_queue_manager *pqm, unsigned int qid, pqm 441 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 464 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_manager *pqm, pqm 469 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 476 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c int pqm_get_wave_state(struct process_queue_manager *pqm, pqm 484 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqm 502 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_manager *pqm = data; pqm 509 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry(pqn, &pqm->queues, process_queue_list) {