Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 204) sorted by relevance

123456789

/Zephyr-latest/drivers/smbus/
Dsmbus_utils.h23 static inline int smbus_callback_set(sys_slist_t *callbacks, in smbus_callback_set() argument
29 if (!sys_slist_is_empty(callbacks)) { in smbus_callback_set()
30 sys_slist_find_and_remove(callbacks, &callback->node); in smbus_callback_set()
33 sys_slist_prepend(callbacks, &callback->node); in smbus_callback_set()
46 static inline int smbus_callback_remove(sys_slist_t *callbacks, in smbus_callback_remove() argument
52 if (sys_slist_is_empty(callbacks) || in smbus_callback_remove()
53 !sys_slist_find_and_remove(callbacks, &callback->node)) { in smbus_callback_remove()
108 void smbus_loop_alert_devices(const struct device *dev, sys_slist_t *callbacks);
Dsmbus_utils.c13 void smbus_loop_alert_devices(const struct device *dev, sys_slist_t *callbacks) in smbus_loop_alert_devices() argument
41 smbus_fire_callbacks(callbacks, dev, address); in smbus_loop_alert_devices()
/Zephyr-latest/drivers/espi/
Despi_utils.h23 static inline int espi_manage_callback(sys_slist_t *callbacks, in espi_manage_callback() argument
29 if (!sys_slist_is_empty(callbacks)) { in espi_manage_callback()
30 if (!sys_slist_find_and_remove(callbacks, &callback->node)) { in espi_manage_callback()
40 sys_slist_prepend(callbacks, &callback->node); in espi_manage_callback()
Dhost_subs_npcx.c148 sys_slist_t *callbacks; /* pointer on the espi callback list */ member
277 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_kbc_ibf_isr()
305 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_kbc_obe_isr()
357 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_acpi_process_input_data()
401 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_hcmd_process_input_data()
522 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_port80_work_handler()
535 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, in host_port80_work_handler()
568 espi_send_callbacks(host_sub_data.callbacks, host_sub_data.host_bus_dev, evt); in host_port80_isr()
1102 sys_slist_t *callbacks) in npcx_host_init_subs_core_domain() argument
1110 host_sub_data.callbacks = callbacks; in npcx_host_init_subs_core_domain()
/Zephyr-latest/soc/nxp/imxrt/imxrt10xx/
Dpower.c32 void imxrt_clock_pm_callbacks_register(struct clock_callbacks *callbacks) in imxrt_clock_pm_callbacks_register() argument
35 __ASSERT_NO_MSG(callbacks && callbacks->clock_set_run && callbacks->clock_set_low_power); in imxrt_clock_pm_callbacks_register()
36 lpm_clock_hooks.clock_set_run = callbacks->clock_set_run; in imxrt_clock_pm_callbacks_register()
37 lpm_clock_hooks.clock_set_low_power = callbacks->clock_set_low_power; in imxrt_clock_pm_callbacks_register()
38 if (callbacks->clock_lpm_init) { in imxrt_clock_pm_callbacks_register()
39 lpm_clock_hooks.clock_lpm_init = callbacks->clock_lpm_init; in imxrt_clock_pm_callbacks_register()
Dpower.h32 void imxrt_clock_pm_callbacks_register(struct clock_callbacks *callbacks);
/Zephyr-latest/include/zephyr/drivers/gpio/
Dgpio_utils.h59 static inline int gpio_manage_callback(sys_slist_t *callbacks, in gpio_manage_callback() argument
66 if (!sys_slist_is_empty(callbacks)) { in gpio_manage_callback()
67 if (!sys_slist_find_and_remove(callbacks, &callback->node)) { in gpio_manage_callback()
77 sys_slist_prepend(callbacks, &callback->node); in gpio_manage_callback()
/Zephyr-latest/tests/drivers/i2c/i2c_target_api/common/
Di2c_virtual.c95 config->callbacks->write_requested(config); in i2c_virtual_msg_write()
101 ret = config->callbacks->write_received(config, *buf); in i2c_virtual_msg_write()
110 config->callbacks->stop(config); in i2c_virtual_msg_write()
130 config->callbacks->read_requested(config, buf); in i2c_virtual_msg_read()
135 config->callbacks->read_processed(config, buf); in i2c_virtual_msg_read()
141 config->callbacks->stop(config); in i2c_virtual_msg_read()
/Zephyr-latest/drivers/i2c/
Di2c_emul.c91 const struct i2c_target_callbacks *callbacks = data->target_cfg->callbacks; in i2c_emul_send_to_target() local
102 callbacks->buf_read_requested(data->target_cfg, &ptr, &len); in i2c_emul_send_to_target()
113 callbacks->buf_write_received(data->target_cfg, msgs[i].buf, in i2c_emul_send_to_target()
117 int rc = callbacks->stop(data->target_cfg); in i2c_emul_send_to_target()
137 rc = callbacks->read_requested(data->target_cfg, in i2c_emul_send_to_target()
142 rc = callbacks->read_processed(data->target_cfg, in i2c_emul_send_to_target()
155 rc = callbacks->write_requested(data->target_cfg); in i2c_emul_send_to_target()
162 rc = callbacks->write_received(data->target_cfg, msgs[i].buf[j]); in i2c_emul_send_to_target()
169 int rc = callbacks->stop(data->target_cfg); in i2c_emul_send_to_target()
Di2c_ifx_xmc4.c314 !cfg->callbacks->read_requested || in ifx_xmc4_i2c_target_register()
315 !cfg->callbacks->read_processed || in ifx_xmc4_i2c_target_register()
316 !cfg->callbacks->write_requested || in ifx_xmc4_i2c_target_register()
317 !cfg->callbacks->write_received || in ifx_xmc4_i2c_target_register()
318 !cfg->callbacks->stop) { in ifx_xmc4_i2c_target_register()
376 const struct i2c_target_callbacks *callbacks = data->p_target_config->callbacks; in i2c_xmc4_isr() local
387 callbacks->stop(data->p_target_config); in i2c_xmc4_isr()
396 callbacks->read_requested(data->p_target_config, in i2c_xmc4_isr()
400 callbacks->write_requested(data->p_target_config); in i2c_xmc4_isr()
406 callbacks->read_processed(data->p_target_config, &data->target_wr_byte); in i2c_xmc4_isr()
[all …]
Di2c_ifx_cat1.c120 if (data->p_target_config->callbacks->read_requested) { in ifx_master_event_handler()
121 data->p_target_config->callbacks->read_requested(data->p_target_config, in ifx_master_event_handler()
131 if (data->p_target_config->callbacks->read_processed) { in ifx_master_event_handler()
132 data->p_target_config->callbacks->read_processed(data->p_target_config, in ifx_master_event_handler()
144 if (data->p_target_config->callbacks->write_requested) { in ifx_master_event_handler()
145 data->p_target_config->callbacks->write_requested(data->p_target_config); in ifx_master_event_handler()
150 if (data->p_target_config->callbacks->write_received) { in ifx_master_event_handler()
152 data->p_target_config->callbacks->write_received( in ifx_master_event_handler()
156 if (data->p_target_config->callbacks->stop) { in ifx_master_event_handler()
157 data->p_target_config->callbacks->stop(data->p_target_config); in ifx_master_event_handler()
[all …]
Di2c_lpc11u6x.c239 if (data->slave->callbacks->write_requested(data->slave)) { in lpc11u6x_i2c_isr()
247 if (data->slave->callbacks->write_received(data->slave, val)) { in lpc11u6x_i2c_isr()
255 data->slave->callbacks->write_received(data->slave, val); in lpc11u6x_i2c_isr()
256 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
261 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
267 if (data->slave->callbacks->read_requested(data->slave, &val)) { in lpc11u6x_i2c_isr()
273 if (data->slave->callbacks->read_processed(data->slave, &val)) { in lpc11u6x_i2c_isr()
280 data->slave->callbacks->stop(data->slave); in lpc11u6x_i2c_isr()
Di2c_nrfx_twis.c122 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_read_req() local
128 if (callbacks->buf_read_requested(target_config, &buf, &buf_size)) { in shim_nrf_twis_handle_read_req()
165 const struct i2c_target_callbacks *callbacks = target_config->callbacks; in shim_nrf_twis_handle_write_done() local
168 callbacks->buf_write_received(target_config, dev_config->buf, nrfx_twis_rx_amount(twis)); in shim_nrf_twis_handle_write_done()
Di2c_gecko.c256 data->target_cfg->callbacks->read_requested(data->target_cfg, in i2c_gecko_isr()
260 data->target_cfg->callbacks->write_requested(data->target_cfg); in i2c_gecko_isr()
267 data->target_cfg->callbacks->write_received(data->target_cfg, rx_byte); in i2c_gecko_isr()
275 data->target_cfg->callbacks->read_processed(data->target_cfg, &tx_byte); in i2c_gecko_isr()
283 data->target_cfg->callbacks->stop(data->target_cfg); in i2c_gecko_isr()
/Zephyr-latest/drivers/rtc/
DKconfig.am180519 Size of the stack used for the thread handling interrupts and dispatching callbacks.
25 Priority level for the thread handling interrupts and dispatching callbacks.
DKconfig.pcf852344 Size of the stack used for the thread handling interrupts and dispatching callbacks.
50 Priority level for the thread handling interrupts and dispatching callbacks.
/Zephyr-latest/doc/connectivity/usb/pd/
Ducds.rst27 The following devicetree, structures and callbacks need to be defined:
32 * Policy callbacks
64 These callbacks are used by the subsystem to set or get application specific data:
68 :start-after: usbc.rst callbacks start
69 :end-before: usbc.rst callbacks end
88 Registering the callbacks:
117 Define the following devicetree, structures and callbacks:
122 * Policy callbacks
154 These callbacks are used by the subsystem to set or get application specific data:
158 :start-after: usbc.rst callbacks start
[all …]
/Zephyr-latest/drivers/can/
DKconfig.tcan4x5x21 Size of the stack used for the thread handling interrupts and dispatching callbacks.
27 Priority level for the thread handling interrupts and dispatching callbacks.
DKconfig.loopback28 The TX thread calls the callbacks of the receiver
36 The TX thread calls the callbacks of the receiver
/Zephyr-latest/tests/kernel/timer/timer_behavior/src/
Dtick_timer_train.c19 uint32_t callbacks; member
44 tm_wrap->callbacks++; in tm_fn()
45 if (tm_wrap->callbacks >= MAX_CALLBACKS) { in tm_fn()
106 remaining_timers, timers[0].callbacks); in ZTEST()
/Zephyr-latest/modules/openthread/platform/
Dradio_spinel.cpp520 struct ot::Spinel::RadioSpinelCallbacks callbacks; in platformRadioInit() local
533 memset(&callbacks, 0, sizeof(callbacks)); in platformRadioInit()
535 callbacks.mDiagReceiveDone = otPlatDiagRadioReceiveDone; in platformRadioInit()
536 callbacks.mDiagTransmitDone = otPlatDiagRadioTransmitDone; in platformRadioInit()
538 callbacks.mEnergyScanDone = otPlatRadioEnergyScanDone; in platformRadioInit()
539 callbacks.mReceiveDone = otPlatRadioReceiveDone; in platformRadioInit()
540 callbacks.mTransmitDone = otPlatRadioTxDone; in platformRadioInit()
541 callbacks.mTxStarted = otPlatRadioTxStarted; in platformRadioInit()
543 psRadioSpinel->SetCallbacks(callbacks); in platformRadioInit()
/Zephyr-latest/soc/nuvoton/npcx/common/
Dsoc_host.h34 sys_slist_t *callbacks);
/Zephyr-latest/drivers/gpio/
Dgpio_dw.h32 sys_slist_t callbacks; member
Dgpio_emul.c98 sys_slist_t callbacks; member
285 gpio_fire_callbacks(&drv_data->callbacks, port, interrupts); in gpio_emul_pend_interrupt()
463 gpio_fire_callbacks(&drv_data->callbacks, port, BIT(pin)); in gpio_emul_pin_configure()
548 gpio_fire_callbacks(&drv_data->callbacks, port, mask & ~get_input_pins(port)); in gpio_emul_port_set_masked_raw()
577 gpio_fire_callbacks(&drv_data->callbacks, port, pins & ~get_input_pins(port)); in gpio_emul_port_set_bits_raw()
604 gpio_fire_callbacks(&drv_data->callbacks, port, pins & ~get_input_pins(port)); in gpio_emul_port_clear_bits_raw()
624 gpio_fire_callbacks(&drv_data->callbacks, port, pins); in gpio_emul_port_toggle_bits()
749 gpio_fire_callbacks(&drv_data->callbacks, port, BIT(pin));
762 return gpio_manage_callback(&drv_data->callbacks, cb, set);
830 sys_slist_init(&drv_data->callbacks);
/Zephyr-latest/subsys/input/
DKconfig28 Input events callbacks are processed synchronously in the context of
35 Input events are added to a message queue and the callbacks are
66 enough space for executing the registered callbacks.

123456789