Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 1196) sorted by relevance

12345678910>>...48

/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/
Dvcp_vol_ctlr_test.c43 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 …]
Dtbs_test.c86 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 …]
Dvcp_vol_rend_test.c46 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 …]
Dmicp_mic_ctlr_test.c37 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 …]
Dmcc_test.c71 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 …]
Dmicp_mic_dev_test.c44 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 …]
Dpbp_public_broadcast_source_test.c123 int err; in setup_extended_adv_data() local
125 err = bt_cap_initiator_broadcast_get_id(source, &broadcast_id); in setup_extended_adv_data()
126 if (err != 0) { in setup_extended_adv_data()
127 printk("Unable to get broadcast ID: %d\n", err); in setup_extended_adv_data()
129 return err; in setup_extended_adv_data()
153 err = bt_pbp_get_announcement(pba_metadata, ARRAY_SIZE(pba_metadata) - 1, in setup_extended_adv_data()
155 if (err != 0) { in setup_extended_adv_data()
156 printk("Failed to create public broadcast announcement!: %d\n", err); in setup_extended_adv_data()
158 return err; in setup_extended_adv_data()
164 err = bt_le_ext_adv_set_data(adv, ext_ad, ARRAY_SIZE(ext_ad), NULL, 0); in setup_extended_adv_data()
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/tmap_central/src/
Dmain.c42 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 …]
Dvcp_vol_ctlr.c13 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.6.0/subsys/bluetooth/audio/shell/
Dmedia_controller.c38 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 …]
Dhas.c37 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(&param); 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.6.0/tests/subsys/usb/device_next/src/
Dmain.c40 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.6.0/samples/bluetooth/tmap_peripheral/src/
Dmain.c72 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.6.0/samples/bluetooth/tmap_bms/src/
Dcap_initiator.c112 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 …]
Dmain.c20 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.6.0/samples/bluetooth/public_broadcast_source/src/
Dmain.c124 int err; in setup_extended_adv() local
127 err = bt_le_ext_adv_create(BT_LE_EXT_ADV_NCONN_NAME, NULL, adv); in setup_extended_adv()
128 if (err != 0) { in setup_extended_adv()
129 printk("Unable to create extended advertising set: %d\n", err); in setup_extended_adv()
131 return err; in setup_extended_adv()
135 err = bt_le_per_adv_set_param(*adv, BT_LE_PER_ADV_DEFAULT); in setup_extended_adv()
136 if (err) { in setup_extended_adv()
137 printk("Failed to set periodic advertising parameters: %d\n", err); in setup_extended_adv()
139 return err; in setup_extended_adv()
157 int err; in setup_extended_adv_data() local
[all …]
/Zephyr-Core-3.6.0/tests/bluetooth/audio/bap_broadcast_source/src/
Dmain.c147 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.6.0/tests/bluetooth/audio/cap_commander/src/
Dmain.c101 int err; in ZTEST_F() local
103 err = bt_cap_commander_register_cb(&mock_cap_commander_cb); in ZTEST_F()
104 zassert_equal(0, err, "Unexpected return value %d", err); in ZTEST_F()
109 int err; in ZTEST_F() local
111 err = bt_cap_commander_register_cb(NULL); in ZTEST_F()
112 zassert_equal(-EINVAL, err, "Unexpected return value %d", err); in ZTEST_F()
117 int err; in ZTEST_F() local
119 err = bt_cap_commander_register_cb(&mock_cap_commander_cb); in ZTEST_F()
120 zassert_equal(0, err, "Unexpected return value %d", err); in ZTEST_F()
122 err = bt_cap_commander_register_cb(&mock_cap_commander_cb); in ZTEST_F()
[all …]
/Zephyr-Core-3.6.0/samples/bluetooth/hci_usb/src/
Dmain.c29 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.6.0/tests/drivers/can/api/src/
Dclassic.c227 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
321 err = k_msgq_get(&can_msgq, &frame_buffer, TEST_RECEIVE_TIMEOUT); in send_receive()
[all …]
Dcanfd.c97 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.6.0/tests/bluetooth/host/id/bt_id_create/src/
Dtest_suite_invalid_inputs.c30 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.6.0/samples/bluetooth/tmap_bmr/src/
Dmain.c19 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.6.0/samples/bluetooth/hap_ha/src/
Dmain.c67 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.6.0/samples/boards/stm32/power_mgmt/stm32wb_ble/src/
Dmain.c46 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 …]

12345678910>>...48