/Zephyr-latest/subsys/bluetooth/mesh/ |
D | testing.c | 24 int bt_mesh_test_cb_register(struct bt_mesh_test_cb *cb) in bt_mesh_test_cb_register() argument 26 if (sys_slist_find(&cb_slist, &cb->node, NULL)) { in bt_mesh_test_cb_register() 30 sys_slist_append(&cb_slist, &cb->node); in bt_mesh_test_cb_register() 35 void bt_mesh_test_cb_unregister(struct bt_mesh_test_cb *cb) in bt_mesh_test_cb_unregister() argument 37 sys_slist_find_and_remove(&cb_slist, &cb->node); in bt_mesh_test_cb_unregister() 43 struct bt_mesh_test_cb *cb; in bt_mesh_test_net_recv() local 45 SYS_SLIST_FOR_EACH_CONTAINER(&cb_slist, cb, node) { in bt_mesh_test_net_recv() 46 if (cb->net_recv) { in bt_mesh_test_net_recv() 47 cb->net_recv(ttl, ctl, src, dst, payload, payload_len); in bt_mesh_test_net_recv() 54 struct bt_mesh_test_cb *cb; in bt_mesh_test_model_recv() local [all …]
|
D | pb_gatt.c | 26 prov_bearer_send_complete_t cb; member 32 const struct prov_bearer_cb *cb; member 53 const struct prov_bearer_cb *cb = link.cb; in link_closed() local 58 cb->link_closed(&bt_mesh_pb_gatt, cb_data, status); in link_closed() 87 if (link.conn != conn || !link.cb) { in bt_mesh_pb_gatt_recv() 99 link.cb->recv(&bt_mesh_pb_gatt, link.cb_data, buf); in bt_mesh_pb_gatt_recv() 115 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_start() 158 link.cb->link_opened(&bt_mesh_pb_gatt, link.cb_data); in bt_mesh_pb_gatt_cli_open() 164 const struct prov_bearer_cb *cb, void *cb_data) in prov_link_open() argument 168 link.cb = cb; in prov_link_open() [all …]
|
D | health_srv.c | 47 if (srv->cb && srv->cb->fault_get_reg) { in health_get_registered() 51 err = srv->cb->fault_get_reg(mod, company_id, test_id, in health_get_registered() 81 if (srv->cb && srv->cb->fault_get_cur) { in health_get_current() 85 err = srv->cb->fault_get_cur(mod, test_id, &company_id, in health_get_current() 138 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear_unrel() 139 return srv->cb->fault_clear(model, company_id); in health_fault_clear_unrel() 157 if (srv->cb && srv->cb->fault_clear) { in health_fault_clear() 160 err = srv->cb->fault_clear(model, company_id); in health_fault_clear() 188 if (srv->cb && srv->cb->fault_test) { in health_fault_test_unrel() 189 return srv->cb->fault_test(model, test_id, company_id); in health_fault_test_unrel() [all …]
|
/Zephyr-latest/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_wkpu_nxp_s32.c | 43 wkpu_nxp_s32_callback_t cb; member 49 struct wkpu_nxp_s32_cb *cb; member 67 if (data->cb[irq].cb != NULL) { in wkpu_nxp_s32_interrupt_handler() 68 data->cb[irq].cb(data->cb[irq].pin, data->cb[irq].data); in wkpu_nxp_s32_interrupt_handler() 76 wkpu_nxp_s32_callback_t cb, void *arg) in wkpu_nxp_s32_set_callback() argument 82 if ((data->cb[irq].cb == cb) && (data->cb[irq].data == arg)) { in wkpu_nxp_s32_set_callback() 86 if (data->cb[irq].cb) { in wkpu_nxp_s32_set_callback() 90 data->cb[irq].cb = cb; in wkpu_nxp_s32_set_callback() 91 data->cb[irq].pin = pin; in wkpu_nxp_s32_set_callback() 92 data->cb[irq].data = arg; in wkpu_nxp_s32_set_callback() [all …]
|
D | intc_eirq_nxp_s32.c | 52 eirq_nxp_s32_callback_t cb; member 58 struct eirq_nxp_s32_cb *cb; member 79 if (data->cb[irq].cb != NULL) { in eirq_nxp_s32_interrupt_handler() 80 data->cb[irq].cb(data->cb[irq].pin, data->cb[irq].data); in eirq_nxp_s32_interrupt_handler() 88 eirq_nxp_s32_callback_t cb, void *arg) in eirq_nxp_s32_set_callback() argument 94 if ((data->cb[irq].cb == cb) && (data->cb[irq].data == arg)) { in eirq_nxp_s32_set_callback() 98 if (data->cb[irq].cb) { in eirq_nxp_s32_set_callback() 102 data->cb[irq].cb = cb; in eirq_nxp_s32_set_callback() 103 data->cb[irq].pin = pin; in eirq_nxp_s32_set_callback() 104 data->cb[irq].data = arg; in eirq_nxp_s32_set_callback() [all …]
|
D | intc_exti_stm32.c | 44 stm32_gpio_irq_cb_t cb; member 51 struct __exti_cb cb[NUM_EXTI_LINES]; member 149 if (!data->cb[line_num].cb) { in stm32_exti_isr() 154 data->cb[line_num].cb(line, data->cb[line_num].data); in stm32_exti_isr() 317 int stm32_gpio_intc_set_irq_callback(stm32_gpio_irq_line_t line, stm32_gpio_irq_cb_t cb, void *user) in stm32_gpio_intc_set_irq_callback() argument 323 if ((data->cb[line_num].cb == cb) && (data->cb[line_num].data == user)) { in stm32_gpio_intc_set_irq_callback() 328 if (data->cb[line_num].cb != NULL) { in stm32_gpio_intc_set_irq_callback() 332 data->cb[line_num].cb = cb; in stm32_gpio_intc_set_irq_callback() 333 data->cb[line_num].data = user; in stm32_gpio_intc_set_irq_callback() 344 data->cb[line_num].cb = NULL; in stm32_gpio_intc_remove_irq_callback() [all …]
|
/Zephyr-latest/subsys/lorawan/ |
D | lorawan_emul.c | 41 struct lorawan_downlink_cb *cb; in lorawan_emul_send_downlink() local 44 SYS_SLIST_FOR_EACH_CONTAINER(&dl_callbacks, cb, node) { in lorawan_emul_send_downlink() 45 if ((cb->port == LW_RECV_PORT_ANY) || (cb->port == port)) { in lorawan_emul_send_downlink() 46 cb->cb(port, data_pending, rssi, snr, len, data); in lorawan_emul_send_downlink() 126 void lorawan_register_battery_level_callback(lorawan_battery_level_cb_t cb) in lorawan_register_battery_level_callback() argument 128 battery_level_cb = cb; in lorawan_register_battery_level_callback() 131 void lorawan_register_downlink_callback(struct lorawan_downlink_cb *cb) in lorawan_register_downlink_callback() argument 133 sys_slist_append(&dl_callbacks, &cb->node); in lorawan_register_downlink_callback() 136 void lorawan_register_dr_changed_callback(lorawan_dr_changed_cb_t cb) in lorawan_register_dr_changed_callback() argument 138 dr_changed_cb = cb; in lorawan_register_dr_changed_callback() [all …]
|
/Zephyr-latest/include/zephyr/usb_c/ |
D | usbc.h | 388 void usbc_set_vconn_control_cb(const struct device *dev, const tcpc_vconn_control_cb_t cb); 396 void usbc_set_vconn_discharge_cb(const struct device *dev, const tcpc_vconn_discharge_cb_t cb); 404 void usbc_set_policy_cb_check(const struct device *dev, const policy_cb_check_t cb); 413 void usbc_set_policy_cb_notify(const struct device *dev, const policy_cb_notify_t cb); 422 void usbc_set_policy_cb_wait_notify(const struct device *dev, const policy_cb_wait_notify_t cb); 430 void usbc_set_policy_cb_get_snk_cap(const struct device *dev, const policy_cb_get_snk_cap_t cb); 439 void usbc_set_policy_cb_set_src_cap(const struct device *dev, const policy_cb_set_src_cap_t cb); 447 void usbc_set_policy_cb_get_rdo(const struct device *dev, const policy_cb_get_rdo_t cb); 457 const policy_cb_is_snk_at_default_t cb); 466 void usbc_set_policy_cb_get_src_rp(const struct device *dev, const policy_cb_get_src_rp_t cb); [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_commander/uut/ |
D | aics.c | 14 struct bt_aics_cb *cb; member 26 if (aics != NULL && aics->cb != NULL && aics->cb->set_gain != NULL) { in bt_aics_gain_set() 27 aics->cb->set_gain(aics, 0); in bt_aics_gain_set() 33 void bt_aics_client_cb_register(struct bt_aics *aics, struct bt_aics_cb *cb) in bt_aics_client_cb_register() argument 35 aics->cb = cb; in bt_aics_client_cb_register() 56 if (aics != NULL && aics->cb != NULL && aics->cb->discover != NULL) { in bt_aics_discover() 57 aics->cb->discover(aics, 0); in bt_aics_discover()
|
D | vocs.c | 14 struct bt_vocs_cb *cb; member 26 if (vocs != NULL && vocs->cb != NULL && vocs->cb->set_offset != NULL) { in bt_vocs_state_set() 27 vocs->cb->set_offset(vocs, 0); in bt_vocs_state_set() 33 void bt_vocs_client_cb_register(struct bt_vocs *vocs, struct bt_vocs_cb *cb) in bt_vocs_client_cb_register() argument 35 vocs->cb = cb; in bt_vocs_client_cb_register() 56 if (vocs != NULL && vocs->cb != NULL && vocs->cb->discover != NULL) { in bt_vocs_discover() 57 vocs->cb->discover(vocs, 0); in bt_vocs_discover()
|
/Zephyr-latest/subsys/net/ip/ |
D | net_mgmt.c | 159 struct net_mgmt_event_callback *cb, *tmp; in mgmt_rebuild_global_event_mask() local 167 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&event_callbacks, cb, tmp, node) { in mgmt_rebuild_global_event_mask() 168 mgmt_add_event_mask(cb->event_mask); in mgmt_rebuild_global_event_mask() 188 struct net_mgmt_event_callback *cb, *tmp; in mgmt_run_slist_callbacks() local 196 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(&event_callbacks, cb, tmp, node) { in mgmt_run_slist_callbacks() 198 NET_MGMT_GET_LAYER(cb->event_mask)) || in mgmt_run_slist_callbacks() 200 NET_MGMT_GET_LAYER_CODE(cb->event_mask)) || in mgmt_run_slist_callbacks() 202 NET_MGMT_GET_COMMAND(cb->event_mask) && in mgmt_run_slist_callbacks() 204 NET_MGMT_GET_COMMAND(cb->event_mask)))) { in mgmt_run_slist_callbacks() 210 cb->info = (void *)mgmt_event->info; in mgmt_run_slist_callbacks() [all …]
|
D | tcp_internal.h | 86 void net_tcp_foreach(net_tcp_cb_t cb, void *user_data); 88 static inline void net_tcp_foreach(net_tcp_cb_t cb, void *user_data) in net_tcp_foreach() argument 90 ARG_UNUSED(cb); in net_tcp_foreach() 134 net_context_connect_cb_t cb, 142 net_context_connect_cb_t cb, void *user_data) in net_tcp_connect() argument 149 ARG_UNUSED(cb); in net_tcp_connect() 185 int net_tcp_accept(struct net_context *context, net_tcp_accept_cb_t cb, 189 net_tcp_accept_cb_t cb, void *user_data) in net_tcp_accept() argument 192 ARG_UNUSED(cb); in net_tcp_accept() 209 int net_tcp_send_data(struct net_context *context, net_context_send_cb_t cb, [all …]
|
/Zephyr-latest/include/zephyr/drivers/gpio/ |
D | gpio_utils.h | 94 struct gpio_callback *cb, *tmp; in gpio_fire_callbacks() local 98 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) { in gpio_fire_callbacks() 99 if (cb->pin_mask & pins) { in gpio_fire_callbacks() 100 __ASSERT(cb->handler, "No callback handler!"); in gpio_fire_callbacks() 102 cb->handler(port, cb, cb->pin_mask & pins); in gpio_fire_callbacks() 103 sys_port_trace_gpio_fire_callback(port, cb); in gpio_fire_callbacks()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | ecc.c | 76 struct bt_pub_key_cb *cb; in bt_pub_key_gen() local 106 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen() 107 if (cb == new_cb) { in bt_pub_key_gen() 127 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_gen() 128 if (cb->func) { in bt_pub_key_gen() 129 cb->func(NULL); in bt_pub_key_gen() 142 struct bt_pub_key_cb *cb; in bt_pub_key_hci_disrupted() local 146 SYS_SLIST_FOR_EACH_CONTAINER(&pub_key_cb_slist, cb, node) { in bt_pub_key_hci_disrupted() 147 if (cb->func) { in bt_pub_key_hci_disrupted() 148 cb->func(NULL); in bt_pub_key_hci_disrupted() [all …]
|
/Zephyr-latest/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-latest/include/zephyr/net/ |
D | net_offload.h | 81 net_context_connect_cb_t cb, 90 net_tcp_accept_cb_t cb, 98 net_context_send_cb_t cb, 108 net_context_send_cb_t cb, 117 net_context_recv_cb_t cb, 238 net_context_connect_cb_t cb, in net_offload_connect() argument 247 context, addr, addrlen, cb, in net_offload_connect() 281 net_tcp_accept_cb_t cb, in net_offload_accept() argument 290 context, cb, in net_offload_accept() 323 net_context_send_cb_t cb, in net_offload_send() argument [all …]
|
D | lwm2m.h | 571 void lwm2m_firmware_set_write_cb(lwm2m_engine_set_data_cb_t cb); 589 void lwm2m_firmware_set_write_cb_inst(uint16_t obj_inst_id, lwm2m_engine_set_data_cb_t cb); 607 void lwm2m_firmware_set_cancel_cb(lwm2m_engine_user_cb_t cb); 625 void lwm2m_firmware_set_cancel_cb_inst(uint16_t obj_inst_id, lwm2m_engine_user_cb_t cb); 643 void lwm2m_firmware_set_update_cb(lwm2m_engine_execute_cb_t cb); 661 void lwm2m_firmware_set_update_cb_inst(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 685 int lwm2m_swmgmt_set_activate_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 698 int lwm2m_swmgmt_set_deactivate_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 711 int lwm2m_swmgmt_set_install_package_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); 724 int lwm2m_swmgmt_set_delete_package_cb(uint16_t obj_inst_id, lwm2m_engine_execute_cb_t cb); [all …]
|
/Zephyr-latest/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-latest/drivers/smbus/ |
D | smbus_utils.h | 71 struct smbus_callback *cb, *tmp; in smbus_fire_callbacks() local 73 SYS_SLIST_FOR_EACH_CONTAINER_SAFE(list, cb, tmp, node) { in smbus_fire_callbacks() 74 if (cb->addr == addr) { in smbus_fire_callbacks() 75 __ASSERT(cb->handler, "No callback handler!"); in smbus_fire_callbacks() 76 cb->handler(dev, cb, addr); in smbus_fire_callbacks()
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | aics_client.c | 89 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_notify_handler() 90 inst->cli.cb->state(inst, 0, state->gain, in aics_client_notify_handler() 99 if (inst->cli.cb && inst->cli.cb->status) { in aics_client_notify_handler() 100 inst->cli.cb->status(inst, 0, *status); in aics_client_notify_handler() 116 if (inst->cli.cb && inst->cli.cb->description) { in aics_client_notify_handler() 117 inst->cli.cb->description(inst, 0, desc); in aics_client_notify_handler() 144 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb() 145 inst->cli.cb->state(inst, cb_err, 0, 0, 0); in aics_client_read_state_cb() 165 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb() 166 inst->cli.cb->state(inst, cb_err, state->gain, in aics_client_read_state_cb() [all …]
|
D | tmap.c | 40 static const struct bt_tmap_cb *cb; variable 55 if (cb->discovery_complete) { in tmap_char_read() 56 cb->discovery_complete(0, conn, err); in tmap_char_read() 64 if (cb->discovery_complete) { in tmap_char_read() 65 cb->discovery_complete(0, conn, BT_ATT_ERR_INVALID_ATTRIBUTE_LEN); in tmap_char_read() 75 if (cb->discovery_complete) { in tmap_char_read() 76 cb->discovery_complete((enum bt_tmap_role)peer_role, conn, 0); in tmap_char_read() 79 if (cb->discovery_complete) { in tmap_char_read() 80 cb->discovery_complete(0, conn, BT_ATT_ERR_VALUE_NOT_ALLOWED); in tmap_char_read() 97 if (cb->discovery_complete) { in discover_func() [all …]
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_stack.c | 224 const policy_cb_set_port_partner_snk_cap_t cb) in usbc_set_policy_cb_set_port_partner_snk_cap() argument 228 data->policy_cb_set_port_partner_snk_cap = cb; in usbc_set_policy_cb_set_port_partner_snk_cap() 236 const policy_cb_get_src_caps_t cb) in usbc_set_policy_cb_get_src_caps() argument 240 data->policy_cb_get_src_caps = cb; in usbc_set_policy_cb_get_src_caps() 271 const policy_cb_check_sink_request_t cb) in usbc_set_policy_cb_check_sink_request() argument 275 data->policy_cb_check_sink_request = cb; in usbc_set_policy_cb_check_sink_request() 282 const policy_cb_is_ps_ready_t cb) in usbc_set_policy_cb_is_ps_ready() argument 286 data->policy_is_ps_ready = cb; in usbc_set_policy_cb_is_ps_ready() 293 const policy_cb_present_contract_is_valid_t cb) in usbc_set_policy_cb_present_contract_is_valid() argument 297 data->policy_present_contract_is_valid = cb; in usbc_set_policy_cb_present_contract_is_valid() [all …]
|
/Zephyr-latest/subsys/debug/ |
D | mipi_stp_decoder.c | 91 stp_cb cb; member 98 .has_ts = _has_ts, .cb = (stp_cb)_cb \ 115 cfg.cb(STP_DATA4, d, NULL, false); in data4_cb() 123 cfg.cb(STP_DATA8, d, NULL, false); in data8_cb() 131 cfg.cb(STP_DATA16, d, NULL, false); in data16_cb() 139 cfg.cb(STP_DATA32, d, NULL, false); in data32_cb() 147 cfg.cb(STP_DATA64, d, NULL, false); in data64_cb() 155 cfg.cb(STP_DATA4, d, NULL, true); in data4_m_cb() 163 cfg.cb(STP_DATA8, d, NULL, true); in data8_m_cb() 171 cfg.cb(STP_DATA16, d, NULL, true); in data16_m_cb() [all …]
|
/Zephyr-latest/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()
|