Home
last modified time | relevance | path

Searched refs:conns (Results 1 – 13 of 13) sorted by relevance

/Zephyr-Core-3.6.0/tests/bluetooth/audio/cap_commander/src/
Dmain.c42 struct bt_conn conns[CONFIG_BT_MAX_CONN]; member
58 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_suite_fixture_init()
59 test_conn_init(&fixture->conns[i]); in cap_commander_test_suite_fixture_init()
85 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in cap_commander_test_suite_after()
86 mock_bt_conn_disconnected(&fixture->conns[i], BT_HCI_ERR_REMOTE_USER_TERM_CONN); in cap_commander_test_suite_after()
166 for (size_t i = 0; i < ARRAY_SIZE(fixture->conns); i++) { in ZTEST_F()
167 err = bt_cap_commander_discover(&fixture->conns[i]); in ZTEST_F()
171 zexpect_call_count("bt_cap_commander_cb.discovery_complete", ARRAY_SIZE(fixture->conns), in ZTEST_F()
188 union bt_cap_set_member members[ARRAY_SIZE(fixture->conns)]; in ZTEST_F()
192 .count = ARRAY_SIZE(fixture->conns), in ZTEST_F()
[all …]
/Zephyr-Core-3.6.0/subsys/sensing/
Dsensing_sensor.c41 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters()
43 reporter_handles[num] = &sensor->conns[i]; in sensing_sensor_get_reporters()
57 if (type == sensor->conns[i].source->info->type in sensing_sensor_get_reporters_count()
Dsensor_mgmt.h80 return sensor->conns[index].source; in get_reporter_sensor()
Dsensor_mgmt.c303 conn = &sensor->conns[i]; in init_sensor()
/Zephyr-Core-3.6.0/subsys/net/l2/bluetooth/
Dbluetooth.c67 struct bt_if_conn conns[CONFIG_BT_MAX_CONN]; member
88 if (ctxt->conns[i].iface == iface) { in net_bt_get_conn()
89 return &ctxt->conns[i]; in net_bt_get_conn()
273 .conns[0 ... (CONFIG_BT_MAX_CONN - 1)] = {
290 if (!ctxt->conns[i].iface) { in bt_iface_init()
291 conn = &ctxt->conns[i]; in bt_iface_init()
328 if (bt_context_data.conns[i].iface && in ipsp_accept()
329 !bt_context_data.conns[i].ipsp_chan.chan.conn) { in ipsp_accept()
330 if_conn = &bt_context_data.conns[i]; in ipsp_accept()
441 bt_context_data.conns[0].iface); in eir_found()
[all …]
/Zephyr-Core-3.6.0/tests/bsim/bluetooth/audio/src/
Dcsip_set_coordinator_test.c29 static struct bt_conn *conns[CONFIG_BT_MAX_CONN]; variable
257 err = bt_csip_set_coordinator_discover(conns[bt_conn_index(conn)]); in discover_csis()
305 BT_LE_CONN_PARAM_DEFAULT, &conns[0]); in test_main()
315 discover_csis(conns[0]); in test_main()
316 discover_csis(conns[0]); /* test that we can discover twice */ in test_main()
353 &conns[i]); in test_main()
364 discover_csis(conns[i]); in test_main()
441 err = bt_conn_disconnect(conns[i], in test_main()
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/shell/
Dcsip_set_coordinator.c27 static struct bt_conn *conns[CONFIG_BT_MAX_CONN]; variable
62 conns[conn_index] = bt_conn_ref(conn); in connected_cb()
70 bt_conn_unref(conns[conn_index]); in disconnected_cb()
71 conns[conn_index] = NULL; in disconnected_cb()
265 if (member_index > ARRAY_SIZE(conns)) { in cmd_csip_set_coordinator_discover()
277 conn = conns[member_index]; in cmd_csip_set_coordinator_discover()
331 bt_conn_get_dst(conns[i])); in cmd_csip_set_coordinator_discover_members()
/Zephyr-Core-3.6.0/subsys/bluetooth/audio/
Dcap_initiator.c559 *conns[MIN(CONFIG_BT_MAX_CONN, CONFIG_BT_BAP_UNICAST_CLIENT_GROUP_STREAM_COUNT)]; in bt_cap_initiator_codec_configured() local
631 (void)memset(conns, 0, sizeof(conns)); in bt_cap_initiator_codec_configured()
638 for (size_t j = 0U; j < ARRAY_SIZE(conns); j++) { in bt_cap_initiator_codec_configured()
639 if (stream_conn == conns[j]) { in bt_cap_initiator_codec_configured()
642 } else if (conns[j] == NULL && free_conn == NULL) { in bt_cap_initiator_codec_configured()
643 free_conn = &conns[j]; in bt_cap_initiator_codec_configured()
665 for (size_t i = 0U; i < ARRAY_SIZE(conns); i++) { in bt_cap_initiator_codec_configured()
669 if (conns[i] == NULL) { in bt_cap_initiator_codec_configured()
675 err = bt_bap_stream_qos(conns[i], unicast_group); in bt_cap_initiator_codec_configured()
678 (void *)conns[i], unicast_group, err); in bt_cap_initiator_codec_configured()
[all …]
/Zephyr-Core-3.6.0/subsys/net/ip/
Dconnection.c62 static struct net_conn conns[CONFIG_NET_MAX_CONN]; variable
406 if (conn < &conns[0] || conn > &conns[CONFIG_NET_MAX_CONN]) { in net_conn_unregister()
430 if (conn < &conns[0] || conn > &conns[CONFIG_NET_MAX_CONN]) { in net_conn_change_callback()
439 conn - conns, conn); in net_conn_change_callback()
920 sys_slist_prepend(&conn_unused, &conns[i].node); in net_conn_init()
/Zephyr-Core-3.6.0/include/zephyr/sensing/
Dsensing_sensor.h110 struct sensing_connection *conns; member
191 .conns = SENSING_CONNECTIONS_NAME(node), \
/Zephyr-Core-3.6.0/subsys/bluetooth/host/
Dconn_internal.h281 struct bt_conn **conns; member
308 struct bt_conn *bt_conn_new(struct bt_conn *conns, size_t size);
Dconn.c250 struct bt_conn *bt_conn_new(struct bt_conn *conns, size_t size) in bt_conn_new() argument
256 if (atomic_cas(&conns[i].ref, 0, 1)) { in bt_conn_new()
257 conn = &conns[i]; in bt_conn_new()
1009 struct bt_conn *conn_lookup_handle(struct bt_conn *conns, size_t size, in conn_lookup_handle() argument
1015 struct bt_conn *conn = bt_conn_ref(&conns[i]); in conn_lookup_handle()
/Zephyr-Core-3.6.0/doc/connectivity/bluetooth/api/shell/
Dcap.rst60 (default 1)] [conns (<cnt> | all) (default 1)]
128 uart:~$ cap_initiator unicast_start sinks 1 sources 0 conns all