/Zephyr-Core-3.5.0/tests/bsim/bluetooth/audio/src/ |
D | vcp_vol_ctlr_test.c | 43 static void vcs_state_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_state_cb() argument 46 if (err != 0) { in vcs_state_cb() 47 FAIL("VCP state cb err (%d)", err); in vcs_state_cb() 57 static void vcs_flags_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_flags_cb() argument 60 if (err != 0) { in vcs_flags_cb() 61 FAIL("VCP flags cb err (%d)", err); in vcs_flags_cb() 70 static void vocs_state_cb(struct bt_vocs *inst, int err, int16_t offset) in vocs_state_cb() argument 72 if (err != 0) { in vocs_state_cb() 73 FAIL("VOCS state cb err (%d)", err); in vocs_state_cb() 82 static void vocs_location_cb(struct bt_vocs *inst, int err, uint32_t location) in vocs_location_cb() argument [all …]
|
D | tbs_test.c | 86 static void connected(struct bt_conn *conn, uint8_t err) in connected() argument 92 if (err != 0) { in connected() 93 FAIL("Failed to connect to %s (%u)\n", addr, err); in connected() 110 int err; in test_provider_name() local 113 err = bt_tbs_set_bearer_provider_name(0, "BabblesimTBS"); in test_provider_name() 114 if (err != BT_TBS_RESULT_CODE_SUCCESS) { in test_provider_name() 115 FAIL("Could not set bearer provider name: %d\n", err); in test_provider_name() 116 return err; in test_provider_name() 121 return err; in test_provider_name() 126 int err; in test_set_signal_strength() local [all …]
|
D | vcp_vol_rend_test.c | 46 static void vcs_state_cb(int err, uint8_t volume, uint8_t mute) in vcs_state_cb() argument 48 if (err != 0) { in vcs_state_cb() 49 FAIL("VCP state cb err (%d)", err); in vcs_state_cb() 58 static void vcs_flags_cb(int err, uint8_t flags) in vcs_flags_cb() argument 60 if (err != 0) { in vcs_flags_cb() 61 FAIL("VCP flags cb err (%d)", err); in vcs_flags_cb() 69 static void vocs_state_cb(struct bt_vocs *inst, int err, int16_t offset) in vocs_state_cb() argument 71 if (err != 0) { in vocs_state_cb() 72 FAIL("VOCS state cb err (%d)", err); in vocs_state_cb() 80 static void vocs_location_cb(struct bt_vocs *inst, int err, uint32_t location) in vocs_location_cb() argument [all …]
|
D | micp_mic_ctlr_test.c | 37 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb() argument 40 if (err != 0) { in aics_state_cb() 41 FAIL("AICS state cb err (%d)", err); in aics_state_cb() 52 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb() argument 55 if (err != 0) { in aics_gain_setting_cb() 56 FAIL("AICS gain setting cb err (%d)", err); in aics_gain_setting_cb() 67 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb() argument 70 if (err != 0) { in aics_input_type_cb() 71 FAIL("AICS input type cb err (%d)", err); in aics_input_type_cb() 80 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb() argument [all …]
|
D | mcc_test.c | 71 static void mcc_discover_mcs_cb(struct bt_conn *conn, int err) in mcc_discover_mcs_cb() argument 73 if (err) { in mcc_discover_mcs_cb() 74 FAIL("Discovery of MCS failed (%d)\n", err); in mcc_discover_mcs_cb() 81 static void mcc_read_player_name_cb(struct bt_conn *conn, int err, const char *name) in mcc_read_player_name_cb() argument 83 if (err) { in mcc_read_player_name_cb() 84 FAIL("Player Name read failed (%d)\n", err); in mcc_read_player_name_cb() 91 static void mcc_read_icon_obj_id_cb(struct bt_conn *conn, int err, uint64_t id) in mcc_read_icon_obj_id_cb() argument 93 if (err) { in mcc_read_icon_obj_id_cb() 94 FAIL("Icon Object ID read failed (%d)", err); in mcc_read_icon_obj_id_cb() 102 static void mcc_read_icon_url_cb(struct bt_conn *conn, int err, const char *url) in mcc_read_icon_url_cb() argument [all …]
|
D | micp_mic_dev_test.c | 44 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, in aics_state_cb() argument 47 if (err != 0) { in aics_state_cb() 48 FAIL("AICS state cb err (%d)", err); in aics_state_cb() 58 static void aics_gain_setting_cb(struct bt_aics *inst, int err, uint8_t units, in aics_gain_setting_cb() argument 61 if (err != 0) { in aics_gain_setting_cb() 62 FAIL("AICS gain setting cb err (%d)", err); in aics_gain_setting_cb() 72 static void aics_input_type_cb(struct bt_aics *inst, int err, in aics_input_type_cb() argument 75 if (err != 0) { in aics_input_type_cb() 76 FAIL("AICS input type cb err (%d)", err); in aics_input_type_cb() 84 static void aics_status_cb(struct bt_aics *inst, int err, bool active) in aics_status_cb() argument [all …]
|
D | tbs_client_test.c | 41 static void tbs_client_call_states_cb(struct bt_conn *conn, int err, in tbs_client_call_states_cb() argument 50 if (err != 0) { in tbs_client_call_states_cb() 51 FAIL("Call could not read call states (%d)\n", err); in tbs_client_call_states_cb() 60 static void tbs_client_read_bearer_provider_name(struct bt_conn *conn, int err, in tbs_client_read_bearer_provider_name() argument 64 if (err != 0) { in tbs_client_read_bearer_provider_name() 65 FAIL("Call could not read bearer name (%d)\n", err); in tbs_client_read_bearer_provider_name() 76 static void tbs_client_discover_cb(struct bt_conn *conn, int err, in tbs_client_discover_cb() argument 81 if (err != 0) { in tbs_client_discover_cb() 82 FAIL("TBS_CLIENT could not be discovered (%d)\n", err); in tbs_client_discover_cb() 91 static void tbs_client_read_ccid_cb(struct bt_conn *conn, int err, in tbs_client_read_ccid_cb() argument [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_central/src/ |
D | main.c | 42 void tmap_discovery_complete(enum bt_tmap_role role, struct bt_conn *conn, int err) in tmap_discovery_complete() argument 48 if (err) { in tmap_discovery_complete() 49 printk("TMAS discovery failed! (err %d)\n", err); in tmap_discovery_complete() 64 int err; in init() local 66 err = bt_enable(NULL); in init() 67 if (err != 0) { in init() 68 printk("Bluetooth enable failed (err %d)\n", err); in init() 69 return err; in init() 78 static void connected(struct bt_conn *conn, uint8_t err) in connected() argument 84 if (err != 0) { in connected() [all …]
|
D | vcp_vol_ctlr.c | 13 static void vcs_discover_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_discover_cb() argument 16 if (err != 0) { in vcs_discover_cb() 17 printk("VCP: Service could not be discovered (%d)\n", err); in vcs_discover_cb() 22 static void vcs_write_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err) in vcs_write_cb() argument 24 if (err != 0) { in vcs_write_cb() 25 printk("VCP: Write failed (%d)\n", err); in vcs_write_cb() 30 static void vcs_state_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_state_cb() argument 33 if (err != 0) { in vcs_state_cb() 34 printk("VCP: state cb err (%d)", err); in vcs_state_cb() 41 static void vcs_flags_cb(struct bt_vcp_vol_ctlr *vol_ctlr, int err, in vcs_flags_cb() argument [all …]
|
/Zephyr-Core-3.5.0/subsys/bluetooth/audio/shell/ |
D | media_controller.c | 38 static void local_player_instance_cb(struct media_player *plr, int err) in local_player_instance_cb() argument 40 if (err) { in local_player_instance_cb() 41 shell_error(ctx_shell, "Local player instance failed (%d)", err); in local_player_instance_cb() 54 static void discover_player_cb(struct media_player *plr, int err) in discover_player_cb() argument 56 if (err) { in discover_player_cb() 57 shell_error(ctx_shell, "Discover player failed (%d)", err); in discover_player_cb() 69 static void player_name_cb(struct media_player *plr, int err, const char *name) in player_name_cb() argument 71 if (err) { in player_name_cb() 72 shell_error(ctx_shell, "Player: %p, Player name failed (%d)", plr, err); in player_name_cb() 79 static void icon_id_cb(struct media_player *plr, int err, uint64_t id) in icon_id_cb() argument [all …]
|
D | has.c | 37 int err = 0; in cmd_preset_reg() local 39 .index = shell_strtoul(argv[1], 16, &err), in cmd_preset_reg() 40 .properties = shell_strtoul(argv[2], 16, &err), in cmd_preset_reg() 45 if (err < 0) { in cmd_preset_reg() 46 shell_print(sh, "Invalid command parameter (err %d)", err); in cmd_preset_reg() 47 return err; in cmd_preset_reg() 50 err = bt_has_preset_register(¶m); in cmd_preset_reg() 51 if (err < 0) { in cmd_preset_reg() 52 shell_error(sh, "Preset register failed (err %d)", err); in cmd_preset_reg() 53 return err; in cmd_preset_reg() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/usb/device_next/src/ |
D | main.c | 40 int err; in ZTEST() local 43 err = usbh_req_get_cfg(udev, &cfg); in ZTEST() 48 zassert_equal(err, -EPIPE, "Transfer status is not a protocol error"); in ZTEST() 52 zassert_equal(err, 0, "Transfer status is an error"); in ZTEST() 57 zassert_equal(err, 0, "Transfer status is an error"); in ZTEST() 69 int err; in ZTEST() local 72 err = usbh_req_set_alt(udev, TEST_DEFAULT_INTERFACE, in ZTEST() 80 zassert_equal(err, -EPIPE, "Transfer status is not a protocol error"); in ZTEST() 92 int err; in usb_test_enable() local 94 err = usbh_init(&uhs_ctx); in usb_test_enable() [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_peripheral/src/ |
D | main.c | 72 void tmap_discovery_complete(enum bt_tmap_role peer_role, struct bt_conn *conn, int err) in tmap_discovery_complete() argument 78 if (err) { in tmap_discovery_complete() 79 printk("TMAS discovery failed! (err %d)\n", err); in tmap_discovery_complete() 93 static void connected(struct bt_conn *conn, uint8_t err) in connected() argument 99 if (err != 0) { in connected() 100 printk("Failed to connect to %s (%u)\n", addr, err); in connected() 130 enum bt_security_err err) in security_changed() argument 132 if (err == 0) { in security_changed() 133 printk("Security changed: %u\n", err); in security_changed() 136 printk("Failed to set security level: %u", err); in security_changed() [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_bms/src/ |
D | cap_initiator.c | 112 int err; in setup_extended_adv() local 115 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, adv); in setup_extended_adv() 116 if (err != 0) { in setup_extended_adv() 117 printk("Unable to create extended advertising set: %d\n", err); in setup_extended_adv() 118 return err; in setup_extended_adv() 122 err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT); in setup_extended_adv() 123 if (err) { in setup_extended_adv() 125 err); in setup_extended_adv() 126 return err; in setup_extended_adv() 142 int err; in setup_extended_adv_data() local [all …]
|
D | main.c | 20 int err; in init() local 22 err = bt_enable(NULL); in init() 23 if (err != 0) { in init() 24 printk("Bluetooth enable failed (err %d)\n", err); in init() 25 return err; in init() 35 int err; in main() local 37 err = init(); in main() 38 if (err != 0) { in main() 39 return err; in main() 44 err = bt_tmap_register(BT_TMAP_ROLE_BMS); in main() [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/hci_usb/src/ |
D | main.c | 29 int err; in enable_usb_device_next() local 31 err = usbd_add_descriptor(&sample_usbd, &sample_lang); in enable_usb_device_next() 32 if (err) { in enable_usb_device_next() 33 return err; in enable_usb_device_next() 36 err = usbd_add_descriptor(&sample_usbd, &sample_mfr); in enable_usb_device_next() 37 if (err) { in enable_usb_device_next() 38 return err; in enable_usb_device_next() 41 err = usbd_add_descriptor(&sample_usbd, &sample_product); in enable_usb_device_next() 42 if (err) { in enable_usb_device_next() 43 return err; in enable_usb_device_next() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/audio/bap_broadcast_source/src/ |
D | main.c | 147 int err; in bap_broadcast_source_test_suite_after() local 151 err = bt_bap_broadcast_source_delete(fixture->source); in bap_broadcast_source_test_suite_after() 152 zassert_equal(0, err, "Unable to delete broadcast source: err %d", err); in bap_broadcast_source_test_suite_after() 179 int err; in ZTEST_F() local 184 err = bt_bap_broadcast_source_create(create_param, &fixture->source); in ZTEST_F() 185 zassert_equal(0, err, "Unable to create broadcast source: err %d", err); in ZTEST_F() 201 err = bt_bap_broadcast_source_delete(fixture->source); in ZTEST_F() 202 zassert_equal(0, err, "Unable to delete broadcast source: err %d", err); in ZTEST_F() 210 int err; in ZTEST_F() local 215 err = bt_bap_broadcast_source_create(create_param, &fixture->source); in ZTEST_F() [all …]
|
/Zephyr-Core-3.5.0/tests/bluetooth/host/id/bt_id_create/src/ |
D | test_suite_invalid_inputs.c | 30 int err; in ZTEST() local 32 err = bt_id_create(NULL, NULL); in ZTEST() 34 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 50 int err; in ZTEST() local 53 err = bt_id_create(NULL, valid_irk_ptr); in ZTEST() 55 zassert_true(err == -EINVAL, "Unexpected error code '%d' was returned", err); in ZTEST() 72 int err; in ZTEST() local 76 err = bt_id_create(NULL, NULL); in ZTEST() 78 zassert_true(err == -ENOMEM, "Unexpected error code '%d' was returned", err); in ZTEST() 94 int err; in ZTEST() local [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/hap_ha/src/ |
D | main.c | 67 int err; in adv_rpa_expired_cb() local 69 err = csip_generate_rsi(csis_rsi_addata); in adv_rpa_expired_cb() 70 if (err != 0) { in adv_rpa_expired_cb() 71 printk("Failed to generate RSI (err %d)\n", err); in adv_rpa_expired_cb() 81 err = bt_le_ext_adv_set_data(adv, ad, ARRAY_SIZE(ad), NULL, 0); in adv_rpa_expired_cb() 82 if (err) { in adv_rpa_expired_cb() 83 printk("Failed to set advertising data (err %d)\n", err); in adv_rpa_expired_cb() 99 int err; in adv_work_handler() local 103 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_CONN_NAME, &adv_cb, &ext_adv); in adv_work_handler() 104 if (err) { in adv_work_handler() [all …]
|
/Zephyr-Core-3.5.0/samples/subsys/usb/console/src/ |
D | main.c | 32 int err; in enable_usb_device_next() local 34 err = usbd_add_descriptor(&sample_usbd, &sample_lang); in enable_usb_device_next() 35 if (err) { in enable_usb_device_next() 36 return err; in enable_usb_device_next() 39 err = usbd_add_descriptor(&sample_usbd, &sample_mfr); in enable_usb_device_next() 40 if (err) { in enable_usb_device_next() 41 return err; in enable_usb_device_next() 44 err = usbd_add_descriptor(&sample_usbd, &sample_product); in enable_usb_device_next() 45 if (err) { in enable_usb_device_next() 46 return err; in enable_usb_device_next() [all …]
|
/Zephyr-Core-3.5.0/samples/bluetooth/tmap_bmr/src/ |
D | main.c | 19 int err; in main() local 21 err = bt_enable(NULL); in main() 22 if (err != 0) { in main() 23 printk("Bluetooth init failed (err %d)\n", err); in main() 24 return err; in main() 30 err = bt_tmap_register(BT_TMAP_ROLE_BMR); in main() 31 if (err != 0) { in main() 32 return err; in main() 35 err = vcp_vol_renderer_init(); in main() 36 if (err != 0) { in main() [all …]
|
/Zephyr-Core-3.5.0/samples/boards/stm32/power_mgmt/stm32wb_ble/src/ |
D | main.c | 46 static void bt_ready(int err) in bt_ready() argument 52 if (err) { in bt_ready() 53 printk("Bluetooth init failed (err %d)\n", err); in bt_ready() 62 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready() 64 if (err) { in bt_ready() 65 printk("Advertising failed to start (err %d)\n", err); in bt_ready() 82 err = bt_le_adv_stop(); in bt_ready() 83 if (err != 0) { in bt_ready() 84 printk("Advertising failed to stop: %d", err); in bt_ready() 93 err = bt_le_adv_start(BT_LE_ADV_NCONN_IDENTITY, ad, ARRAY_SIZE(ad), in bt_ready() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/can/api/src/ |
D | classic.c | 227 int err; in send_test_frame() local 229 err = can_send(dev, frame, TEST_SEND_TIMEOUT, NULL, NULL); in send_test_frame() 230 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame() 231 zassert_equal(err, 0, "failed to send frame (err %d)", err); in send_test_frame() 247 int err; in send_test_frame_nowait() local 249 err = can_send(dev, frame, TEST_SEND_TIMEOUT, callback, (void *)frame); in send_test_frame_nowait() 250 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame_nowait() 251 zassert_equal(err, 0, "failed to send frame (err %d)", err); in send_test_frame_nowait() 314 int err; in send_receive() local 319 err = k_msgq_get(&can_msgq, &frame_buffer, TEST_RECEIVE_TIMEOUT); in send_receive() [all …]
|
D | canfd.c | 97 int err; in send_test_frame() local 99 err = can_send(dev, frame, TEST_SEND_TIMEOUT, NULL, NULL); in send_test_frame() 100 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame() 101 zassert_equal(err, 0, "failed to send frame (err %d)", err); in send_test_frame() 117 int err; in send_test_frame_nowait() local 119 err = can_send(dev, frame, TEST_SEND_TIMEOUT, callback, (void *)frame); in send_test_frame_nowait() 120 zassert_not_equal(err, -EBUSY, "arbitration lost in loopback mode"); in send_test_frame_nowait() 121 zassert_equal(err, 0, "failed to send frame (err %d)", err); in send_test_frame_nowait() 183 int err; in send_receive() local 188 err = k_msgq_get(&can_msgq, &frame_buffer, TEST_RECEIVE_TIMEOUT); in send_receive() [all …]
|
/Zephyr-Core-3.5.0/drivers/bluetooth/hci/ |
D | cyw43xxx.c | 68 int err; in bt_hci_uart_set_baudrate() local 71 err = uart_config_get(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate() 72 if (err) { in bt_hci_uart_set_baudrate() 73 return err; in bt_hci_uart_set_baudrate() 79 err = uart_configure(bt_uart_dev, &uart_cfg); in bt_hci_uart_set_baudrate() 80 if (err) { in bt_hci_uart_set_baudrate() 81 return err; in bt_hci_uart_set_baudrate() 107 int err; in bt_update_controller_baudrate() local 132 err = bt_hci_cmd_send_sync(BT_HCI_VND_OP_UPDATE_BAUDRATE, buf, NULL); in bt_update_controller_baudrate() 133 if (err) { in bt_update_controller_baudrate() [all …]
|