pqn 34 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 36 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry(pqn, &pqm->queues, process_queue_list) { pqn 37 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if ((pqn->q && pqn->q->properties.queue_id == qid) || pqn 38 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c (pqn->kq && pqn->kq->queue->properties.queue_id == qid)) pqn 39 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c return pqn; pqn 82 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 87 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 88 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 93 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q) pqn 94 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev = pqn->q->device; pqn 116 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->gws); pqn 120 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->gws = mem; pqn 123 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c return pqn->q->device->dqm->ops.update_queue(pqn->q->device->dqm, pqn 124 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q); pqn 150 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn, *next; pqn 152 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry_safe(pqn, next, &pqm->queues, process_queue_list) { pqn 153 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q && pqn->q->gws) pqn 155 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->gws); pqn 156 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c uninit_queue(pqn->q); pqn 157 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_del(&pqn->process_queue_list); pqn 158 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqn); pqn 200 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 234 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = kzalloc(sizeof(*pqn), GFP_KERNEL); pqn 235 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 256 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q = q; pqn 257 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->kq = NULL; pqn 277 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q = q; pqn 278 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->kq = NULL; pqn 290 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->kq = kq; pqn 291 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q = NULL; pqn 317 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_add(&pqn->process_queue_list, &pqm->queues); pqn 327 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqn); pqn 339 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 349 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 350 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 356 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->kq) pqn 357 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev = pqn->kq->dev; pqn 358 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q) pqn 359 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dev = pqn->q->device; pqn 369 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->kq) { pqn 371 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dqm = pqn->kq->dev->dqm; pqn 372 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dqm->ops.destroy_kernel_queue(dqm, pqn->kq, &pdd->qpd); pqn 373 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kernel_queue_uninit(pqn->kq); pqn 376 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q) { pqn 377 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c dqm = pqn->q->device->dqm; pqn 378 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = dqm->ops.destroy_queue(dqm, &pdd->qpd, pqn->q); pqn 382 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.queue_id, retval); pqn 387 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q->gws) { pqn 389 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->gws); pqn 393 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqn->q->properties.cu_mask); pqn 394 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.cu_mask = NULL; pqn 395 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c uninit_queue(pqn->q); pqn 398 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_del(&pqn->process_queue_list); pqn 399 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqn); pqn 414 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 416 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 417 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 422 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.queue_address = p->queue_address; pqn 423 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.queue_size = p->queue_size; pqn 424 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.queue_percent = p->queue_percent; pqn 425 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.priority = p->priority; pqn 427 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = pqn->q->device->dqm->ops.update_queue(pqn->q->device->dqm, pqn 428 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q); pqn 439 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 441 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 442 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 450 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c kfree(pqn->q->properties.cu_mask); pqn 452 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.cu_mask_count = p->cu_mask_count; pqn 453 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q->properties.cu_mask = p->cu_mask; pqn 455 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c retval = pqn->q->device->dqm->ops.update_queue(pqn->q->device->dqm, pqn 456 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q); pqn 467 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 469 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 470 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn && pqn->kq) pqn 471 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c return pqn->kq; pqn 482 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 484 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn = get_queue_by_qid(pqm, qid); pqn 485 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (!pqn) { pqn 491 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c return pqn->q->device->dqm->ops.get_wave_state(pqn->q->device->dqm, pqn 492 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->q, pqn 503 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c struct process_queue_node *pqn; pqn 509 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c list_for_each_entry(pqn, &pqm->queues, process_queue_list) { pqn 510 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c if (pqn->q) { pqn 511 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c q = pqn->q; pqn 531 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c } else if (pqn->kq) { pqn 532 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c q = pqn->kq->queue; pqn 533 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c mqd_mgr = pqn->kq->mqd_mgr; pqn 537 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->kq->dev->id); pqn 543 drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c pqn->kq->dev->id);