/Zephyr-Core-3.4.0/subsys/bluetooth/host/ |
D | testing.c | 23 void bt_test_cb_register(struct bt_test_cb *cb) in bt_test_cb_register() argument 25 sys_slist_append(&cb_slist, &cb->node); in bt_test_cb_register() 28 void bt_test_cb_unregister(struct bt_test_cb *cb) in bt_test_cb_unregister() argument 30 sys_slist_find_and_remove(&cb_slist, &cb->node); in bt_test_cb_unregister() 37 struct bt_test_cb *cb; in bt_test_mesh_net_recv() local 39 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_test_mesh_net_recv() 40 if (cb->mesh_net_recv) { in bt_test_mesh_net_recv() 41 cb->mesh_net_recv(ttl, ctl, src, dst, payload, in bt_test_mesh_net_recv() 50 struct bt_test_cb *cb; in bt_test_mesh_model_recv() local 52 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_test_mesh_model_recv() [all …]
|
D | ecc.c | 44 struct bt_pub_key_cb *cb; in bt_pub_key_gen() local 74 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen() 75 if (cb == new_cb) { in bt_pub_key_gen() 95 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen() 96 if (cb->func) { in bt_pub_key_gen() 97 cb->func(NULL); in bt_pub_key_gen() 110 struct bt_pub_key_cb *cb; in bt_pub_key_hci_disrupted() local 114 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_hci_disrupted() 115 if (cb->func) { in bt_pub_key_hci_disrupted() 116 cb->func(NULL); in bt_pub_key_hci_disrupted() [all …]
|
D | conn.c | 72 bt_conn_tx_cb_t cb = tx->cb; in conn_tx_destroy() local 80 cb(conn, user_data, -ESHUTDOWN); in conn_tx_destroy() 203 tx->cb = NULL; in tx_free() 216 bt_conn_tx_cb_t cb; in tx_notify() local 230 LOG_DBG("tx %p cb %p user_data %p", tx, tx->cb, tx->user_data); in tx_notify() 233 cb = tx->cb; in tx_notify() 243 cb(conn, user_data, 0); in tx_notify() 417 bt_conn_tx_cb_t cb, bool has_ts) in bt_conn_send_iso_cb() argument 419 int err = bt_conn_send_cb(conn, buf, cb, NULL); in bt_conn_send_iso_cb() 435 bt_conn_tx_cb_t cb, void *user_data) in bt_conn_send_cb() argument [all …]
|
/Zephyr-Core-3.4.0/drivers/interrupt_controller/ |
D | intc_xmc4xxx.c | 44 struct isr_cb cb[MAX_ISR_NUM]; member 70 struct isr_cb *cb; in intc_xmc4xxx_gpio_enable_interrupt() local 80 cb = &data->cb[line]; in intc_xmc4xxx_gpio_enable_interrupt() 81 if (cb->fn) { in intc_xmc4xxx_gpio_enable_interrupt() 101 cb->port_id = port_id; in intc_xmc4xxx_gpio_enable_interrupt() 102 cb->pin = pin; in intc_xmc4xxx_gpio_enable_interrupt() 103 cb->mode = mode; in intc_xmc4xxx_gpio_enable_interrupt() 104 cb->fn = fn; in intc_xmc4xxx_gpio_enable_interrupt() 105 cb->data = user_data; in intc_xmc4xxx_gpio_enable_interrupt() 151 for (int line = 0; line < ARRAY_SIZE(data->cb); line++) { in intc_xmc4xxx_gpio_disable_interrupt() [all …]
|
D | intc_exti_stm32.c | 39 stm32_exti_callback_t cb; member 46 struct __exti_cb cb[NUM_EXTI_LINES]; member 189 if (!data->cb[line].cb) { in stm32_exti_isr() 193 data->cb[line].cb(line, data->cb[line].data); in stm32_exti_isr() 248 int stm32_exti_set_callback(int line, stm32_exti_callback_t cb, void *arg) in stm32_exti_set_callback() argument 253 if ((data->cb[line].cb == cb) && (data->cb[line].data == arg)) { in stm32_exti_set_callback() 258 if (data->cb[line].cb != NULL) { in stm32_exti_set_callback() 262 data->cb[line].cb = cb; in stm32_exti_set_callback() 263 data->cb[line].data = arg; in stm32_exti_set_callback() 273 data->cb[line].cb = NULL; in stm32_exti_unset_callback() [all …]
|
D | intc_eirq_nxp_s32.c | 33 eirq_nxp_s32_callback_t cb; member 39 struct eirq_nxp_s32_cb *cb; member 43 eirq_nxp_s32_callback_t cb, uint8_t pin, void *arg) in eirq_nxp_s32_set_callback() argument 49 if (data->cb[line].cb) { in eirq_nxp_s32_set_callback() 53 data->cb[line].cb = cb; in eirq_nxp_s32_set_callback() 54 data->cb[line].pin = pin; in eirq_nxp_s32_set_callback() 55 data->cb[line].data = arg; in eirq_nxp_s32_set_callback() 66 data->cb[line].cb = NULL; in eirq_nxp_s32_unset_callback() 67 data->cb[line].pin = 0; in eirq_nxp_s32_unset_callback() 68 data->cb[line].data = NULL; in eirq_nxp_s32_unset_callback() [all …]
|
D | intc_miwu.c | 101 struct miwu_callback *cb, *tmp; in intc_miwu_dispatch_isr() local 103 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(cb_list, cb, tmp, node) { in intc_miwu_dispatch_isr() 105 if (cb->io_cb.params.cb_type == NPCX_MIWU_CALLBACK_GPIO) { in intc_miwu_dispatch_isr() 106 if (BIT(cb->io_cb.params.wui.bit) & mask) { in intc_miwu_dispatch_isr() 107 __ASSERT(cb->io_cb.handler, "No GPIO callback handler!"); in intc_miwu_dispatch_isr() 108 cb->io_cb.handler( in intc_miwu_dispatch_isr() 109 npcx_get_gpio_dev(cb->io_cb.params.gpio_port), in intc_miwu_dispatch_isr() 110 (struct gpio_callback *)cb, in intc_miwu_dispatch_isr() 111 cb->io_cb.params.pin_mask); in intc_miwu_dispatch_isr() 114 if (BIT(cb->dev_cb.params.wui.bit) & mask) { in intc_miwu_dispatch_isr() [all …]
|
/Zephyr-Core-3.4.0/subsys/net/ip/ |
D | net_mgmt.c | 106 struct net_mgmt_event_callback *cb, *tmp; in mgmt_rebuild_global_event_mask() local 110 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&event_callbacks, cb, tmp, node) { in mgmt_rebuild_global_event_mask() 111 mgmt_add_event_mask(cb->event_mask); in mgmt_rebuild_global_event_mask() 131 struct net_mgmt_event_callback *cb, *tmp; in mgmt_run_callbacks() local 138 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&event_callbacks, cb, tmp, node) { in mgmt_run_callbacks() 140 NET_MGMT_GET_LAYER(cb->event_mask)) || in mgmt_run_callbacks() 142 NET_MGMT_GET_LAYER_CODE(cb->event_mask)) || in mgmt_run_callbacks() 144 NET_MGMT_GET_COMMAND(cb->event_mask) && in mgmt_run_callbacks() 146 NET_MGMT_GET_COMMAND(cb->event_mask)))) { in mgmt_run_callbacks() 152 cb->info = (void *)mgmt_event->info; in mgmt_run_callbacks() [all …]
|
D | tcp_internal.h | 82 void net_tcp_foreach(net_tcp_cb_t cb, void *user_data); 84 static inline void net_tcp_foreach(net_tcp_cb_t cb, void *user_data) in net_tcp_foreach() argument 86 ARG_UNUSED(cb); in net_tcp_foreach() 130 net_context_connect_cb_t cb, 138 net_context_connect_cb_t cb, void *user_data) in net_tcp_connect() argument 145 ARG_UNUSED(cb); in net_tcp_connect() 181 int net_tcp_accept(struct net_context *context, net_tcp_accept_cb_t cb, 185 net_tcp_accept_cb_t cb, void *user_data) in net_tcp_accept() argument 188 ARG_UNUSED(cb); in net_tcp_accept() 205 int net_tcp_send_data(struct net_context *context, net_context_send_cb_t cb, [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/usb_c/ |
D | usbc.h | 377 void usbc_set_vconn_control_cb(const struct device *dev, const tcpc_vconn_control_cb_t cb); 385 void usbc_set_vconn_discharge_cb(const struct device *dev, const tcpc_vconn_discharge_cb_t cb); 393 void usbc_set_policy_cb_check(const struct device *dev, const policy_cb_check_t cb); 402 void usbc_set_policy_cb_notify(const struct device *dev, const policy_cb_notify_t cb); 411 void usbc_set_policy_cb_wait_notify(const struct device *dev, const policy_cb_wait_notify_t cb); 419 void usbc_set_policy_cb_get_snk_cap(const struct device *dev, const policy_cb_get_snk_cap_t cb); 428 void usbc_set_policy_cb_set_src_cap(const struct device *dev, const policy_cb_set_src_cap_t cb); 436 void usbc_set_policy_cb_get_rdo(const struct device *dev, const policy_cb_get_rdo_t cb); 446 const policy_cb_is_snk_at_default_t cb); 455 void usbc_set_policy_cb_get_src_rp(const struct device *dev, const policy_cb_get_src_rp_t cb); [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/mesh/ |
D | pb_gatt.c | 27 prov_bearer_send_complete_t cb; member 33 const struct prov_bearer_cb *cb; member 54 const struct prov_bearer_cb *cb = link.cb; in link_closed() local 59 cb->link_closed(&bt_mesh_pb_gatt, cb_data, status); in link_closed() 88 if (link.conn != conn || !link.cb) { in bt_mesh_pb_gatt_recv() 100 link.cb->recv(&bt_mesh_pb_gatt, link.cb_data, buf); in bt_mesh_pb_gatt_recv() 116 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_start() 159 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_cli_open() 165 const struct prov_bearer_cb *cb, void *cb_data) in prov_link_open() argument 169 link.cb = cb; in prov_link_open() [all …]
|
D | adv.h | 36 const struct bt_mesh_send_cb *cb; member 55 void bt_mesh_adv_send(struct net_buf *buf, const struct bt_mesh_send_cb *cb, 92 if (adv->cb && adv->cb->start) { in bt_mesh_adv_send_start() 93 adv->cb->start(duration, err, adv->cb_data); in bt_mesh_adv_send_start() 97 adv->cb = NULL; in bt_mesh_adv_send_start() 105 if (adv->started && adv->cb && adv->cb->end) { in bt_mesh_adv_send_end() 106 adv->cb->end(err, adv->cb_data); in bt_mesh_adv_send_end()
|
D | health_srv.c | 48 if (srv->cb && srv->cb->fault_get_reg) { in health_get_registered() 52 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered() 82 if (srv->cb && srv->cb->fault_get_cur) { in health_get_current() 86 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current() 139 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear_unrel() 140 return srv->cb->fault_clear(model, company_id); in health_fault_clear_unrel() 158 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear() 161 err = srv->cb->fault_clear(model, company_id); in health_fault_clear() 189 if (srv->cb && srv->cb->fault_test) { in health_fault_test_unrel() 190 return srv->cb->fault_test(model, test_id, company_id); in health_fault_test_unrel() [all …]
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/gpio/ |
D | gpio_utils.h | 73 struct gpio_callback *cb, *tmp; in gpio_fire_callbacks() local 75 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) { in gpio_fire_callbacks() 76 if (cb->pin_mask & pins) { in gpio_fire_callbacks() 77 __ASSERT(cb->handler, "No callback handler!"); in gpio_fire_callbacks() 78 cb->handler(port, cb, cb->pin_mask & pins); in gpio_fire_callbacks()
|
/Zephyr-Core-3.4.0/drivers/espi/ |
D | espi_utils.h | 57 struct espi_callback *cb, *tmp; in espi_send_callbacks() local 59 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) { in espi_send_callbacks() 60 if (cb->evt_type & evt.evt_type) { in espi_send_callbacks() 61 __ASSERT(cb->handler, "No callback handler!"); in espi_send_callbacks() 62 cb->handler(dev, cb, evt); in espi_send_callbacks()
|
/Zephyr-Core-3.4.0/include/zephyr/net/ |
D | net_offload.h | 79 net_context_connect_cb_t cb, 88 net_tcp_accept_cb_t cb, 96 net_context_send_cb_t cb, 106 net_context_send_cb_t cb, 115 net_context_recv_cb_t cb, 236 net_context_connect_cb_t cb, in net_offload_connect() argument 245 context, addr, addrlen, cb, in net_offload_connect() 279 net_tcp_accept_cb_t cb, in net_offload_accept() argument 288 context, cb, in net_offload_accept() 321 net_context_send_cb_t cb, in net_offload_send() argument [all …]
|
D | lwm2m.h | 428 void lwm2m_firmware_set_write_cb(lwm2m_engine_set_data_cb_t cb); 446 void lwm2m_firmware_set_write_cb_inst(uint16_t obj_inst_id, lwm2m_engine_set_data_cb_t cb); 464 void lwm2m_firmware_set_cancel_cb(lwm2m_engine_user_cb_t cb); 482 void lwm2m_firmware_set_cancel_cb_inst(uint16_t obj_inst_id, lwm2m_engine_user_cb_t cb); 501 void lwm2m_firmware_set_update_cb(lwm2m_engine_execute_cb_t cb); 519 void lwm2m_firmware_set_update_cb_inst(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 545 int lwm2m_swmgmt_set_activate_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 558 int lwm2m_swmgmt_set_deactivate_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 571 int lwm2m_swmgmt_set_install_package_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 584 int lwm2m_swmgmt_set_delete_package_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); [all …]
|
/Zephyr-Core-3.4.0/subsys/bluetooth/services/ias/ |
D | ias.c | 60 STRUCT_SECTION_FOREACH(bt_ias_cb, cb) { in set_alert_level() 61 if (cb->high_alert) { in set_alert_level() 62 cb->high_alert(); in set_alert_level() 67 STRUCT_SECTION_FOREACH(bt_ias_cb, cb) { in set_alert_level() 68 if (cb->mild_alert) { in set_alert_level() 69 cb->mild_alert(); in set_alert_level() 74 STRUCT_SECTION_FOREACH(bt_ias_cb, cb) { in set_alert_level() 75 if (cb->no_alert) { in set_alert_level() 76 cb->no_alert(); in set_alert_level()
|
/Zephyr-Core-3.4.0/drivers/smbus/ |
D | smbus_utils.h | 66 struct smbus_callback *cb, *tmp; in smbus_fire_callbacks() local 68 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) { in smbus_fire_callbacks() 69 if (cb->addr == addr) { in smbus_fire_callbacks() 70 __ASSERT(cb->handler, "No callback handler!"); in smbus_fire_callbacks() 71 cb->handler(dev, cb, addr); in smbus_fire_callbacks()
|
/Zephyr-Core-3.4.0/subsys/bluetooth/audio/ |
D | tmap.c | 29 static struct bt_tmap_cb *cb; variable 44 if (cb->discovery_complete) { in tmap_char_read() 45 cb->discovery_complete(0, conn, err); in tmap_char_read() 53 if (cb->discovery_complete) { in tmap_char_read() 54 cb->discovery_complete(0, conn, BT_ATT_ERR_INVALID_ATTRIBUTE_LEN); in tmap_char_read() 64 if (cb->discovery_complete) { in tmap_char_read() 65 cb->discovery_complete((enum bt_tmap_role)peer_role, conn, 0); in tmap_char_read() 68 if (cb->discovery_complete) { in tmap_char_read() 69 cb->discovery_complete(0, conn, BT_ATT_ERR_VALUE_NOT_ALLOWED); in tmap_char_read() 86 if (cb->discovery_complete) { in discover_func() [all …]
|
D | aics_client.c | 81 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_notify_handler() 82 inst->cli.cb->state(inst, 0, state->gain, in aics_client_notify_handler() 91 if (inst->cli.cb && inst->cli.cb->status) { in aics_client_notify_handler() 92 inst->cli.cb->status(inst, 0, *status); in aics_client_notify_handler() 108 if (inst->cli.cb && inst->cli.cb->description) { in aics_client_notify_handler() 109 inst->cli.cb->description(inst, 0, desc); in aics_client_notify_handler() 136 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb() 137 inst->cli.cb->state(inst, cb_err, 0, 0, 0); in aics_client_read_state_cb() 157 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb() 158 inst->cli.cb->state(inst, cb_err, state->gain, in aics_client_read_state_cb() [all …]
|
/Zephyr-Core-3.4.0/subsys/usb/usb_c/ |
D | usbc_stack.c | 210 const policy_cb_set_port_partner_snk_cap_t cb) in usbc_set_policy_cb_set_port_partner_snk_cap() argument 214 data->policy_cb_set_port_partner_snk_cap = cb; in usbc_set_policy_cb_set_port_partner_snk_cap() 222 const policy_cb_get_src_caps_t cb) in usbc_set_policy_cb_get_src_caps() argument 226 data->policy_cb_get_src_caps = cb; in usbc_set_policy_cb_get_src_caps() 257 const policy_cb_check_sink_request_t cb) in usbc_set_policy_cb_check_sink_request() argument 261 data->policy_cb_check_sink_request = cb; in usbc_set_policy_cb_check_sink_request() 268 const policy_cb_is_ps_ready_t cb) in usbc_set_policy_cb_is_ps_ready() argument 272 data->policy_is_ps_ready = cb; in usbc_set_policy_cb_is_ps_ready() 279 const policy_cb_present_contract_is_valid_t cb) in usbc_set_policy_cb_present_contract_is_valid() argument 283 data->policy_present_contract_is_valid = cb; in usbc_set_policy_cb_present_contract_is_valid() [all …]
|
/Zephyr-Core-3.4.0/samples/userspace/prod_consumer/src/ |
D | sample_driver_foo.c | 25 sample_driver_callback_t cb; member 39 sample_driver_callback_t cb, in sample_driver_foo_set_callback() argument 46 data->cb = cb; in sample_driver_foo_set_callback() 84 if (data->cb) { in sample_driver_foo_isr() 85 data->cb(data->dev, data->cb_context, data_payload); in sample_driver_foo_isr()
|
/Zephyr-Core-3.4.0/subsys/mgmt/mcumgr/transport/src/ |
D | serial_util.c | 150 static int mcumgr_serial_tx_small(const void *data, int len, mcumgr_serial_tx_cb cb) in mcumgr_serial_tx_small() argument 160 return cb(b64, 4); in mcumgr_serial_tx_small() 173 int mcumgr_serial_tx_pkt(const uint8_t *data, int len, mcumgr_serial_tx_cb cb) in mcumgr_serial_tx_pkt() argument 201 rc = cb(&u16, sizeof(u16)); in mcumgr_serial_tx_pkt() 217 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 257 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 274 rc = mcumgr_serial_tx_small(raw, 2, cb); in mcumgr_serial_tx_pkt() 282 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 290 rc = mcumgr_serial_tx_small(raw, 3, cb); in mcumgr_serial_tx_pkt() 296 rc = mcumgr_serial_tx_small(raw, 1, cb); in mcumgr_serial_tx_pkt() [all …]
|
/Zephyr-Core-3.4.0/drivers/wifi/eswifi/ |
D | eswifi_offload.c | 69 net_context_connect_cb_t cb; in eswifi_off_connect_work() local 80 cb = socket->conn_cb; in eswifi_off_connect_work() 94 if (cb) { in eswifi_off_connect_work() 95 cb(context, err, user_data); in eswifi_off_connect_work() 102 net_context_connect_cb_t cb, in eswifi_off_connect() argument 126 socket->conn_cb = cb; in eswifi_off_connect() 145 if (cb) { in eswifi_off_connect() 146 cb(context, err, user_data); in eswifi_off_connect() 153 net_tcp_accept_cb_t cb, int32_t timeout, in eswifi_off_accept() argument 168 socket->accept_cb = cb; in eswifi_off_accept() [all …]
|