/Zephyr-latest/tests/bluetooth/audio/cap_commander/src/ |
D | test_vcp.c | 25 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 30 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_vcp_fixture_init() 31 test_conn_init(&fixture->conns[i]); in cap_commander_test_vcp_fixture_init() 57 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_vcp_after() 58 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_vcp_after() 73 union bt_cap_set_member members[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 77 .count = ARRAY_SIZE(fixture->conns), in ZTEST_F() 83 members[i].member = &fixture->conns[i]; in ZTEST_F() 89 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 92 err = bt_vcp_vol_ctlr_discover(&fixture->conns[i], &vol_ctlr); in ZTEST_F() [all …]
|
D | test_micp.c | 25 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 30 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_micp_fixture_init() 31 test_conn_init(&fixture->conns[i]); in cap_commander_test_micp_fixture_init() 57 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_micp_after() 58 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_micp_after() 75 member_params[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 84 member_params[i].member.member = &fixture->conns[i]; in ZTEST_F() 91 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 94 err = bt_micp_mic_ctlr_discover(&fixture->conns[i], &mic_ctlr); in ZTEST_F() 108 member_params[ARRAY_SIZE(fixture->conns)]; in ZTEST_F() [all …]
|
D | main.c | 35 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 40 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_suite_fixture_init() 41 test_conn_init(&fixture->conns[i]); in cap_commander_test_suite_fixture_init() 67 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_suite_after() 68 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_suite_after() 148 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 149 err = bt_cap_commander_discover(&fixture->conns[i]); in ZTEST_F() 153 zexpect_call_count("bt_cap_commander_cb.discovery_complete", ARRAY_SIZE(fixture->conns), in ZTEST_F()
|
D | test_distribute_broadcast_code.c | 28 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 43 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_distribute_broadcast_code_fixture_init() 44 test_conn_init(&fixture->conns[i]); in cap_commander_test_distribute_broadcast_code_fixture_init() 45 fixture->conns[i].index = i; in cap_commander_test_distribute_broadcast_code_fixture_init() 55 fixture->broadcast_code_member_params[i].member.member = &fixture->conns[i]; in cap_commander_test_distribute_broadcast_code_fixture_init() 78 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_distribute_broadcast_code_before() 79 err = bt_cap_commander_discover(&fixture->conns[i]); in cap_commander_test_distribute_broadcast_code_before() 94 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_distribute_broadcast_code_after() 95 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_distribute_broadcast_code_after() 206 fixture->distribute_broadcast_code_param.count = ARRAY_SIZE(fixture->conns); in ZTEST_F() [all …]
|
D | test_broadcast_reception.c | 32 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 64 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_broadcast_reception_fixture_init() 65 test_conn_init(&fixture->conns[i]); in cap_commander_test_broadcast_reception_fixture_init() 66 fixture->conns[i].index = i; in cap_commander_test_broadcast_reception_fixture_init() 95 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_broadcast_reception_before() 96 err = bt_cap_commander_discover(&fixture->conns[i]); in cap_commander_test_broadcast_reception_before() 111 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_broadcast_reception_after() 112 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_broadcast_reception_after() 137 fixture->start_member_params[i].member.member = &fixture->conns[i]; in test_start_param_init() 147 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in test_start_param_init() [all …]
|
/Zephyr-latest/tests/bluetooth/audio/cap_initiator/src/ |
D | main.c | 40 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 45 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_suite_fixture_init() 46 test_conn_init(&fixture->conns[i]); in cap_initiator_test_suite_fixture_init() 72 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_suite_after() 73 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_initiator_test_suite_after() 153 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F() 154 err = bt_cap_initiator_unicast_discover(&fixture->conns[i]); in ZTEST_F() 158 zexpect_call_count("bt_cap_initiator_cb.discovery_complete", ARRAY_SIZE(fixture->conns), in ZTEST_F()
|
D | test_unicast_stop.c | 38 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 48 for (size_t i = 0U; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_stop_fixture_init() 49 test_conn_init(&fixture->conns[i]); in cap_initiator_test_unicast_stop_fixture_init() 92 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_stop_after() 93 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_initiator_test_unicast_stop_after() 124 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 159 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 193 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 227 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() 262 test_unicast_set_state(streams[i], &fixture->conns[i % ARRAY_SIZE(fixture->conns)], in ZTEST_F() [all …]
|
D | test_unicast_start.c | 37 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member 47 for (size_t i = 0U; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_start_fixture_init() 48 test_conn_init(&fixture->conns[i]); in cap_initiator_test_unicast_start_fixture_init() 90 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_initiator_test_unicast_start_after() 91 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_initiator_test_unicast_start_after() 122 stream_params[i].member.member = &fixture->conns[i % ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 208 stream_params[i].member.member = &fixture->conns[i % ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 234 stream_params[i].member.member = &fixture->conns[i % ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 260 stream_params[i].member.member = &fixture->conns[i % ARRAY_SIZE(fixture->conns)]; in ZTEST_F() 284 stream_param.member.member = &fixture->conns[0]; in ZTEST_F() [all …]
|
/Zephyr-latest/subsys/sensing/ |
D | sensing_sensor.c | 42 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters() 44 reporter_handles[num] = &sensor->conns[i]; in sensing_sensor_get_reporters() 58 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters_count()
|
D | sensor_mgmt.h | 80 return sensor->conns[index].source; in get_reporter_sensor()
|
D | sensor_mgmt.c | 303 conn = &sensor->conns[i]; in init_sensor()
|
/Zephyr-latest/tests/bsim/bluetooth/audio/src/ |
D | csip_set_coordinator_test.c | 47 static struct bt_conn *conns[CONFIG_BT_MAX_CONN]; variable 283 err = bt_csip_set_coordinator_discover(conns[bt_conn_index(conn)]); in discover_csis() 338 BT_LE_CONN_PARAM_DEFAULT, &conns[0]); in connect_set() 349 discover_csis(conns[0]); in connect_set() 350 discover_csis(conns[0]); /* test that we can discover twice */ in connect_set() 388 BT_LE_CONN_PARAM_DEFAULT, &conns[i]); in connect_set() 400 discover_csis(conns[i]); in connect_set() 413 err = bt_conn_disconnect(conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in disconnect_set()
|
/Zephyr-latest/subsys/bluetooth/audio/shell/ |
D | csip_set_coordinator.c | 38 static struct bt_conn *conns[CONFIG_BT_MAX_CONN]; variable 73 conns[conn_index] = bt_conn_ref(conn); in connected_cb() 81 bt_conn_unref(conns[conn_index]); in disconnected_cb() 82 conns[conn_index] = NULL; in disconnected_cb() 276 if (member_index > ARRAY_SIZE(conns)) { in cmd_csip_set_coordinator_discover() 288 conn = conns[member_index]; in cmd_csip_set_coordinator_discover() 341 bt_conn_get_dst(conns[i])); in cmd_csip_set_coordinator_discover_members()
|
/Zephyr-latest/subsys/net/ip/ |
D | connection.c | 62 static struct net_conn conns[CONFIG_NET_MAX_CONN]; variable 275 conn - conns, conn); in net_conn_change_callback() 286 conn - conns, conn); in net_conn_change_remote() 443 if (conn < &conns[0] || conn > &conns[CONFIG_NET_MAX_CONN]) { in net_conn_unregister() 471 if (conn < &conns[0] || conn > &conns[CONFIG_NET_MAX_CONN]) { in net_conn_update() 969 sys_slist_prepend(&conn_unused, &conns[i].node); in net_conn_init()
|
/Zephyr-latest/include/zephyr/sensing/ |
D | sensing_sensor.h | 121 struct sensing_connection *conns; /**< Pointer to sensor connections. */ member 327 .conns = SENSING_CONNECTIONS_NAME(node), \
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | cap_initiator.c | 1042 *conns[MIN(CONFIG_BT_MAX_CONN, CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT)]; in bt_cap_initiator_codec_configured() local 1111 (void)memset(conns, 0, sizeof(conns)); in bt_cap_initiator_codec_configured() 1118 for (size_t j = 0U; j < ARRAY_SIZE(conns); j++) { in bt_cap_initiator_codec_configured() 1119 if (stream_conn == conns[j]) { in bt_cap_initiator_codec_configured() 1122 } else if (conns[j] == NULL && free_conn == NULL) { in bt_cap_initiator_codec_configured() 1123 free_conn = &conns[j]; in bt_cap_initiator_codec_configured() 1154 for (size_t i = 0U; i < ARRAY_SIZE(conns); i++) { in bt_cap_initiator_codec_configured() 1158 if (conns[i] == NULL) { in bt_cap_initiator_codec_configured() 1164 if (proc_param->stream->bap_stream.conn == conns[i]) { in bt_cap_initiator_codec_configured() 1173 err = bt_bap_stream_qos(conns[i], unicast_group); in bt_cap_initiator_codec_configured() [all …]
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | conn_internal.h | 400 struct bt_conn **conns; member 432 struct bt_conn *bt_conn_new(struct bt_conn *conns, size_t size);
|
D | conn.c | 342 struct bt_conn *bt_conn_new(struct bt_conn *conns, size_t size) in bt_conn_new() argument 348 if (atomic_cas(&conns[i].ref, 0, 1)) { in bt_conn_new() 349 conn = &conns[i]; in bt_conn_new() 1141 struct bt_conn *conn_lookup_handle(struct bt_conn *conns, size_t size, in conn_lookup_handle() argument 1147 struct bt_conn *conn = bt_conn_ref(&conns[i]); in conn_lookup_handle()
|
/Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
D | cap.rst | 86 <cnt> (default 1)] [conns (<cnt> | all) (default 1)] 177 uart:~$ cap_initiator unicast_start sinks 1 sources 0 conns all
|