Home
last modified time | relevance | path

Searched refs:conn_index (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/tests/bluetooth/common/testlib/src/
Dconnect.c50 uint8_t conn_index; in bt_testlib_connect() local
68 conn_index = bt_conn_index(*connp); in bt_testlib_connect()
69 LOG_INF("bt_conn_le_create ok conn %u", conn_index); in bt_testlib_connect()
93 LOG_INF("conn %u: connected", conn_index); in bt_testlib_connect()
96 LOG_INF("conn %u: timed out", conn_index); in bt_testlib_connect()
102 LOG_ERR("conn %u: BT_HCI_ERR_ 0x%02x", conn_index, err); in bt_testlib_connect()
Dconn_ref.c58 struct bt_conn *bt_testlib_conn_unindex(enum bt_conn_type conn_type, uint8_t conn_index) in bt_testlib_conn_unindex() argument
61 .wanted_index = conn_index, in bt_testlib_conn_unindex()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dcsip_set_coordinator.c57 uint8_t conn_index; in connected_cb() local
67 conn_index = bt_conn_index(conn); in connected_cb()
69 shell_print(ctx_shell, "[%u]: Connected to %s", conn_index, addr); in connected_cb()
73 conns[conn_index] = bt_conn_ref(conn); in connected_cb()
74 shell_print(ctx_shell, "Member[%u] connected", conn_index); in connected_cb()
79 uint8_t conn_index = bt_conn_index(conn); in disconnected_cb() local
81 bt_conn_unref(conns[conn_index]); in disconnected_cb()
82 conns[conn_index] = NULL; in disconnected_cb()
94 uint8_t conn_index; in csip_discover_cb() local
106 conn_index = bt_conn_index(conn); in csip_discover_cb()
[all …]
Dbap.c885 uint8_t conn_index = bt_conn_index(stream->conn); in stream_dir() local
888 for (size_t i = 0; i < ARRAY_SIZE(snks[conn_index]); i++) { in stream_dir()
889 const struct bt_bap_ep *snk_ep = snks[conn_index][i]; in stream_dir()
898 for (size_t i = 0; i < ARRAY_SIZE(srcs[conn_index]); i++) { in stream_dir()
899 const struct bt_bap_ep *src_ep = srcs[conn_index][i]; in stream_dir()
925 const uint8_t conn_index = bt_conn_index(conn); in add_sink() local
927 for (size_t i = 0U; i < ARRAY_SIZE(snks[conn_index]); i++) { in add_sink()
928 if (snks[conn_index][i] == NULL) { in add_sink()
931 snks[conn_index][i] = ep; in add_sink()
943 const uint8_t conn_index = bt_conn_index(conn); in add_source() local
[all …]
Dcap_initiator.c671 size_t chan_cnt, size_t conn_index, size_t ep_index) in set_codec_config() argument
690 if (conn_index == 0) { in set_codec_config()
692 } else if (conn_index == 1) { in set_codec_config()
734 conn_index, ep_index, chan_alloc, new_chan_alloc); in set_codec_config()
/Zephyr-latest/samples/bluetooth/central_multilink/src/
Dcentral_multilink.c122 uint8_t conn_index; in mtu_exchange() local
125 conn_index = bt_conn_index(conn); in mtu_exchange()
127 printk("MTU (%u): %u\n", conn_index, bt_gatt_get_mtu(conn)); in mtu_exchange()
129 mtu_exchange_params[conn_index].func = mtu_exchange_cb; in mtu_exchange()
131 err = bt_gatt_exchange_mtu(conn, &mtu_exchange_params[conn_index]); in mtu_exchange()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_csip.c97 uint8_t conn_index; in csip_discover_cb() local
109 conn_index = bt_conn_index(conn); in csip_discover_cb()
111 LOG_DBG("Found %zu sets on member[%u]", set_count, conn_index); in csip_discover_cb()
126 btp_csip_set_members[conn_index] = member; in csip_discover_cb()
128 csip_inst = bt_csip_set_coordinator_lookup_instance_by_index(conn, conn_index); in csip_discover_cb()
Dbtp_cap.c300 for (size_t conn_index = 0; conn_index < ARRAY_SIZE(btp_csip_set_members); conn_index++) { in btp_cap_unicast_audio_start() local
301 struct btp_bap_unicast_connection *u_conn = btp_bap_unicast_conn_get(conn_index); in btp_cap_unicast_audio_start()
419 for (size_t conn_index = 0; conn_index < ARRAY_SIZE(btp_csip_set_members); conn_index++) { in btp_cap_unicast_audio_stop() local
420 struct btp_bap_unicast_connection *u_conn = btp_bap_unicast_conn_get(conn_index); in btp_cap_unicast_audio_stop()
Dbtp_bap_unicast.h51 struct btp_bap_unicast_connection *btp_bap_unicast_conn_get(size_t conn_index);
Dbtp_bap_unicast.c1619 struct btp_bap_unicast_connection *btp_bap_unicast_conn_get(size_t conn_index) in btp_bap_unicast_conn_get() argument
1621 return &connections[conn_index]; in btp_bap_unicast_conn_get()
/Zephyr-latest/tests/bluetooth/common/testlib/include/testlib/
Dconn.h124 struct bt_conn *bt_testlib_conn_unindex(enum bt_conn_type conn_type, uint8_t conn_index);
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dcap_initiator_unicast_test.c280 const uint8_t conn_index = bt_conn_index(conn); in add_remote_sink() local
282 for (size_t i = 0U; i < ARRAY_SIZE(unicast_sink_eps[conn_index]); i++) { in add_remote_sink()
283 if (unicast_sink_eps[conn_index][i] == NULL) { in add_remote_sink()
284 printk("Conn[%u] %p: Sink #%zu: ep %p\n", conn_index, conn, i, ep); in add_remote_sink()
285 unicast_sink_eps[conn_index][i] = ep; in add_remote_sink()
295 const uint8_t conn_index = bt_conn_index(conn); in add_remote_source() local
297 for (size_t i = 0U; i < ARRAY_SIZE(unicast_source_eps[conn_index]); i++) { in add_remote_source()
298 if (unicast_source_eps[conn_index][i] == NULL) { in add_remote_source()
299 printk("Conn[%u] %p: Source #%zu: ep %p\n", conn_index, conn, i, ep); in add_remote_source()
300 unicast_source_eps[conn_index][i] = ep; in add_remote_source()
[all …]
Dcsip_set_coordinator_test.c80 uint8_t conn_index; in csip_discover_cb() local
89 conn_index = bt_conn_index(conn); in csip_discover_cb()
124 set_members[conn_index] = member; in csip_discover_cb()
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/src/
Dmain.c437 int conn_index; local
482 conn_index = chan = conn_count;
488 for (int chan = 0, conn_index = 0; local
489 (conn_index < conn_count) && (chan < CONFIG_BT_ISO_MAX_CHAN);
490 conn_index++, chan++) {
493 for (int chan = 0, conn_index = 0;
500 iso_connect_param.acl = conn_list[conn_index];
/Zephyr-latest/subsys/bluetooth/audio/
Dtbs_client.c171 uint8_t conn_index; in lookup_inst_by_handle() local
177 conn_index = bt_conn_index(conn); in lookup_inst_by_handle()
178 srv_inst = &srv_insts[conn_index]; in lookup_inst_by_handle()
1537 const uint8_t conn_index = bt_conn_index(conn); in tbs_client_disc_read_ccid() local
1538 struct bt_tbs_server_inst *srv_inst = &srv_insts[conn_index]; in tbs_client_disc_read_ccid()
1558 const uint8_t conn_index = bt_conn_index(conn); in discover_func() local
1559 struct bt_tbs_server_inst *srv_inst = &srv_insts[conn_index]; in discover_func()
1745 uint8_t conn_index = bt_conn_index(conn); in discover_next_instance() local
1746 struct bt_tbs_server_inst *srv_inst = &srv_insts[conn_index]; in discover_next_instance()
1798 const uint8_t conn_index = bt_conn_index(conn); in primary_discover_tbs_cb() local
[all …]
Dcsip_set_coordinator.c125 uint8_t conn_index; in lookup_instance_by_handle() local
131 conn_index = bt_conn_index(conn); in lookup_instance_by_handle()
132 client = &client_insts[conn_index]; in lookup_instance_by_handle()
147 uint8_t conn_index; in bt_csip_set_coordinator_lookup_instance_by_index() local
155 conn_index = bt_conn_index(conn); in bt_csip_set_coordinator_lookup_instance_by_index()
156 client = &client_insts[conn_index]; in bt_csip_set_coordinator_lookup_instance_by_index()
Dvcp_vol_ctlr.c363 uint8_t conn_index = bt_conn_index(conn); in vcs_discover_include_func() local
383 vol_ctlr_insts[conn_index].aics[inst_idx], in vcs_discover_include_func()
408 vol_ctlr_insts[conn_index].vocs[inst_idx], in vcs_discover_include_func()
Dbap_unicast_client.c205 const uint8_t conn_index = bt_conn_index(conn); in audio_stream_by_ep_id() local
211 for (size_t i = 0U; i < ARRAY_SIZE(uni_cli_insts[conn_index].snks); i++) { in audio_stream_by_ep_id()
213 &uni_cli_insts[conn_index].snks[i]; in audio_stream_by_ep_id()
222 for (size_t i = 0U; i < ARRAY_SIZE(uni_cli_insts[conn_index].srcs); i++) { in audio_stream_by_ep_id()
224 &uni_cli_insts[conn_index].srcs[i]; in audio_stream_by_ep_id()