Home
last modified time | relevance | path

Searched refs:user_cb (Results 1 – 25 of 30) sorted by relevance

12

/Zephyr-latest/kernel/
Dthread_monitor.c38 void k_thread_foreach(k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach() argument
43 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach()
56 user_cb(thread, user_data); in k_thread_foreach()
64 void k_thread_foreach_unlocked(k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach_unlocked() argument
69 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach_unlocked()
77 user_cb(thread, user_data); in k_thread_foreach_unlocked()
88 void k_thread_foreach_filter_by_cpu(unsigned int cpu, k_thread_user_cb_t user_cb, in k_thread_foreach_filter_by_cpu() argument
94 __ASSERT(user_cb != NULL, "user_cb can not be NULL"); in k_thread_foreach_filter_by_cpu()
109 user_cb(thread, user_data); in k_thread_foreach_filter_by_cpu()
118 void k_thread_foreach_unlocked_filter_by_cpu(unsigned int cpu, k_thread_user_cb_t user_cb, in k_thread_foreach_unlocked_filter_by_cpu() argument
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_cmsdk_apb.c73 static void (*user_cb)(const struct device *dev, int channel_id); variable
133 user_cb = config->callback; in wdog_cmsdk_apb_install_timeout()
182 if (user_cb != NULL) { in wdog_cmsdk_apb_isr()
183 user_cb(wdog_r, 0); in wdog_cmsdk_apb_isr()
/Zephyr-latest/include/zephyr/net/prometheus/
Dcollector.h60 prometheus_scrape_cb_t user_cb; member
81 .user_cb = COND_CODE_0( \
/Zephyr-latest/subsys/storage/flash_map/
Dflash_map.c22 void flash_area_foreach(flash_area_cb_t user_cb, void *user_data) in flash_area_foreach() argument
25 user_cb(&flash_map[i], user_data); in flash_area_foreach()
/Zephyr-latest/include/zephyr/modbus/
Dmodbus.h455 #define MODBUS_CUSTOM_FC_DEFINE(name, user_cb, user_fc, userdata) \ argument
457 .cb = user_cb, \
501 struct modbus_user_callbacks *user_cb; member
/Zephyr-latest/drivers/serial/
Dusart_gd32.c38 uart_irq_callback_user_data_t user_cb; member
48 if (data->user_cb) { in usart_gd32_isr()
49 data->user_cb(dev, data->user_data); in usart_gd32_isr()
282 data->user_cb = cb; in usart_gd32_irq_callback_set()
Duart_stm32.h94 uart_irq_callback_user_data_t user_cb; member
Duart_numaker.c39 uart_irq_callback_user_data_t user_cb; member
365 pData->user_cb = cb; in uart_numaker_irq_callback_set()
373 if (pData->user_cb) { in uart_numaker_isr()
374 pData->user_cb(dev, pData->user_data); in uart_numaker_isr()
Duart_renesas_ra_sci.c48 uart_irq_callback_user_data_t user_cb; member
516 data->user_cb = cb; in uart_ra_sci_irq_callback_set()
556 data->user_cb = NULL; in uart_ra_sci_async_callback_set()
984 if (data->user_cb != NULL) { in uart_ra_sci_rxi_isr()
985 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_rxi_isr()
1010 if (data->user_cb != NULL) { in uart_ra_sci_txi_isr()
1011 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_txi_isr()
1027 if (data->user_cb != NULL) { in uart_ra_sci_tei_isr()
1028 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_tei_isr()
1044 if (data->user_cb != NULL) { in uart_ra_sci_eri_isr()
[all …]
Duart_renesas_ra8_sci_b.c41 uart_irq_callback_user_data_t user_cb; member
426 data->user_cb = cb; in uart_ra_sci_b_irq_callback_set()
914 if (data->user_cb != NULL) { in uart_ra_sci_b_rxi_isr()
915 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_b_rxi_isr()
949 if (data->user_cb != NULL) { in uart_ra_sci_b_txi_isr()
950 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_b_txi_isr()
966 if (data->user_cb != NULL) { in uart_ra_sci_b_tei_isr()
967 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_b_tei_isr()
984 if (data->user_cb != NULL) { in uart_ra_sci_b_eri_isr()
985 data->user_cb(dev, data->user_cb_data); in uart_ra_sci_b_eri_isr()
Duart_sedi.c114 uart_irq_callback_user_data_t user_cb; member
410 drv_data->user_cb = cb; in uart_sedi_irq_callback_set()
420 if (drv_data->user_cb) { in uart_sedi_isr()
421 drv_data->user_cb(dev, drv_data->user_data); in uart_sedi_isr()
Duart_xlnx_ps.c161 uart_irq_callback_user_data_t user_cb; member
1078 dev_data->user_cb = cb; in uart_xlnx_ps_irq_callback_set()
1093 if (data->user_cb) { in uart_xlnx_ps_isr()
1094 data->user_cb(dev, data->user_data); in uart_xlnx_ps_isr()
Duart_npcx.c87 uart_irq_callback_user_data_t user_cb; member
352 data->user_cb = cb; in uart_npcx_irq_callback_set()
519 data->user_cb = NULL; in uart_npcx_async_callback_set()
838 if (data->user_cb) { in uart_npcx_isr()
839 data->user_cb(dev, data->user_data); in uart_npcx_isr()
/Zephyr-latest/include/zephyr/mgmt/mcumgr/mgmt/
Dmgmt.h144 void mgmt_groups_foreach(mgmt_groups_cb_t user_cb, void *user_data);
/Zephyr-latest/subsys/mgmt/mcumgr/mgmt/src/
Dmgmt.c229 void mgmt_groups_foreach(mgmt_groups_cb_t user_cb, void *user_data) in mgmt_groups_foreach() argument
237 ok = user_cb(group, user_data); in mgmt_groups_foreach()
/Zephyr-latest/subsys/net/lib/prometheus/
Dcollector.c204 if (ctx->collector->user_cb) { in prometheus_collector_walk_metrics()
205 ret = ctx->collector->user_cb(ctx->collector, ctx->metric, in prometheus_collector_walk_metrics()
Dformatter.c261 if (collector->user_cb) { in prometheus_format_exposition()
262 ret = collector->user_cb(collector, metric, collector->user_data); in prometheus_format_exposition()
/Zephyr-latest/subsys/tracing/test/
Dtracing_string_format_test.c538 void sys_trace_k_thread_foreach_unlocked_enter(k_thread_user_cb_t user_cb, void *data) in sys_trace_k_thread_foreach_unlocked_enter() argument
540 TRACING_STRING("%s: %p (%p) enter\n", __func__, user_cb, data); in sys_trace_k_thread_foreach_unlocked_enter()
543 void sys_trace_k_thread_foreach_unlocked_exit(k_thread_user_cb_t user_cb, void *data) in sys_trace_k_thread_foreach_unlocked_exit() argument
545 TRACING_STRING("%s: %p (%p) exit\n", __func__, user_cb, data); in sys_trace_k_thread_foreach_unlocked_exit()
Dtracing_test.h11 #define sys_port_trace_k_thread_foreach_enter() sys_trace_k_thread_foreach_enter(user_cb, user_data)
12 #define sys_port_trace_k_thread_foreach_exit() sys_trace_k_thread_foreach_exit(user_cb, user_data)
14 sys_trace_k_thread_foreach_unlocked_enter(user_cb, user_data)
16 sys_trace_k_thread_foreach_unlocked_exit(user_cb, user_data)
482 void sys_trace_k_thread_foreach_enter(k_thread_user_cb_t user_cb, void *user_data);
483 void sys_trace_k_thread_foreach_exit(k_thread_user_cb_t user_cb, void *user_data);
484 void sys_trace_k_thread_foreach_unlocked_enter(k_thread_user_cb_t user_cb, void *user_data);
485 void sys_trace_k_thread_foreach_unlocked_exit(k_thread_user_cb_t user_cb, void *user_data);
/Zephyr-latest/subsys/mgmt/ec_host_cmd/
Dec_host_cmd_handler.c292 hc->user_cb = cb; in ec_host_cmd_set_user_cb()
339 if (!hc->rx_status && hc->user_cb) { in ec_host_cmd_rx_notify()
340 hc->user_cb(rx, hc->user_data); in ec_host_cmd_rx_notify()
/Zephyr-latest/samples/subsys/modbus/rtu_server/src/
Dmain.c103 .user_cb = &mbs_cbs,
/Zephyr-latest/include/zephyr/mgmt/ec_host_cmd/
Dec_host_cmd.h108 ec_host_cmd_user_cb_t user_cb; member
/Zephyr-latest/subsys/modbus/
Dmodbus_core.c235 if (param.server.user_cb == NULL) { in modbus_init_server()
280 ctx->mbs_user_cb = param.server.user_cb; in modbus_init_server()
/Zephyr-latest/include/zephyr/storage/
Dflash_map.h286 void flash_area_foreach(flash_area_cb_t user_cb, void *user_data);
/Zephyr-latest/include/zephyr/
Dkernel.h123 void k_thread_foreach(k_thread_user_cb_t user_cb, void *user_data);
145 k_thread_user_cb_t user_cb, void *user_data);
149 k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach_filter_by_cpu() argument
153 k_thread_foreach(user_cb, user_data); in k_thread_foreach_filter_by_cpu()
185 k_thread_user_cb_t user_cb, void *user_data);
220 k_thread_user_cb_t user_cb, void *user_data);
224 k_thread_user_cb_t user_cb, void *user_data) in k_thread_foreach_unlocked_filter_by_cpu() argument
228 k_thread_foreach_unlocked(user_cb, user_data); in k_thread_foreach_unlocked_filter_by_cpu()

12