/Zephyr-latest/subsys/bluetooth/audio/ |
D | media_proxy.c | 36 struct media_proxy_sctrl_cbs *cbs; member 41 struct media_proxy_ctrl_cbs *cbs; member 86 mprx.sctrlr.cbs = sctrl_cbs; in media_proxy_sctrl_register() 246 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->discover_player) { in mcc_discover_mcs_cb() 247 mprx.ctrlr.cbs->discover_player(&mprx.remote_player, err); in mcc_discover_mcs_cb() 262 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->player_name_recv) { in mcc_read_player_name_cb() 263 mprx.ctrlr.cbs->player_name_recv(&mprx.remote_player, err, name); in mcc_read_player_name_cb() 278 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_id_recv) { in mcc_read_icon_obj_id_cb() 279 mprx.ctrlr.cbs->icon_id_recv(&mprx.remote_player, err, id); in mcc_read_icon_obj_id_cb() 293 if (mprx.ctrlr.cbs && mprx.ctrlr.cbs->icon_url_recv) { in mcc_read_icon_url_cb() [all …]
|
D | mcs.c | 46 static struct media_proxy_sctrl_cbs cbs; variable 1434 cbs.player_name = media_proxy_sctrl_player_name_cb; in bt_mcs_init() 1435 cbs.icon_url = media_proxy_sctrl_icon_url_cb; in bt_mcs_init() 1436 cbs.track_changed = media_proxy_sctrl_track_changed_cb; in bt_mcs_init() 1437 cbs.track_title = media_proxy_sctrl_track_title_cb; in bt_mcs_init() 1438 cbs.track_duration = media_proxy_sctrl_track_duration_cb; in bt_mcs_init() 1439 cbs.track_position = media_proxy_sctrl_track_position_cb; in bt_mcs_init() 1440 cbs.playback_speed = media_proxy_sctrl_playback_speed_cb; in bt_mcs_init() 1441 cbs.seeking_speed = media_proxy_sctrl_seeking_speed_cb; in bt_mcs_init() 1443 cbs.current_track_id = media_proxy_sctrl_current_track_id_cb; in bt_mcs_init() [all …]
|
D | tbs.c | 2197 void bt_tbs_register_cb(struct bt_tbs_cb *cbs) in bt_tbs_register_cb() argument 2199 tbs_cbs = cbs; in bt_tbs_register_cb()
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_nrf_vevif_event_rx.c | 36 static void trigger_callback(const struct device *dev, struct mbox_vevif_event_rx_cbs *cbs, in trigger_callback() argument 41 if ((cbs->enabled_mask & BIT(id)) && (cbs->cb[idx] != NULL)) { in trigger_callback() 42 cbs->cb[idx](dev, id, cbs->user_data[idx], NULL); in trigger_callback() 49 struct mbox_vevif_event_rx_cbs *cbs = dev->data; in vevif_event_rx_isr() local 58 trigger_callback(dev, cbs, id); in vevif_event_rx_isr() 62 trigger_callback(dev, cbs, VEVIF_54L_EVENT_IDX); in vevif_event_rx_isr() 82 struct mbox_vevif_event_rx_cbs *cbs = dev->data; in vevif_event_rx_register_callback() local 89 cbs->cb[idx] = cb; in vevif_event_rx_register_callback() 90 cbs->user_data[idx] = user_data; in vevif_event_rx_register_callback() 98 struct mbox_vevif_event_rx_cbs *cbs = dev->data; in vevif_event_rx_set_enabled() local [all …]
|
D | mbox_nrf_vevif_task_rx.c | 31 static struct mbox_vevif_task_rx_cbs cbs; variable 47 if (cbs.cb[idx] != NULL) { in vevif_task_rx_isr() 48 cbs.cb[idx](DEVICE_DT_INST_GET(0), channel, cbs.user_data[idx], NULL); in vevif_task_rx_isr() 74 cbs.cb[idx] = cb; in vevif_task_rx_register_callback() 75 cbs.user_data[idx] = user_data; in vevif_task_rx_register_callback() 90 if ((cbs.enabled_mask & BIT(id)) != 0U) { in vevif_task_rx_set_enabled() 94 cbs.enabled_mask |= BIT(id); in vevif_task_rx_set_enabled() 97 if ((cbs.enabled_mask & BIT(id)) == 0U) { in vevif_task_rx_set_enabled() 101 cbs.enabled_mask &= ~BIT(id); in vevif_task_rx_set_enabled()
|
D | mbox_nrf_bellboard_rx.c | 37 static mbox_callback_t cbs[NRF_BELLBOARD_EVENTS_TRIGGERED_COUNT]; variable 65 if (cbs[i] != NULL) { in bellboard_rx_isr() 66 cbs[i](DEVICE_DT_INST_GET(0), i, cbs_ctx[i], NULL); in bellboard_rx_isr() 88 cbs[id] = cb; in bellboard_rx_register_callback()
|
/Zephyr-latest/drivers/can/ |
D | can_mcan.c | 332 const struct can_mcan_callbacks *cbs = config->callbacks; in can_mcan_stop() local 361 for (tx_idx = 0U; tx_idx < cbs->num_tx; tx_idx++) { in can_mcan_stop() 362 tx_cb = cbs->tx[tx_idx].function; in can_mcan_stop() 365 cbs->tx[tx_idx].function = NULL; in can_mcan_stop() 366 tx_cb(dev, -ENETDOWN, cbs->tx[tx_idx].user_data); in can_mcan_stop() 458 const struct can_mcan_callbacks *cbs = config->callbacks; in can_mcan_state_change_handler() local 483 for (tx_idx = 0U; tx_idx < cbs->num_tx; tx_idx++) { in can_mcan_state_change_handler() 484 tx_cb = cbs->tx[tx_idx].function; in can_mcan_state_change_handler() 487 cbs->tx[tx_idx].function = NULL; in can_mcan_state_change_handler() 488 tx_cb(dev, -ENETUNREACH, cbs->tx[tx_idx].user_data); in can_mcan_state_change_handler() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | media_controller_test.c | 69 static struct media_proxy_ctrl_cbs cbs; variable 514 cbs.local_player_instance = local_player_instance_cb; in initialize_media() 515 cbs.discover_player = discover_player_cb; in initialize_media() 516 cbs.player_name_recv = player_name_cb; in initialize_media() 517 cbs.icon_id_recv = icon_id_cb; in initialize_media() 518 cbs.icon_url_recv = icon_url_cb; in initialize_media() 519 cbs.track_title_recv = track_title_cb; in initialize_media() 520 cbs.track_duration_recv = track_duration_cb; in initialize_media() 521 cbs.track_position_recv = track_position_recv_cb; in initialize_media() 522 cbs.track_position_write = track_position_write_cb; in initialize_media() [all …]
|
D | csip_notify_client_test.c | 45 static struct bt_csip_set_coordinator_cb cbs = { variable 62 bt_csip_set_coordinator_register_cb(&cbs); in test_main()
|
D | csip_set_coordinator_test.c | 156 static struct bt_csip_set_coordinator_cb cbs = { variable 304 bt_csip_set_coordinator_register_cb(&cbs); in init()
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_gd32_exti.c | 44 struct gd32_cb_data cbs[NUM_EXTI_LINES]; member 99 if (data->cbs[i].cb != NULL) { in gd32_exti_isr() 100 data->cbs[i].cb(i, data->cbs[i].user); in gd32_exti_isr() 150 if ((data->cbs[line].cb != NULL) && (cb != NULL)) { in gd32_exti_configure() 154 data->cbs[line].cb = cb; in gd32_exti_configure() 155 data->cbs[line].user = user; in gd32_exti_configure()
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | media_controller.c | 35 static struct media_proxy_ctrl_cbs cbs; variable 400 cbs.discover_player = discover_player_cb; in cmd_media_init() 402 cbs.local_player_instance = local_player_instance_cb; in cmd_media_init() 403 cbs.player_name_recv = player_name_cb; in cmd_media_init() 404 cbs.icon_id_recv = icon_id_cb; in cmd_media_init() 405 cbs.icon_url_recv = icon_url_cb; in cmd_media_init() 406 cbs.track_changed_recv = track_changed_cb; in cmd_media_init() 407 cbs.track_title_recv = track_title_cb; in cmd_media_init() 408 cbs.track_duration_recv = track_duration_cb; in cmd_media_init() 409 cbs.track_position_recv = track_position_recv_cb; in cmd_media_init() [all …]
|
D | csip_set_coordinator.c | 155 static struct bt_csip_set_coordinator_cb cbs = { variable 263 bt_csip_set_coordinator_register_cb(&cbs); in cmd_csip_set_coordinator_discover()
|
D | cap_commander.c | 130 static struct bt_cap_commander_cb cbs = { variable 180 bt_cap_commander_register_cb(&cbs); in cmd_cap_commander_discover()
|
D | bap_broadcast_assistant.c | 298 static struct bt_bap_broadcast_assistant_cb cbs = { variable 613 bt_bap_broadcast_assistant_register_cb(&cbs); in cmd_bap_broadcast_assistant_discover()
|
D | cap_initiator.c | 102 static struct bt_cap_initiator_cb cbs = { variable 125 bt_cap_initiator_register_cb(&cbs); in cmd_cap_initiator_discover()
|
/Zephyr-latest/subsys/bluetooth/services/nus/ |
D | nus.c | 21 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_bt_chr_write() 38 SYS_SLIST_FOR_EACH_CONTAINER(instance->cbs, listener, _node) { in nus_ccc_cfg_changed() 60 sys_slist_append(instance->cbs, &cb->_node); in bt_nus_inst_cb_register()
|
/Zephyr-latest/include/zephyr/bluetooth/services/nus/ |
D | inst.h | 23 sys_slist_t *cbs; member 56 .cbs = &_name##_cbs, \
|
/Zephyr-latest/drivers/mspi/ |
D | mspi_emul.c | 61 mspi_callback_handler_t cbs[MSPI_BUS_EVENT_MAX]; member 417 cb = data->cbs[evt_type]; in emul_mspi_trigger_event() 719 data->cbs[evt_type] = cb; in mspi_emul_register_callback() 767 cb = data->cbs[MSPI_BUS_XFER_COMPLETE]; in mspi_emul_transceive() 894 .cbs = {0}, \
|
D | mspi_ambiq_ap3.c | 70 mspi_callback_handler_t cbs[MSPI_BUS_EVENT_MAX]; member 1233 cb = data->cbs[MSPI_BUS_XFER_COMPLETE]; in mspi_ambiq_transceive() 1269 data->cbs[evt_type] = cb; in mspi_ambiq_register_callback() 1416 .cbs = {0}, \
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | tbs.h | 463 void bt_tbs_register_cb(struct bt_tbs_cb *cbs); 1102 int bt_tbs_client_register_cb(struct bt_tbs_client_cb *cbs);
|
/Zephyr-latest/drivers/eeprom/ |
D | eeprom_emulator.c | 745 #define RECALC_SIZE(size, cbs) \ argument 746 (size % cbs) ? ((size + cbs - 1) & ~(cbs - 1)) : size
|