Lines Matching refs:node_id

78 static bool xlnx_is_error_event(const u32 node_id)  in xlnx_is_error_event()  argument
80 if (node_id == EVENT_ERROR_PMC_ERR1 || in xlnx_is_error_event()
81 node_id == EVENT_ERROR_PMC_ERR2 || in xlnx_is_error_event()
82 node_id == EVENT_ERROR_PSM_ERR1 || in xlnx_is_error_event()
83 node_id == EVENT_ERROR_PSM_ERR2) in xlnx_is_error_event()
89 static int xlnx_add_cb_for_notify_event(const u32 node_id, const u32 event, const bool wake, in xlnx_add_cb_for_notify_event() argument
99 key = ((u64)node_id << 32U) | (u64)event; in xlnx_add_cb_for_notify_event()
221 static int xlnx_remove_cb_for_notify_event(const u32 node_id, const u32 event, in xlnx_remove_cb_for_notify_event() argument
226 u64 key = ((u64)node_id << 32U) | (u64)event; in xlnx_remove_cb_for_notify_event()
256 node_id, event); in xlnx_remove_cb_for_notify_event()
277 int xlnx_register_event(const enum pm_api_cb_id cb_type, const u32 node_id, const u32 event, in xlnx_register_event() argument
298 if (!xlnx_is_error_event(node_id)) { in xlnx_register_event()
300 ret = xlnx_add_cb_for_notify_event(node_id, event, wake, cb_fun, data); in xlnx_register_event()
309 ret = xlnx_add_cb_for_notify_event(node_id, eve, wake, cb_fun, in xlnx_register_event()
323 xlnx_remove_cb_for_notify_event(node_id, eve, cb_fun, data); in xlnx_register_event()
329 pr_err("%s() failed for 0x%x and 0x%x: %d\r\n", __func__, node_id, in xlnx_register_event()
335 ret = zynqmp_pm_register_notifier(node_id, event, wake, true); in xlnx_register_event()
337 pr_err("%s() failed for 0x%x and 0x%x: %d\r\n", __func__, node_id, in xlnx_register_event()
340 if (xlnx_is_error_event(node_id)) { in xlnx_register_event()
345 xlnx_remove_cb_for_notify_event(node_id, eve, cb_fun, data); in xlnx_register_event()
348 xlnx_remove_cb_for_notify_event(node_id, event, cb_fun, data); in xlnx_register_event()
370 int xlnx_unregister_event(const enum pm_api_cb_id cb_type, const u32 node_id, const u32 event, in xlnx_unregister_event() argument
393 if (!xlnx_is_error_event(node_id)) { in xlnx_unregister_event()
394 xlnx_remove_cb_for_notify_event(node_id, event, cb_fun, data); in xlnx_unregister_event()
401 xlnx_remove_cb_for_notify_event(node_id, eve, cb_fun, data); in xlnx_unregister_event()
408 ret = zynqmp_pm_register_notifier(node_id, event, false, false); in xlnx_unregister_event()
411 __func__, node_id, event, ret); in xlnx_unregister_event()
487 u32 cb_type, node_id, event, pos; in xlnx_event_handler() local
498 node_id = payload[1]; in xlnx_event_handler()
500 if (!xlnx_is_error_event(node_id)) { in xlnx_event_handler()