Lines Matching refs:event_mask
1007 u64 event_mask = HL_NOTIFIER_EVENT_DEVICE_RESET | HL_NOTIFIER_EVENT_DEVICE_UNAVAILABLE; in hl_device_heartbeat() local
1020 info.event_mask = &event_mask; in hl_device_heartbeat()
1022 hl_device_cond_reset(hdev, HL_DRV_RESET_HARD | HL_DRV_RESET_HEARTBEAT, event_mask); in hl_device_heartbeat()
1907 int hl_device_cond_reset(struct hl_device *hdev, u32 flags, u64 event_mask) in hl_device_cond_reset() argument
1916 if (!(event_mask & HL_NOTIFIER_EVENT_DEVICE_RESET)) { in hl_device_cond_reset()
1946 hl_notifier_event_send_all(hdev, event_mask); in hl_device_cond_reset()
1955 if (event_mask) in hl_device_cond_reset()
1956 hl_notifier_event_send_all(hdev, event_mask); in hl_device_cond_reset()
1963 static void hl_notifier_event_send(struct hl_notifier_event *notifier_event, u64 event_mask) in hl_notifier_event_send() argument
1966 notifier_event->events_mask |= event_mask; in hl_notifier_event_send()
1981 void hl_notifier_event_send_all(struct hl_device *hdev, u64 event_mask) in hl_notifier_event_send_all() argument
1985 if (!event_mask) { in hl_notifier_event_send_all()
1993 hl_notifier_event_send(&hpriv->notifier_event, event_mask); in hl_notifier_event_send_all()
2001 hl_notifier_event_send(&hpriv->notifier_event, event_mask); in hl_notifier_event_send_all()
2555 u8 flags, u64 *event_mask) in hl_handle_razwi() argument
2559 if (event_mask) in hl_handle_razwi()
2560 *event_mask |= HL_NOTIFIER_EVENT_RAZWI; in hl_handle_razwi()
2642 u64 *event_mask) in hl_handle_page_fault() argument
2646 if (event_mask) in hl_handle_page_fault()
2647 *event_mask |= HL_NOTIFIER_EVENT_PAGE_FAULT; in hl_handle_page_fault()
2664 void hl_handle_critical_hw_err(struct hl_device *hdev, u16 event_id, u64 *event_mask) in hl_handle_critical_hw_err() argument
2668 if (event_mask) in hl_handle_critical_hw_err()
2669 *event_mask |= HL_NOTIFIER_EVENT_CRITICL_HW_ERR; in hl_handle_critical_hw_err()
2692 if (info->event_mask) in hl_handle_fw_err()
2693 *info->event_mask |= HL_NOTIFIER_EVENT_CRITICL_FW_ERR; in hl_handle_fw_err()