Lines Matching refs:event_num
52 u32 event_num; member
164 static struct sdei_event *sdei_event_find(u32 event_num) in sdei_event_find() argument
172 if (e->event_num == event_num) { in sdei_event_find()
195 static struct sdei_event *sdei_event_create(u32 event_num, in sdei_event_create() argument
213 event->event_num = event_num; in sdei_event_create()
215 err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_PRIORITY, in sdei_event_create()
221 err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_TYPE, in sdei_event_create()
234 reg->event_num = event->event_num; in sdei_event_create()
253 reg->event_num = event->event_num; in sdei_event_create()
380 static int sdei_api_event_enable(u32 event_num) in sdei_api_event_enable() argument
382 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_ENABLE, event_num, 0, 0, 0, in sdei_api_event_enable()
394 err = sdei_api_event_enable(arg->event->event_num); in _local_event_enable()
399 int sdei_event_enable(u32 event_num) in sdei_event_enable() argument
405 event = sdei_event_find(event_num); in sdei_event_enable()
414 err = sdei_api_event_enable(event->event_num); in sdei_event_enable()
429 static int sdei_api_event_disable(u32 event_num) in sdei_api_event_disable() argument
431 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_DISABLE, event_num, 0, 0, in sdei_api_event_disable()
440 err = sdei_api_event_disable(arg->event->event_num); in _ipi_event_disable()
445 int sdei_event_disable(u32 event_num) in sdei_event_disable() argument
451 event = sdei_event_find(event_num); in sdei_event_disable()
462 err = sdei_api_event_disable(event->event_num); in sdei_event_disable()
470 static int sdei_api_event_unregister(u32 event_num) in sdei_api_event_unregister() argument
472 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_UNREGISTER, event_num, 0, in sdei_api_event_unregister()
484 err = sdei_api_event_unregister(arg->event->event_num); in _local_event_unregister()
489 int sdei_event_unregister(u32 event_num) in sdei_event_unregister() argument
497 event = sdei_event_find(event_num); in sdei_event_unregister()
499 pr_warn("Event %u not registered\n", event_num); in sdei_event_unregister()
510 err = sdei_api_event_unregister(event->event_num); in sdei_event_unregister()
539 err = sdei_api_event_unregister(event->event_num); in sdei_unregister_shared()
549 static int sdei_api_event_register(u32 event_num, unsigned long entry_point, in sdei_api_event_register() argument
552 return invoke_sdei_fn(SDEI_1_0_FN_SDEI_EVENT_REGISTER, event_num, in sdei_api_event_register()
567 err = sdei_api_event_register(arg->event->event_num, sdei_entry_point, in _local_event_register()
573 int sdei_event_register(u32 event_num, sdei_event_callback *cb, void *arg) in sdei_event_register() argument
581 if (sdei_event_find(event_num)) { in sdei_event_register()
582 pr_warn("Event %u already registered\n", event_num); in sdei_event_register()
587 event = sdei_event_create(event_num, cb, arg); in sdei_event_register()
590 pr_warn("Failed to create event %u: %d\n", event_num, err); in sdei_event_register()
596 err = sdei_api_event_register(event->event_num, in sdei_event_register()
608 pr_warn("Failed to register event %u: %d\n", event_num, err); in sdei_event_register()
634 err = sdei_api_event_register(event->event_num, in sdei_reregister_shared()
639 event->event_num); in sdei_reregister_shared()
646 err = sdei_api_event_enable(event->event_num); in sdei_reregister_shared()
649 event->event_num); in sdei_reregister_shared()
674 event->event_num, err); in sdei_cpuhp_down()
697 event->event_num, err); in sdei_cpuhp_up()
705 event->event_num, err); in sdei_cpuhp_up()
860 u32 event_num; in sdei_register_ghes() local
866 event_num = ghes->generic->notify.vector; in sdei_register_ghes()
867 if (event_num == 0) { in sdei_register_ghes()
875 err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_PRIORITY, in sdei_register_ghes()
885 err = sdei_event_register(event_num, cb, ghes); in sdei_register_ghes()
887 err = sdei_event_enable(event_num); in sdei_register_ghes()
896 u32 event_num = ghes->generic->notify.vector; in sdei_unregister_ghes() local
907 err = sdei_event_disable(event_num); in sdei_unregister_ghes()
912 err = sdei_event_unregister(event_num); in sdei_unregister_ghes()
1085 u32 event_num = arg->event_num; in sdei_event_handler() local
1087 err = arg->callback(event_num, regs, arg->callback_arg); in sdei_event_handler()
1090 event_num, smp_processor_id(), err); in sdei_event_handler()