/SCP-firmware-master/framework/src/ |
A D | fwk_core.c | 60 void *event, in duplicate_event() argument 66 fwk_assert(event != NULL); in duplicate_event() 98 void *event, in put_event() argument 187 event->cookie, in process_next_event() 188 FWK_ID_STR(event->id), in process_next_event() 237 free_event(event); in process_next_event() 283 for (event = event_table; event < (event_table + event_count); event++) { in __fwk_init() 328 event->is_response = false; in __fwk_put_notification() 350 if (event == NULL) { in __fwk_put_event() 376 if ((!event->is_response) || (event->response_requested)) { in __fwk_put_event() [all …]
|
A D | fwk_delayed_resp.c | 82 struct fwk_event *event) in fwk_get_delayed_response() argument 87 status = check_api_call(id, event); in fwk_get_delayed_response() 98 *event = *delayed_response; in fwk_get_delayed_response() 130 int fwk_get_first_delayed_response(fwk_id_t id, struct fwk_event *event) in fwk_get_first_delayed_response() argument 136 status = check_api_call(id, event); in fwk_get_first_delayed_response() 145 *event = *( in fwk_get_first_delayed_response()
|
/SCP-firmware-master/unit_test/unity_mocks/mocks/internal/ |
A D | Mockfwk_core_internal.h | 49 …wk_put_notification_ExpectAndReturn(event, cmock_retval) __fwk_put_notification_CMockExpectAndRetu… argument 55 …wk_put_notification_ReturnThruPtr_event(event) __fwk_put_notification_CMockReturnMemThruPtr_event(… argument 56 …rnArrayThruPtr_event(event, cmock_len) __fwk_put_notification_CMockReturnMemThruPtr_event(__LINE__… argument 57 …tification_ReturnMemThruPtr_event(event, cmock_size) __fwk_put_notification_CMockReturnMemThruPtr_… argument 61 #define __fwk_put_event_ExpectAndReturn(event, cmock_retval) __fwk_put_event_CMockExpectAndReturn(_… argument 67 …define __fwk_put_event_ReturnThruPtr_event(event) __fwk_put_event_CMockReturnMemThruPtr_event(__LI… argument 68 …eturnArrayThruPtr_event(event, cmock_len) __fwk_put_event_CMockReturnMemThruPtr_event(__LINE__, ev… argument 69 …fwk_put_event_ReturnMemThruPtr_event(event, cmock_size) __fwk_put_event_CMockReturnMemThruPtr_even… argument 73 …_fwk_put_event_light_ExpectAndReturn(event, cmock_retval) __fwk_put_event_light_CMockExpectAndRetu… argument 80 …rnArrayThruPtr_event(event, cmock_len) __fwk_put_event_light_CMockReturnMemThruPtr_event(__LINE__,… argument [all …]
|
A D | Mockfwk_core_internal.c | 352 int __fwk_put_notification(struct fwk_event* event) in __fwk_put_notification() argument 381 UNITY_TEST_ASSERT_NOT_NULL(event, cmock_line, CMockStringPtrIsNULL); in __fwk_put_notification() 392 cmock_call_instance->Expected_event = event; in CMockExpectParameters___fwk_put_notification() 439 cmock_call_instance->ReturnThruPtr_event_Val = event; in __fwk_put_notification_CMockReturnMemThruPtr_event() 443 int __fwk_put_event(struct fwk_event* event) in __fwk_put_event() argument 483 cmock_call_instance->Expected_event = event; in CMockExpectParameters___fwk_put_event() 509 CMockExpectParameters___fwk_put_event(cmock_call_instance, event); in __fwk_put_event_CMockExpectAndReturn() 530 cmock_call_instance->ReturnThruPtr_event_Val = event; in __fwk_put_event_CMockReturnMemThruPtr_event() 534 int __fwk_put_event_light(struct fwk_event_light* event) in __fwk_put_event_light() argument 574 cmock_call_instance->Expected_event = event; in CMockExpectParameters___fwk_put_event_light() [all …]
|
/SCP-firmware-master/product/rcar/module/rcar_pmic/src/ |
A D | mod_rcar_pmic_event.c | 17 const struct fwk_event *event, in mod_rcar_pmic_event_set_enabled() argument 26 assert(fwk_module_is_valid_element_id(event->target_id)); in mod_rcar_pmic_event_set_enabled() 29 params = (void *)&event->params; in mod_rcar_pmic_event_set_enabled() 32 ctx = __mod_rcar_pmic_get_device_ctx(event->target_id); in mod_rcar_pmic_event_set_enabled() 42 const struct fwk_event *event, in mod_rcar_pmic_event_set_voltage() argument 51 assert(fwk_module_is_valid_element_id(event->target_id)); in mod_rcar_pmic_event_set_voltage() 54 params = (void *)&event->params; in mod_rcar_pmic_event_set_voltage() 57 ctx = __mod_rcar_pmic_get_device_ctx(event->target_id); in mod_rcar_pmic_event_set_voltage() 67 const struct fwk_event *event, in __mod_rcar_pmic_process_event() argument 86 event_idx = fwk_id_get_event_idx(event->id); in __mod_rcar_pmic_process_event() [all …]
|
/SCP-firmware-master/unit_test/unity_mocks/mocks/ |
A D | Mockfwk_core.h | 43 …_ExpectAndReturn(id, cookie, event, cmock_retval) fwk_get_delayed_response_CMockExpectAndReturn(__… argument 49 …eturn(id, cookie, event, event_Depth, cmock_retval) fwk_get_delayed_response_CMockExpectWithArrayA… argument 51 …t_delayed_response_ReturnThruPtr_event(event) fwk_get_delayed_response_CMockReturnMemThruPtr_event… argument 52 …nArrayThruPtr_event(event, cmock_len) fwk_get_delayed_response_CMockReturnMemThruPtr_event(__LINE_… argument 53 …_response_ReturnMemThruPtr_event(event, cmock_size) fwk_get_delayed_response_CMockReturnMemThruPtr… argument 89 …_response_ExpectAndReturn(id, event, cmock_retval) fwk_get_first_delayed_response_CMockExpectAndRe… argument 91 typedef int (* CMOCK_fwk_get_first_delayed_response_CALLBACK)(fwk_id_t id, struct fwk_event* event,… 95 …ArrayAndReturn(id, event, event_Depth, cmock_retval) fwk_get_first_delayed_response_CMockExpectWit… argument 97 …elayed_response_ReturnThruPtr_event(event) fwk_get_first_delayed_response_CMockReturnMemThruPtr_ev… argument 98 …rayThruPtr_event(event, cmock_len) fwk_get_first_delayed_response_CMockReturnMemThruPtr_event(__LI… argument [all …]
|
/SCP-firmware-master/framework/include/ |
A D | fwk_core.h | 65 #define fwk_put_event(event) \ argument 66 _Generic((event), struct fwk_event * \ 68 : __fwk_put_event_light)(event) 101 struct fwk_event *event); 148 int fwk_get_first_delayed_response(fwk_id_t id, struct fwk_event *event);
|
/SCP-firmware-master/module/apcontext/src/ |
A D | mod_apcontext.c | 79 static int apcontext_process_notification(const struct fwk_event *event, in apcontext_process_notification() argument 85 fwk_id_is_equal(event->id, mod_clock_notification_id_state_changed)); in apcontext_process_notification() 86 fwk_assert(fwk_id_is_type(event->target_id, FWK_ID_TYPE_MODULE)); in apcontext_process_notification() 88 params = (struct clock_notification_params *)event->params; in apcontext_process_notification() 98 return fwk_notification_unsubscribe(event->id, event->source_id, in apcontext_process_notification() 99 event->target_id); in apcontext_process_notification()
|
/SCP-firmware-master/module/clock/src/ |
A D | mod_clock.c | 117 struct fwk_event event; in clock_request_complete() local 126 event = (struct fwk_event) { in clock_request_complete() 139 status = fwk_put_event(&event); in clock_request_complete() 158 struct fwk_event event; in clock_set_rate() local 180 event = (struct fwk_event){ in clock_set_rate() 187 return fwk_put_event(&event); in clock_set_rate() 248 struct fwk_event event; in clock_set_state() local 278 event = (struct fwk_event){ in clock_set_state() 525 event->params; in clock_process_pd_pre_transition_notification() 688 if (event->is_response) { in clock_process_notification() [all …]
|
A D | clock_tree_management.c | 32 struct fwk_event event; in clk_mgmt_send_event_set() local 34 event = (struct fwk_event){ in clk_mgmt_send_event_set() 40 return fwk_put_event(&event); in clk_mgmt_send_event_set() 47 struct fwk_event event; in clk_mgmt_send_event_rate() local 49 event = (struct fwk_event){ in clk_mgmt_send_event_rate() 55 return fwk_put_event(&event); in clk_mgmt_send_event_rate() 117 (struct clock_set_state_params *)event->params; in clock_management_process_state() 124 clock_get_ctx(event->target_id, &ctx); in clock_management_process_state() 134 ctx->state_transition.caller_id = event->source_id; in clock_management_process_state() 277 (struct clock_set_rate_params *)event->params; in clock_management_process_rate() [all …]
|
/SCP-firmware-master/product/juno/module/juno_system/src/ |
A D | mod_juno_system.c | 94 const struct fwk_event *event, in process_gpu_power_state() argument 106 juno_system_ctx.psu_ctx.cookie = event->cookie; in process_gpu_power_state() 283 event->id, mod_sds_notification_id_initialized)) { in juno_system_process_notification() 286 event->id, in juno_system_process_notification() 290 event->params; in juno_system_process_notification() 295 if (fwk_id_is_equal(event->source_id, gpu_pd_id)) { in juno_system_process_notification() 307 event->params; in juno_system_process_notification() 309 if (fwk_id_is_equal(event->source_id, gpu_pd_id)) { in juno_system_process_notification() 338 const struct fwk_event *event, in juno_system_process_event() argument 347 if (fwk_id_is_equal(event->id, mod_psu_event_id_set_enabled)) { in juno_system_process_event() [all …]
|
/SCP-firmware-master/doc/ |
A D | deferred_response_architecture.md | 23 will be sent subsequently via a *HAL_module_event_id_request* response event. 24 In this case, the client must handle the response event. 44 response event. In order for the client to receive the response event, the 100 PEx : An event is sent (put_event) 101 E1 : Processing event E1 (request event) 103 E2 : Processing event E2 (request complete event) 104 RE : Processing the response event 106 >>>>>> : Asynchronous call via the event interface 121 The HAL receives and processes the *REQUEST* event E1, and it stores the event's 132 event (PE3) containing the result of the operation. [all …]
|
/SCP-firmware-master/product/juno/module/juno_thermal/src/ |
A D | mod_juno_thermal.c | 72 struct fwk_event event = { in juno_thermal_alarm_callback() local 80 status = fwk_put_event(&event); in juno_thermal_alarm_callback() 220 const struct fwk_event *event, in juno_thermal_process_event() argument 255 const struct fwk_event *event, in juno_thermal_process_notification() argument 262 event->id, in juno_thermal_process_notification() 293 event->target_id); in juno_thermal_process_notification() 302 event->target_id); in juno_thermal_process_notification() 312 event->id, in juno_thermal_process_notification() 317 event->params; in juno_thermal_process_notification() 337 event->target_id); in juno_thermal_process_notification() [all …]
|
/SCP-firmware-master/framework/include/internal/ |
A D | fwk_core.h | 60 int __fwk_put_notification(struct fwk_event *event); 94 int __fwk_put_event(struct fwk_event *event); 127 int __fwk_put_event_light(struct fwk_event_light *event);
|
/SCP-firmware-master/module/pl011/src/ |
A D | mod_pl011.c | 348 const struct fwk_event *event, in mod_pl011_process_power_notification() argument 362 event->params; in mod_pl011_process_power_notification() 390 event->params; in mod_pl011_process_power_notification() 421 const struct fwk_event *event, in mod_pl011_clock_change_pending() argument 427 (const void *)event->params; in mod_pl011_clock_change_pending() 449 event->target_id); in mod_pl011_clock_change_pending() 457 event->target_id); in mod_pl011_clock_change_pending() 484 event->target_id); in mod_pl011_clock_changed() 492 event->target_id); in mod_pl011_clock_changed() 505 const struct fwk_event *event, in mod_pl011_process_clock_notification() argument [all …]
|
/SCP-firmware-master/module/debugger_cli/src/ |
A D | mod_debugger_cli.c | 34 struct fwk_event *event; in alarm_callback() local 43 event = &((struct fwk_event){ in alarm_callback() 49 status = fwk_put_event(event); in alarm_callback() 113 static int debugger_cli_process_event(const struct fwk_event *event, in debugger_cli_process_event() argument 119 switch (event->id.event.event_idx) { in debugger_cli_process_event() 124 status = stop_alarm(event->target_id); in debugger_cli_process_event() 132 start_alarm_status = start_alarm(event->target_id); in debugger_cli_process_event()
|
/SCP-firmware-master/module/i2c/doc/ |
A D | module_i2c_architecture.md | 51 +-+ | |event E1 | | 64 | event E2 | | | | | 69 | event R1 | | | 71 E1 : Request event 72 E2 : Request completed event 73 R1 : Response to the request event E1 108 +-+ | |event E1 118 E1 : Request event 134 | event E1 | | | | | 143 | | event R1 | | | | [all …]
|
/SCP-firmware-master/product/tc2/module/tc2_bl1/src/ |
A D | mod_tc2_bl1.c | 53 struct fwk_event event = { in tc2_signal_message() local 59 return fwk_put_event(&event); in tc2_signal_message() 137 struct fwk_event event = { in tc2_bl1_start() local 143 return fwk_put_event(&event); in tc2_bl1_start() 147 const struct fwk_event *event, in tc2_bl1_process_event() argument 152 if (fwk_id_get_event_idx(event->id) == MOD_BL1_EVENT_RUN) { in tc2_bl1_process_event() 173 } else if (fwk_id_get_event_idx(event->id) == MOD_BL1_EVENT_RSS_HANDSHAKE) { in tc2_bl1_process_event() 193 const struct fwk_event *event, in tc2_bl1_process_notification() argument 196 fwk_assert(fwk_id_is_equal(event->id, mod_tc2_bl1_notification_id_systop)); in tc2_bl1_process_notification() 197 fwk_assert(event->is_response == true); in tc2_bl1_process_notification()
|
/SCP-firmware-master/module/debug/src/ |
A D | mod_debug.c | 216 struct fwk_event event; in request_complete() local 219 (struct mod_debug_response_params *)event.params; in request_complete() 231 event = (struct fwk_event) { in request_complete() 237 event.id = mod_debug_event_id_get_complete; in request_complete() 239 event.id = mod_debug_event_id_set_complete; in request_complete() 245 status = fwk_put_event(&event); in request_complete() 359 static int respond(const struct fwk_event *event) in respond() argument 392 switch (fwk_id_get_event_idx(event->id)) { in mod_debug_process_event() 401 ctx->cookie = event->cookie; in mod_debug_process_event() 428 return respond(event); in mod_debug_process_event() [all …]
|
/SCP-firmware-master/module/pcie_integ_ctrl/src/ |
A D | mod_pcie_integ_ctrl.c | 182 const struct fwk_event *event, in pcie_integ_ctrl_process_notification() argument 189 fwk_id_is_equal(event->id, mod_clock_notification_id_state_changed)); in pcie_integ_ctrl_process_notification() 190 fwk_assert(fwk_id_is_type(event->target_id, FWK_ID_TYPE_ELEMENT)); in pcie_integ_ctrl_process_notification() 192 params = (struct clock_notification_params *)event->params; in pcie_integ_ctrl_process_notification() 195 ctx = get_ctx(event->target_id); in pcie_integ_ctrl_process_notification() 199 fwk_id_get_element_idx(event->target_id), ctx->config); in pcie_integ_ctrl_process_notification() 203 event->id, event->source_id, event->target_id); in pcie_integ_ctrl_process_notification()
|
/SCP-firmware-master/module/i2c/src/ |
A D | mod_i2c.c | 67 struct fwk_event event; in create_i2c_request() local 69 (struct mod_i2c_request *)event.params; in create_i2c_request() 76 event = (struct fwk_event) { in create_i2c_request() 92 status = fwk_put_event(&event); in create_i2c_request() 193 struct fwk_event event; in transaction_completed() local 197 event = (struct fwk_event) { in transaction_completed() 205 status = fwk_put_event(&event); in transaction_completed() 357 struct fwk_event event; in reload() local 368 event = (struct fwk_event) { in reload() 372 status = fwk_put_event(&event); in reload() [all …]
|
/SCP-firmware-master/module/msys_rom/src/ |
A D | mod_msys_rom.c | 108 struct fwk_event event = { in msys_rom_start() local 114 return fwk_put_event(&event); in msys_rom_start() 117 static int msys_rom_process_event(const struct fwk_event *event, in msys_rom_process_event() argument 147 const struct fwk_event *event, in msys_rom_process_notification() argument 151 fwk_id_is_equal(event->id, mod_msys_rom_notification_id_systop)); in msys_rom_process_notification() 152 fwk_assert(event->is_response == true); in msys_rom_process_notification()
|
/SCP-firmware-master/product/juno/module/juno_xrp7724/src/ |
A D | mod_juno_xrp7724.c | 209 struct fwk_event event; in alarm_callback() local 213 event = (struct fwk_event) { in alarm_callback() 219 status = fwk_put_event(&event); in alarm_callback() 292 struct fwk_event event; in juno_xrp7724_sensor_get_value() 298 event = (struct fwk_event) { in juno_xrp7724_sensor_get_value() 338 struct fwk_event event; in juno_xrp7724_set_enabled() local 355 event = (struct fwk_event) { in juno_xrp7724_set_enabled() 392 struct fwk_event event; in juno_xrp7724_set_voltage() local 438 event = (struct fwk_event) { in juno_xrp7724_set_voltage() 460 struct fwk_event event; in juno_xrp7724_get_voltage() local [all …]
|
/SCP-firmware-master/product/rdv1/module/platform_system/src/ |
A D | mod_platform_system.c | 299 const struct fwk_event *event, in platform_system_process_notification() argument 308 fwk_assert(fwk_id_is_type(event->target_id, FWK_ID_TYPE_MODULE)); in platform_system_process_notification() 310 if (fwk_id_is_equal(event->id, mod_clock_notification_id_state_changed)) { in platform_system_process_notification() 311 params = (struct clock_notification_params *)event->params; in platform_system_process_notification() 336 event->id, event->source_id, event->target_id); in platform_system_process_notification() 341 event->id, mod_scmi_notification_id_initialized)) { in platform_system_process_notification() 344 event->id, mod_sds_notification_id_initialized)) { in platform_system_process_notification()
|
/SCP-firmware-master/product/sgi575/module/sgi575_system/src/ |
A D | mod_sgi575_system.c | 299 int sgi575_system_process_notification(const struct fwk_event *event, in sgi575_system_process_notification() argument 308 fwk_assert(fwk_id_is_type(event->target_id, FWK_ID_TYPE_MODULE)); in sgi575_system_process_notification() 310 if (fwk_id_is_equal(event->id, mod_clock_notification_id_state_changed)) { in sgi575_system_process_notification() 311 params = (struct clock_notification_params *)event->params; in sgi575_system_process_notification() 336 return fwk_notification_unsubscribe(event->id, event->source_id, in sgi575_system_process_notification() 337 event->target_id); in sgi575_system_process_notification() 341 } else if (fwk_id_is_equal(event->id, in sgi575_system_process_notification() 344 } else if (fwk_id_is_equal(event->id, in sgi575_system_process_notification()
|