Lines Matching refs:qid
32 struct process_queue_manager *pqm, unsigned int qid) in get_queue_by_qid() argument
37 if ((pqn->q && pqn->q->properties.queue_id == qid) || in get_queue_by_qid()
38 (pqn->kq && pqn->kq->queue->properties.queue_id == qid)) in get_queue_by_qid()
46 unsigned int *qid) in find_available_queue_slot() argument
62 *qid = found; in find_available_queue_slot()
78 int pqm_set_gws(struct process_queue_manager *pqm, unsigned int qid, in pqm_set_gws() argument
87 pqn = get_queue_by_qid(pqm, qid); in pqm_set_gws()
169 struct file *f, unsigned int qid) in init_user_queue() argument
178 q_properties->queue_id = qid; in init_user_queue()
196 unsigned int *qid, in pqm_create_queue() argument
228 retval = find_available_queue_slot(pqm, qid); in pqm_create_queue()
251 retval = init_user_queue(pqm, dev, &q, properties, f, *qid); in pqm_create_queue()
271 retval = init_user_queue(pqm, dev, &q, properties, f, *qid); in pqm_create_queue()
285 kq->queue->properties.queue_id = *qid; in pqm_create_queue()
333 clear_bit(*qid, pqm->queue_slot_bitmap); in pqm_create_queue()
340 int pqm_destroy_queue(struct process_queue_manager *pqm, unsigned int qid) in pqm_destroy_queue() argument
352 pqn = get_queue_by_qid(pqm, qid); in pqm_destroy_queue()
404 clear_bit(qid, pqm->queue_slot_bitmap); in pqm_destroy_queue()
414 int pqm_update_queue(struct process_queue_manager *pqm, unsigned int qid, in pqm_update_queue() argument
420 pqn = get_queue_by_qid(pqm, qid); in pqm_update_queue()
422 pr_debug("No queue %d exists for update operation\n", qid); in pqm_update_queue()
439 int pqm_set_cu_mask(struct process_queue_manager *pqm, unsigned int qid, in pqm_set_cu_mask() argument
445 pqn = get_queue_by_qid(pqm, qid); in pqm_set_cu_mask()
447 pr_debug("No queue %d exists for update operation\n", qid); in pqm_set_cu_mask()
469 unsigned int qid) in pqm_get_kernel_queue() argument
473 pqn = get_queue_by_qid(pqm, qid); in pqm_get_kernel_queue()
481 unsigned int qid) in pqm_get_user_queue() argument
485 pqn = get_queue_by_qid(pqm, qid); in pqm_get_user_queue()
490 unsigned int qid, in pqm_get_wave_state() argument
497 pqn = get_queue_by_qid(pqm, qid); in pqm_get_wave_state()
500 qid); in pqm_get_wave_state()