Home
last modified time | relevance | path

Searched refs:driver (Results 1 – 25 of 37) sorted by relevance

12

/SCP-firmware-master/framework/src/
A Dfwk_interrupt.c26 if (driver == NULL) { in fwk_interrupt_init()
29 if (driver->global_enable == NULL) { in fwk_interrupt_init()
35 if (driver->is_enabled == NULL) { in fwk_interrupt_init()
38 if (driver->enable == NULL) { in fwk_interrupt_init()
41 if (driver->disable == NULL) { in fwk_interrupt_init()
44 if (driver->is_pending == NULL) { in fwk_interrupt_init()
47 if (driver->set_pending == NULL) { in fwk_interrupt_init()
53 if (driver->set_isr_irq == NULL) { in fwk_interrupt_init()
59 if (driver->set_isr_nmi == NULL) { in fwk_interrupt_init()
68 if (driver->get_current == NULL) { in fwk_interrupt_init()
[all …]
A Dfwk_arch.c31 extern int fwk_interrupt_init(const struct fwk_arch_interrupt_driver *driver);
34 const struct fwk_arch_interrupt_driver **driver)) in fwk_arch_interrupt_init()
38 const struct fwk_arch_interrupt_driver *driver; in fwk_arch_interrupt_init() local
44 status = interrupt_init_handler(&driver); in fwk_arch_interrupt_init()
50 status = fwk_interrupt_init(driver); in fwk_arch_interrupt_init()
58 int fwk_arch_init(const struct fwk_arch_init_driver *driver) in fwk_arch_init() argument
62 if (driver == NULL) { in fwk_arch_init()
66 if (driver->interrupt == NULL) { in fwk_arch_init()
83 status = fwk_arch_interrupt_init(driver->interrupt); in fwk_arch_init()
A Dfwk_time.c16 struct fwk_time_driver driver; /* Time driver */ member
22 struct fwk_time_driver driver = fmw_time_driver(&fwk_time_ctx.driver_ctx); in fwk_time_init() local
24 (void)memcpy(&fwk_time_ctx.driver, &driver, sizeof(driver)); in fwk_time_init()
29 if (fwk_time_ctx.driver.timestamp == NULL) { in fwk_time_current()
33 return fwk_time_ctx.driver.timestamp(fwk_time_ctx.driver_ctx); in fwk_time_current()
/SCP-firmware-master/unit_test/unity_mocks/mocks/
A DMockfwk_arch.h33 #define fwk_arch_init_ExpectAndReturn(driver, cmock_retval) fwk_arch_init_CMockExpectAndReturn(__LI… argument
34 …AndReturn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_init_driver* driver, int cmock_to_retu…
35 typedef int (* CMOCK_fwk_arch_init_CALLBACK)(const struct fwk_arch_init_driver* driver, int cmock_n…
39 …it_ExpectWithArrayAndReturn(driver, driver_Depth, cmock_retval) fwk_arch_init_CMockExpectWithArray… argument
40 …AndReturn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_init_driver* driver, int driver_Depth,…
A DMockfwk_arch.c118 int fwk_arch_init(const struct fwk_arch_init_driver* driver) in fwk_arch_init() argument
136 …int cmock_cb_ret = Mock.fwk_arch_init_CallbackFunctionPointer(driver, Mock.fwk_arch_init_CallbackC… in fwk_arch_init()
148 { UNITY_TEST_ASSERT_NULL(driver, cmock_line, CMockStringExpNULL); } in fwk_arch_init()
155 …cmock_call_instance->ReturnVal = Mock.fwk_arch_init_CallbackFunctionPointer(driver, Mock.fwk_arch_… in fwk_arch_init()
161 …t_CALL_INSTANCE* cmock_call_instance, const struct fwk_arch_init_driver* driver, int driver_Depth);
162 …it_CALL_INSTANCE* cmock_call_instance, const struct fwk_arch_init_driver* driver, int driver_Depth) in CMockExpectParameters_fwk_arch_init() argument
164 cmock_call_instance->Expected_driver = driver; in CMockExpectParameters_fwk_arch_init()
204 …AndReturn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_init_driver* driver, int cmock_to_retu… in fwk_arch_init_CMockExpectAndReturn() argument
214 CMockExpectParameters_fwk_arch_init(cmock_call_instance, driver, 1); in fwk_arch_init_CMockExpectAndReturn()
232 …AndReturn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_init_driver* driver, int driver_Depth,… in fwk_arch_init_CMockExpectWithArrayAndReturn() argument
[all …]
A DMockfwk_interrupt.h35 …e fwk_interrupt_init_ExpectAndReturn(driver, cmock_retval) fwk_interrupt_init_CMockExpectAndReturn… argument
36 …turn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_interrupt_driver* driver, int cmock_to_retu…
37 typedef int (* CMOCK_fwk_interrupt_init_CALLBACK)(const struct fwk_arch_interrupt_driver* driver, i…
41 …_ExpectWithArrayAndReturn(driver, driver_Depth, cmock_retval) fwk_interrupt_init_CMockExpectWithAr… argument
42 …turn(UNITY_LINE_TYPE cmock_line, const struct fwk_arch_interrupt_driver* driver, int driver_Depth,…
/SCP-firmware-master/module/timer/src/
A Dmod_timer.c34 struct mod_timer_driver_api *driver; member
351 status = ctx->driver->disable(ctx->driver_dev_id); in get_next_alarm_remaining()
368 status = ctx->driver->enable(ctx->driver_dev_id); in get_next_alarm_remaining()
426 status = ctx->driver->disable(ctx->driver_dev_id); in alarm_stop()
519 status = ctx->driver->disable(ctx->driver_dev_id); in alarm_start()
546 status = ctx->driver->disable(ctx->driver_dev_id); in timer_isr()
622 struct mod_timer_driver_api *driver = NULL; in timer_bind() local
641 &driver); in timer_bind()
647 if (driver->enable == NULL || driver->disable == NULL || in timer_bind()
648 driver->get_counter == NULL || driver->get_frequency == NULL) { in timer_bind()
[all …]
/SCP-firmware-master/product/rcar/module/rcar_pmic/src/
A Dmod_rcar_pmic_module.c57 ctx->config->driver_id, ctx->config->driver_api_id, &ctx->apis.driver); in rcar_pmic_bind_element()
64 assert(ctx->apis.driver->set_enabled != NULL); in rcar_pmic_bind_element()
65 assert(ctx->apis.driver->get_enabled != NULL); in rcar_pmic_bind_element()
66 assert(ctx->apis.driver->set_voltage != NULL); in rcar_pmic_bind_element()
67 assert(ctx->apis.driver->get_voltage != NULL); in rcar_pmic_bind_element()
A Dmod_rcar_pmic_device_api.c36 status = ctx->apis.driver->get_enabled(ctx->config->driver_id, enabled); in api_get_enabled()
61 status = ctx->apis.driver->set_enabled(ctx->config->driver_id, enable); in api_set_enabled()
86 status = ctx->apis.driver->get_voltage(ctx->config->driver_id, voltage); in api_get_voltage()
111 status = ctx->apis.driver->set_voltage(ctx->config->driver_id, voltage); in api_set_voltage()
135 status = ctx->apis.driver->set_pmic(ctx->config->driver_id, state); in api_set_pmic()
A Dmod_rcar_pmic_module_private.h24 const struct mod_rcar_pmic_driver_api *driver; member
A Dmod_rcar_pmic_event.c36 ctx->apis.driver->set_enabled(ctx->config->driver_id, params->enable); in mod_rcar_pmic_event_set_enabled()
61 ctx->apis.driver->set_voltage(ctx->config->driver_id, params->voltage); in mod_rcar_pmic_event_set_voltage()
/SCP-firmware-master/module/debug/doc/
A Dmodule_dedug_architecture.md16 The DEBUG module defines a driver interface on which it relies to get and set
18 driver to submit requests to the HAL to enable/disable the debug system. This
22 All the platform-specific operations can be implemented in the driver.
37 standard - w/o debug | with debug module and debug driver
66 platform's needs. The debug driver will then contain all the logic without
77 driver.
78 The driver will then inform the HAL via the drv_resp api, and the HAL
108 driver through the driver_input_api
109 ev : (optional) A driver may internally generate an event to
111 ISR/ev : Either and ISR or an event will cause the driver to call
[all …]
/SCP-firmware-master/module/mhu3/doc/
A Dmhu3.md2 \defgroup GroupMHU3 MHU Hardware version 3 driver.
4 # MHU Hardware version 3 driver
11 This is a driver module that supports MHU hardware version 3.
14 the following extensions are supported by this driver:
/SCP-firmware-master/framework/include/
A Dfwk_arch.h210 int (*interrupt)(const struct fwk_arch_interrupt_driver **driver);
223 int fwk_arch_init(const struct fwk_arch_init_driver *driver);
A Dfwk_interrupt.h75 int fwk_interrupt_init(const struct fwk_arch_interrupt_driver *driver);
/SCP-firmware-master/module/thermal_mgmt/src/
A Dpower_allocation.c30 struct mod_thermal_mgmt_driver_api *driver; in get_actor_power() local
33 driver = dev_ctx->driver_api; in get_actor_power()
36 actor_ctx->demand_power = driver->level_to_power(driver_id, req_level); in get_actor_power()
44 struct mod_thermal_mgmt_driver_api *driver; in get_actor_level() local
47 driver = dev_ctx->driver_api; in get_actor_level()
50 *level = driver->power_to_level(driver_id, actor_ctx->granted_power); in get_actor_level()
/SCP-firmware-master/module/psu/src/
A Dmod_psu.c42 const struct mod_psu_driver_api *driver; member
93 status = ctx->driver->get_enabled(cfg->driver_id, enabled); in mod_psu_get_enabled()
136 status = ctx->driver->set_enabled(cfg->driver_id, enabled); in mod_psu_set_enabled()
179 status = ctx->driver->get_voltage(cfg->driver_id, voltage); in mod_psu_get_voltage()
222 status = ctx->driver->set_voltage(cfg->driver_id, voltage); in mod_psu_set_voltage()
336 status = fwk_module_bind(cfg->driver_id, cfg->driver_api_id, &ctx->driver); in mod_psu_bind_element()
341 if ((ctx->driver->set_enabled == NULL) || in mod_psu_bind_element()
342 (ctx->driver->get_enabled == NULL) || in mod_psu_bind_element()
343 (ctx->driver->set_voltage == NULL) || in mod_psu_bind_element()
344 (ctx->driver->get_voltage == NULL)) { in mod_psu_bind_element()
/SCP-firmware-master/arch/arm/arm-m/include/
A Darch_nvic.h23 int arch_nvic_init(const struct fwk_arch_interrupt_driver **driver);
/SCP-firmware-master/arch/none/host/include/
A Darch_interrupt.h23 int arch_interrupt_init(const struct fwk_arch_interrupt_driver **driver);
/SCP-firmware-master/arch/none/optee/include/
A Darch_interrupt.h23 int arch_interrupt_init(const struct fwk_arch_interrupt_driver **driver);
/SCP-firmware-master/doc/
A Ddeferred_response_architecture.md10 - A driver interacting with the hardware and bound to the HAL.
29 When the HAL calls the driver, it acts in different manners depending on the
30 status returned by the driver:
31 - FWK_SUCCESS: the driver has successfully completed the request and the
34 - FWK_PENDING: the driver has deferred the requested operation and will provide
51 Below is a typical execution flow for a call to the HAL when the driver defers
113 A client calls *get/set* HAL module API which directly calls the driver.
115 The driver cannot do the operation immediately, it returns FWK_PENDING.
124 When the requested *get/set* operation is completed, the driver calls the
126 In this call, the driver sends a *REQUEST_COMPLETE* event (PE2) for the HAL
/SCP-firmware-master/module/transport/doc/
A Dtransport.md20 The transport module defines a driver interface to transfer/receive data from
48 Messages can be sent using in-band communication - where the driver transmits
49 the message using the channels(for example, the MHUv2 driver sends the message
52 on the receiver side by calling the `trigger_event()` function in the driver API.
88 When a message is received the transport module is signalled by the driver
90 `get_message()` function in the driver API. The message is stored in a local
148 calling the `trigger_event()` in the driver API.
184 When a message is received the transport module is signalled by the driver
238 channel. So, when a message is received on the fast channel, the driver calls
305 A driver that supports Fast channels communication is required in order to use
[all …]
/SCP-firmware-master/arch/none/host/src/
A Darch_interrupt.c95 static const struct fwk_arch_interrupt_driver driver = { variable
118 *_driver = &driver; in arch_interrupt_init()
/SCP-firmware-master/arch/none/optee/src/
A Darch_interrupt.c97 static const struct fwk_arch_interrupt_driver driver = { variable
120 *_driver = &driver; in arch_interrupt_init()
/SCP-firmware-master/module/scmi_sensor_req/doc/
A Dscmi_sensor_req.md14 The SCMI Sensor Requester implements the driver interface provided by the HAL
15 sensor. So it is treated as if it was a sensor driver. Hence an entity that
21 HAL. It acts as an asynchronous sensor driver. This is because SCMI Sensor

Completed in 35 milliseconds

12