Lines Matching refs:pqn

39 	struct process_queue_node *pqn;  in kfd_dbg_ev_query_debug_event()  local
52 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_ev_query_debug_event()
55 if (!pqn->q) in kfd_dbg_ev_query_debug_event()
58 tmp &= pqn->q->properties.exception_status; in kfd_dbg_ev_query_debug_event()
63 *event_status = pqn->q->properties.exception_status; in kfd_dbg_ev_query_debug_event()
64 *queue_id = pqn->q->properties.queue_id; in kfd_dbg_ev_query_debug_event()
65 *gpu_id = pqn->q->device->id; in kfd_dbg_ev_query_debug_event()
66 pqn->q->properties.exception_status &= ~exception_clear_mask; in kfd_dbg_ev_query_debug_event()
120 struct process_queue_node *pqn; in kfd_dbg_ev_raise() local
162 list_for_each_entry(pqn, &pqm->queues, in kfd_dbg_ev_raise()
166 if (!pqn->q) in kfd_dbg_ev_raise()
170 pqn->q->properties.queue_id : in kfd_dbg_ev_raise()
171 pqn->q->doorbell_id; in kfd_dbg_ev_raise()
173 if (pqn->q->device != dev || target_id != source_id) in kfd_dbg_ev_raise()
176 pqn->q->properties.exception_status |= event_mask; in kfd_dbg_ev_raise()
218 struct process_queue_node *pqn; in kfd_set_dbg_ev_from_interrupt() local
225 list_for_each_entry(pqn, &pqm->queues, in kfd_set_dbg_ev_from_interrupt()
228 if (!(pqn->q && pqn->q->device == dev && in kfd_set_dbg_ev_from_interrupt()
229 pqn->q->doorbell_id == doorbell_id)) in kfd_set_dbg_ev_from_interrupt()
232 kfd_send_exception_to_runtime(p, pqn->q->properties.queue_id, in kfd_set_dbg_ev_from_interrupt()
326 struct process_queue_node *pqn; in kfd_dbg_set_workaround() local
329 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_set_workaround()
330 r = kfd_dbg_set_queue_workaround(pqn->q, enable); in kfd_dbg_set_workaround()
338 list_for_each_entry(pqn, &pqm->queues, process_queue_list) in kfd_dbg_set_workaround()
339 kfd_dbg_set_queue_workaround(pqn->q, false); in kfd_dbg_set_workaround()
641 struct process_queue_node *pqn; in kfd_dbg_clean_exception_status() local
653 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_clean_exception_status()
654 if (!pqn->q) in kfd_dbg_clean_exception_status()
657 pqn->q->properties.exception_status = 0; in kfd_dbg_clean_exception_status()
1123 struct process_queue_node *pqn; in kfd_dbg_set_enabled_debug_exception_mask() local
1133 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_set_enabled_debug_exception_mask()
1134 if (!pqn->q) in kfd_dbg_set_enabled_debug_exception_mask()
1137 found_mask |= pqn->q->properties.exception_status; in kfd_dbg_set_enabled_debug_exception_mask()