Lines Matching refs:pqn
38 struct process_queue_node *pqn; in kfd_dbg_ev_query_debug_event() local
51 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_ev_query_debug_event()
54 if (!pqn->q) in kfd_dbg_ev_query_debug_event()
57 tmp &= pqn->q->properties.exception_status; in kfd_dbg_ev_query_debug_event()
62 *event_status = pqn->q->properties.exception_status; in kfd_dbg_ev_query_debug_event()
63 *queue_id = pqn->q->properties.queue_id; in kfd_dbg_ev_query_debug_event()
64 *gpu_id = pqn->q->device->id; in kfd_dbg_ev_query_debug_event()
65 pqn->q->properties.exception_status &= ~exception_clear_mask; in kfd_dbg_ev_query_debug_event()
118 struct process_queue_node *pqn; in kfd_dbg_ev_raise() local
160 list_for_each_entry(pqn, &pqm->queues, in kfd_dbg_ev_raise()
164 if (!pqn->q) in kfd_dbg_ev_raise()
168 pqn->q->properties.queue_id : in kfd_dbg_ev_raise()
169 pqn->q->doorbell_id; in kfd_dbg_ev_raise()
171 if (pqn->q->device != dev || target_id != source_id) in kfd_dbg_ev_raise()
174 pqn->q->properties.exception_status |= event_mask; in kfd_dbg_ev_raise()
215 struct process_queue_node *pqn; in kfd_set_dbg_ev_from_interrupt() local
222 list_for_each_entry(pqn, &pqm->queues, in kfd_set_dbg_ev_from_interrupt()
225 if (!(pqn->q && pqn->q->device == dev && in kfd_set_dbg_ev_from_interrupt()
226 pqn->q->doorbell_id == doorbell_id)) in kfd_set_dbg_ev_from_interrupt()
229 kfd_send_exception_to_runtime(p, pqn->q->properties.queue_id, in kfd_set_dbg_ev_from_interrupt()
324 struct process_queue_node *pqn; in kfd_dbg_set_workaround() local
327 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_set_workaround()
328 r = kfd_dbg_set_queue_workaround(pqn->q, enable); in kfd_dbg_set_workaround()
336 list_for_each_entry(pqn, &pqm->queues, process_queue_list) in kfd_dbg_set_workaround()
337 kfd_dbg_set_queue_workaround(pqn->q, false); in kfd_dbg_set_workaround()
612 struct process_queue_node *pqn; in kfd_dbg_clean_exception_status() local
624 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_clean_exception_status()
625 if (!pqn->q) in kfd_dbg_clean_exception_status()
628 pqn->q->properties.exception_status = 0; in kfd_dbg_clean_exception_status()
1091 struct process_queue_node *pqn; in kfd_dbg_set_enabled_debug_exception_mask() local
1101 list_for_each_entry(pqn, &pqm->queues, process_queue_list) { in kfd_dbg_set_enabled_debug_exception_mask()
1102 if (!pqn->q) in kfd_dbg_set_enabled_debug_exception_mask()
1105 found_mask |= pqn->q->properties.exception_status; in kfd_dbg_set_enabled_debug_exception_mask()