/Zephyr-latest/drivers/smbus/ |
D | smbus_utils.h | 24 struct smbus_callback *callback) in smbus_callback_set() argument 26 __ASSERT(callback, "No callback!"); in smbus_callback_set() 27 __ASSERT(callback->handler, "No callback handler!"); 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() 47 struct smbus_callback *callback) in smbus_callback_remove() argument 49 __ASSERT(callback, "No callback!"); in smbus_callback_remove() 50 __ASSERT(callback->handler, "No callback handler!"); in smbus_callback_remove() 53 !sys_slist_find_and_remove(callbacks, &callback->node)) { in smbus_callback_remove() 88 static inline void smbus_init_callback(struct smbus_callback *callback, in smbus_init_callback() argument [all …]
|
/Zephyr-latest/drivers/gnss/ |
D | gnss_publish.c | 17 STRUCT_SECTION_FOREACH(gnss_data_callback, callback) { in gnss_publish_data() 18 if (callback->dev == NULL || callback->dev == dev) { in gnss_publish_data() 19 callback->callback(dev, data); in gnss_publish_data() 32 STRUCT_SECTION_FOREACH(gnss_satellites_callback, callback) { in gnss_publish_satellites() 33 if (callback->dev == NULL || callback->dev == dev) { in gnss_publish_satellites() 34 callback->callback(dev, satellites, size); in gnss_publish_satellites()
|
/Zephyr-latest/include/zephyr/net/ |
D | dhcpv4.h | 135 static inline void net_dhcpv4_init_option_callback(struct net_dhcpv4_option_callback *callback, in net_dhcpv4_init_option_callback() argument 141 __ASSERT(callback, "Callback pointer should not be NULL"); in net_dhcpv4_init_option_callback() 145 callback->handler = handler; in net_dhcpv4_init_option_callback() 146 callback->option = option; in net_dhcpv4_init_option_callback() 147 callback->data = data; in net_dhcpv4_init_option_callback() 148 callback->max_length = max_length; in net_dhcpv4_init_option_callback() 175 net_dhcpv4_init_option_vendor_callback(struct net_dhcpv4_option_callback *callback, in net_dhcpv4_init_option_vendor_callback() argument 179 __ASSERT(callback, "Callback pointer should not be NULL"); in net_dhcpv4_init_option_vendor_callback() 183 callback->handler = handler; in net_dhcpv4_init_option_vendor_callback() 184 callback->option = option; in net_dhcpv4_init_option_vendor_callback() [all …]
|
D | zperf.h | 122 zperf_callback callback, void *user_data); 137 zperf_callback callback, void *user_data); 151 zperf_callback callback, void *user_data); 165 zperf_callback callback, void *user_data);
|
/Zephyr-latest/drivers/misc/renesas_ra_external_interrupt/ |
D | renesas_ra_external_interrupt.c | 40 struct gpio_ra_callback callback; member 53 int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback) in gpio_ra_interrupt_set() argument 61 if (callback->mode == GPIO_INT_MODE_LEVEL) { in gpio_ra_interrupt_set() 62 if (callback->trigger != GPIO_INT_TRIG_LOW) { in gpio_ra_interrupt_set() 67 } else if (callback->mode == GPIO_INT_MODE_EDGE) { in gpio_ra_interrupt_set() 68 switch (callback->trigger) { in gpio_ra_interrupt_set() 85 if (data->callback.port_num != callback->port_num || data->callback.pin != callback->pin) { in gpio_ra_interrupt_set() 92 data->callback = *callback; in gpio_ra_interrupt_set() 110 if ((port_num != data->callback.port_num) && (pin != data->callback.pin)) { in gpio_ra_interrupt_unset() 123 data->callback.isr(data->callback.port, data->callback.pin); in gpio_ra_isr()
|
/Zephyr-latest/subsys/modem/ |
D | modem_pipelink.c | 11 if (link->callback == NULL) { in try_callback() 15 link->callback(link, event, link->user_data); in try_callback() 19 modem_pipelink_callback callback, in modem_pipelink_attach() argument 23 link->callback = callback; in modem_pipelink_attach() 47 link->callback = NULL; in modem_pipelink_release() 55 link->callback = NULL; in modem_pipelink_init()
|
D | modem_pipe.c | 15 modem_pipe_api_callback callback, in pipe_set_callback() argument 19 pipe->callback = callback; in pipe_set_callback() 27 if (pipe->callback != NULL) { in pipe_call_callback() 28 pipe->callback(pipe, event, pipe->user_data); in pipe_call_callback() 88 pipe->callback = NULL; in modem_pipe_init() 123 void modem_pipe_attach(struct modem_pipe *pipe, modem_pipe_api_callback callback, void *user_data) in modem_pipe_attach() argument 125 pipe_set_callback(pipe, callback, user_data); in modem_pipe_attach()
|
/Zephyr-latest/drivers/espi/ |
D | espi_utils.h | 24 struct espi_callback *callback, bool set) in espi_manage_callback() argument 26 __ASSERT(callback, "No callback!"); in espi_manage_callback() 27 __ASSERT(callback->handler, "No callback handler!"); 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()
|
/Zephyr-latest/subsys/input/ |
D | input.c | 23 STRUCT_SECTION_FOREACH(input_callback, callback) { in input_process() 24 if (callback->dev == NULL || callback->dev == evt->dev) { in input_process() 25 callback->callback(evt, callback->user_data); in input_process()
|
/Zephyr-latest/subsys/debug/coresight/ |
D | cs_trace_defmt.c | 8 static cs_trace_defmt_cb callback; variable 13 callback = cb; in cs_trace_defmt_init() 40 callback(cb_id, buf, cnt); in cs_trace_defmt_process() 52 callback(cb_id, buf, cnt); in cs_trace_defmt_process() 59 callback(curr_id, buf, cnt); in cs_trace_defmt_process()
|
/Zephyr-latest/drivers/kscan/ |
D | kscan_input.c | 20 kscan_callback_t callback; member 46 if (data->callback) { in kscan_input_cb() 47 data->callback(dev, data->row, data->col, data->pressed); in kscan_input_cb() 53 kscan_callback_t callback) in kscan_input_configure() argument 57 if (!callback) { in kscan_input_configure() 62 data->callback = callback; in kscan_input_configure()
|
/Zephyr-latest/include/zephyr/drivers/gpio/ |
D | gpio_utils.h | 60 struct gpio_callback *callback, in gpio_manage_callback() argument 63 __ASSERT(callback, "No callback!"); in gpio_manage_callback() 64 __ASSERT(callback->handler, "No callback handler!"); 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/drivers/watchdog/ |
D | wdt_ifx_cat1.c | 23 wdt_callback_t callback; member 36 if (dev_data->callback) { in ifx_cat1_wdt_isr_handler() 37 dev_data->callback(dev, 0); in ifx_cat1_wdt_isr_handler() 56 if (dev_data->callback) { in ifx_cat1_wdt_setup() 92 if (cfg->callback) { in ifx_cat1_wdt_install_timeout() 96 dev_data->callback = cfg->callback; in ifx_cat1_wdt_install_timeout()
|
D | wdt_smartbond.c | 23 wdt_callback_t callback; member 56 if (wdog_smartbond_dev_data.callback) { in wdog_smartbond_nmi_isr() 57 wdog_smartbond_dev_data.callback(wdog_smartbond_dev_data.wdog_device, 0); in wdog_smartbond_nmi_isr() 69 if (config->callback != NULL) { in wdg_smartbond_install_timeout() 86 data->callback = config->callback; in wdg_smartbond_install_timeout()
|
D | wdt_mcux_wwdt.c | 32 wdt_callback_t callback; member 121 if (cfg->callback && (CONFIG_WDT_MCUX_WWDT_WARNING_INTERRUPT_CFG > 0)) { in mcux_wwdt_install_timeout() 122 data->callback = cfg->callback; in mcux_wwdt_install_timeout() 124 } else if (cfg->callback) { in mcux_wwdt_install_timeout() 162 if (data->callback) { in mcux_wwdt_isr() 163 data->callback(dev, 0); in mcux_wwdt_isr()
|
/Zephyr-latest/tests/drivers/smbus/smbus_api/src/ |
D | test_smbus.c | 55 struct smbus_callback callback = { in ZTEST() local 65 ret = smbus_smbalert_remove_cb(dev, &callback); in ZTEST() 73 ret = smbus_smbalert_set_cb(dev, &callback); in ZTEST() 81 ret = smbus_smbalert_remove_cb(dev, &callback); in ZTEST() 100 struct smbus_callback callback = { in ZTEST() local 110 ret = smbus_host_notify_remove_cb(dev, &callback); in ZTEST() 118 ret = smbus_host_notify_set_cb(dev, &callback); in ZTEST() 126 ret = smbus_host_notify_remove_cb(dev, &callback); in ZTEST()
|
/Zephyr-latest/include/zephyr/mgmt/hawkbit/ |
D | event.h | 126 static inline void hawkbit_event_init_callback(struct hawkbit_event_callback *callback, in hawkbit_event_init_callback() argument 130 __ASSERT(callback, "Callback pointer should not be NULL"); in hawkbit_event_init_callback() 133 callback->handler = handler; in hawkbit_event_init_callback() 134 callback->event = event; in hawkbit_event_init_callback()
|
/Zephyr-latest/subsys/net/lib/zperf/ |
D | zperf_tcp_uploader.c | 158 upload_ctx->callback(ZPERF_SESSION_STARTED, NULL, in tcp_upload_async_work() 166 upload_ctx->callback(ZPERF_SESSION_ERROR, NULL, in tcp_upload_async_work() 193 upload_ctx->callback(ZPERF_SESSION_ERROR, NULL, in tcp_upload_async_work() 197 upload_ctx->callback(ZPERF_SESSION_PERIODIC_RESULT, &periodic_result, in tcp_upload_async_work() 210 upload_ctx->callback(ZPERF_SESSION_ERROR, NULL, in tcp_upload_async_work() 216 upload_ctx->callback(ZPERF_SESSION_FINISHED, &result, in tcp_upload_async_work() 223 zperf_callback callback, void *user_data) in zperf_tcp_upload_async() argument 225 if (param == NULL || callback == NULL) { in zperf_tcp_upload_async() 234 tcp_async_upload_ctx.callback = callback; in zperf_tcp_upload_async()
|
/Zephyr-latest/include/zephyr/drivers/ |
D | espi_saf.h | 152 struct espi_callback *callback, 488 static inline void espi_saf_init_callback(struct espi_callback *callback, in espi_saf_init_callback() argument 492 __ASSERT(callback, "Callback pointer should not be NULL"); in espi_saf_init_callback() 495 callback->handler = handler; in espi_saf_init_callback() 496 callback->evt_type = evt_type; in espi_saf_init_callback() 512 struct espi_callback *callback) in espi_saf_add_callback() argument 521 return api->manage_callback(dev, callback, true); in espi_saf_add_callback() 541 struct espi_callback *callback) in espi_saf_remove_callback() argument 550 return api->manage_callback(dev, callback, false); in espi_saf_remove_callback()
|
D | kscan.h | 61 kscan_callback_t callback); 86 kscan_callback_t callback); 89 kscan_callback_t callback) in z_impl_kscan_config() argument 94 return api->config(dev, callback); in z_impl_kscan_config()
|
/Zephyr-latest/subsys/tracing/user/ |
D | tracing_user.c | 61 void __weak sys_trace_gpio_init_callback_enter_user(struct gpio_callback *callback, in sys_trace_gpio_init_callback_enter_user() argument 64 void __weak sys_trace_gpio_init_callback_exit_user(struct gpio_callback *callback) {} in sys_trace_gpio_init_callback_exit_user() argument 66 struct gpio_callback *callback) {} in sys_trace_gpio_add_callback_enter_user() argument 69 struct gpio_callback *callback) {} in sys_trace_gpio_remove_callback_enter_user() argument 76 struct gpio_callback *callback) {} in sys_trace_gpio_fire_callback_user() argument 253 void sys_trace_gpio_init_callback_enter(struct gpio_callback *callback, in sys_trace_gpio_init_callback_enter() argument 256 sys_trace_gpio_init_callback_enter_user(callback, handler, pin_mask); in sys_trace_gpio_init_callback_enter() 259 void sys_trace_gpio_init_callback_exit(struct gpio_callback *callback) in sys_trace_gpio_init_callback_exit() argument 261 sys_trace_gpio_init_callback_exit_user(callback); in sys_trace_gpio_init_callback_exit() 264 void sys_trace_gpio_add_callback_enter(const struct device *port, struct gpio_callback *callback) in sys_trace_gpio_add_callback_enter() argument [all …]
|
/Zephyr-latest/subsys/task_wdt/ |
D | task_wdt.c | 37 task_wdt_callback_t callback; member 118 if (channels[channel_id].callback) { in task_wdt_trigger() 119 channels[channel_id].callback(channel_id, in task_wdt_trigger() 136 wdt_config.callback = NULL; in task_wdt_init() 155 int task_wdt_add(uint32_t reload_period, task_wdt_callback_t callback, in task_wdt_add() argument 176 channels[id].callback = callback; in task_wdt_add()
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_nrfx_ipc.c | 20 ipm_callback_t callback; member 33 if (nrfx_ipm_data.callback) { in nrfx_ipc_handler() 36 nrfx_ipm_data.callback(DEVICE_DT_INST_GET(0), in nrfx_ipc_handler() 76 nrfx_ipm_data.callback = cb; in ipm_nrf_register_callback() 114 ipm_callback_t callback[NRFX_IPC_ID_MAX_VALUE]; member 126 if (nrfx_vipm_data.callback[event_idx] != NULL) { in vipm_dispatcher() 127 nrfx_vipm_data.callback[event_idx] in vipm_dispatcher() 188 nrfx_vipm_data.callback[_idx] = cb; \
|
/Zephyr-latest/drivers/counter/ |
D | counter_gecko_stimer.c | 44 counter_alarm_callback_t callback; member 52 counter_top_callback_t callback; member 79 if (alarm_data->callback != NULL) { in alarm_callback() 80 alarm_data->callback( in alarm_callback() 90 if (top_data->callback != NULL) { in top_callback() 91 top_data->callback(top_data->dev, in top_callback() 158 dev_data->top_data.callback = cfg->callback; in counter_gecko_set_top_value() 214 dev_data->alarm[chan_id].callback = alarm_cfg->callback; in counter_gecko_set_alarm() 237 dev_data->alarm[chan_id].callback = NULL; in counter_gecko_cancel_alarm()
|
/Zephyr-latest/tests/subsys/debug/cs_trace_defmt/src/ |
D | main.c | 14 static void callback(uint32_t id, const uint8_t *data, size_t len) in callback() function 27 err = cs_trace_defmt_init(callback); in ZTEST() 66 cs_trace_defmt_init(callback); in ZTEST() 93 cs_trace_defmt_init(callback); in ZTEST()
|