Home
last modified time | relevance | path

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

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_conn_iso.c100 void ll_conn_iso_group_release(struct ll_conn_iso_group *cig) in ll_conn_iso_group_release() argument
102 cig->cig_id = 0xFF; in ll_conn_iso_group_release()
103 cig->state = CIG_STATE_NO_CIG; in ll_conn_iso_group_release()
104 cig->lll.num_cis = 0U; in ll_conn_iso_group_release()
106 mem_release(cig, &cig_free); in ll_conn_iso_group_release()
109 uint16_t ll_conn_iso_group_handle_get(struct ll_conn_iso_group *cig) in ll_conn_iso_group_handle_get() argument
111 return mem_index_get(cig, cig_pool, sizeof(struct ll_conn_iso_group)); in ll_conn_iso_group_handle_get()
121 struct ll_conn_iso_group *cig; in ll_conn_iso_group_get_by_id() local
124 cig = ll_conn_iso_group_get(h); in ll_conn_iso_group_get_by_id()
125 if (id == cig->cig_id) { in ll_conn_iso_group_get_by_id()
[all …]
Dull_peripheral_iso.c157 struct ll_conn_iso_group *cig; in ull_peripheral_iso_release() local
162 cig = cis->group; in ull_peripheral_iso_release()
165 cig->lll.num_cis--; in ull_peripheral_iso_release()
167 if (!cig->lll.num_cis) { in ull_peripheral_iso_release()
168 ll_conn_iso_group_release(cig); in ull_peripheral_iso_release()
176 struct ll_conn_iso_group *cig; in ull_peripheral_iso_acquire() local
182 cig = ll_conn_iso_group_get_by_id(req->cig_id); in ull_peripheral_iso_acquire()
183 if (!cig) { in ull_peripheral_iso_acquire()
185 cig = ll_conn_iso_group_acquire(); in ull_peripheral_iso_acquire()
186 if (!cig) { in ull_peripheral_iso_acquire()
[all …]
Dull_central_iso.c158 struct ll_conn_iso_group *cig; in ll_cig_parameters_commit() local
185 cig = ll_conn_iso_group_get_by_id(cig_id); in ll_cig_parameters_commit()
186 if (!cig) { in ll_cig_parameters_commit()
188 cig = ll_conn_iso_group_acquire(); in ll_cig_parameters_commit()
189 if (!cig) { in ll_cig_parameters_commit()
195 cig->lll.num_cis = 0U; in ll_cig_parameters_commit()
198 } else if (cig->state != CIG_STATE_CONFIGURABLE) { in ll_cig_parameters_commit()
204 num_cis = cig->lll.num_cis; in ll_cig_parameters_commit()
207 memcpy(cig, &ll_iso_setup.group, sizeof(struct ll_conn_iso_group)); in ll_cig_parameters_commit()
209 cig->state = CIG_STATE_CONFIGURABLE; in ll_cig_parameters_commit()
[all …]
Dull_conn_iso_internal.h7 #define IS_PERIPHERAL(cig) \ argument
9 (cig->lll.role == BT_HCI_ROLE_PERIPHERAL))
11 #define IS_CENTRAL(cig) \ argument
13 (cig->lll.role == BT_HCI_ROLE_CENTRAL))
23 void ll_conn_iso_group_release(struct ll_conn_iso_group *cig);
24 uint16_t ll_conn_iso_group_handle_get(struct ll_conn_iso_group *cig);
35 struct ll_conn_iso_stream *ll_conn_iso_stream_get_by_group(struct ll_conn_iso_group *cig,
Dull_iso.c240 struct ll_conn_iso_group *cig; in ll_setup_iso_path() local
275 cig = cis->group; in ll_setup_iso_path()
277 role = cig->lll.role; in ll_setup_iso_path()
278 iso_interval = cig->iso_interval; in ll_setup_iso_path()
279 group_sync_delay = cig->sync_delay; in ll_setup_iso_path()
291 sdu_interval = cig->c_sdu_interval; in ll_setup_iso_path()
294 sdu_interval = cig->p_sdu_interval; in ll_setup_iso_path()
304 sdu_interval = cig->p_sdu_interval; in ll_setup_iso_path()
307 sdu_interval = cig->c_sdu_interval; in ll_setup_iso_path()
838 struct ll_conn_iso_group *cig; in ll_iso_receive_test() local
[all …]
Dull_peripheral_iso_internal.h20 void ull_peripheral_iso_update_ticker(struct ll_conn_iso_group *cig,
Dull_sched.c753 struct ll_conn_iso_group *cig; in ull_hdr_get_cb() local
755 cig = ll_conn_iso_group_get(ticker_id - TICKER_ID_CONN_ISO_BASE); in ull_hdr_get_cb()
756 if (cig) { in ull_hdr_get_cb()
757 *ticks_slot = cig->ull.ticks_slot; in ull_hdr_get_cb()
759 return &cig->ull; in ull_hdr_get_cb()
Dlll_conn_iso.h124 void lll_conn_iso_done(struct lll_conn_iso_group *cig, uint32_t trx_performed,
Dull_llcp_common.c132 struct ll_conn_iso_group *cig = ll_conn_iso_group_get_by_id(cig_id); in llcp_cis_stop_by_id() local
134 if (cig) { in llcp_cis_stop_by_id()
139 cis = ll_conn_iso_stream_get_by_group(cig, &cis_handle); in llcp_cis_stop_by_id()
142 cis = ll_conn_iso_stream_get_by_group(cig, &cis_handle); in llcp_cis_stop_by_id()
Dull_llcp.c812 struct ll_conn_iso_group *cig; in ull_cp_cis_create() local
827 cig = cis->group; in ull_cp_cis_create()
834 ctx->data.cis_create.c_sdu_interval = cig->c_sdu_interval; in ull_cp_cis_create()
835 ctx->data.cis_create.p_sdu_interval = cig->p_sdu_interval; in ull_cp_cis_create()
840 ctx->data.cis_create.iso_interval = cig->iso_interval; in ull_cp_cis_create()
/Zephyr-latest/tests/bluetooth/controller/mock_ctrl/src/
Dull_conn_iso.c44 static struct ll_conn_iso_group cig = { 0 }; variable
45 static struct ll_conn_iso_stream cis = { .established = 1, .group = &cig };
65 return &cig; in ll_conn_iso_group_get_by_id()
68 struct ll_conn_iso_stream *ll_conn_iso_stream_get_by_group(struct ll_conn_iso_group *cig, in ll_conn_iso_stream_get_by_group() argument
/Zephyr-latest/tests/bsim/bluetooth/host/iso/cis/src/
Dcis_central.c18 static struct bt_iso_cig *cig; variable
209 err = bt_iso_cig_create(&param, &cig); in create_cig()
225 err = bt_iso_cig_reconfigure(cig, param); in reconfigure_cig_interval()
232 err = bt_iso_cig_reconfigure(cig, param); in reconfigure_cig_interval()
242 err = bt_iso_cig_reconfigure(cig, param); in reconfigure_cig_interval()
260 err = bt_iso_cig_reconfigure(cig, param); in reconfigure_cig_latency()
269 err = bt_iso_cig_reconfigure(cig, param); in reconfigure_cig_latency()
294 err = bt_iso_cig_reconfigure(cig, &param); in reconfigure_cig()
317 err = bt_iso_cig_reconfigure(cig, &param); in reconfigure_cig()
389 err = bt_iso_cig_terminate(cig); in terminate_cig()
[all …]
/Zephyr-latest/subsys/bluetooth/host/
Diso.c423 struct bt_iso_cig *cig; in bt_iso_chan_disconnected() local
427 cig = get_cig(chan); in bt_iso_chan_disconnected()
428 __ASSERT(cig != NULL, "CIG was NULL"); in bt_iso_chan_disconnected()
431 SYS_SLIST_FOR_EACH_CONTAINER(&cig->cis_channels, cis_chan, node) { in bt_iso_chan_disconnected()
440 cig->state = BT_ISO_CIG_STATE_INACTIVE; in bt_iso_chan_disconnected()
1717 static struct net_buf *hci_le_set_cig_params(const struct bt_iso_cig *cig, in hci_le_set_cig_params() argument
1736 req->cig_id = cig->id; in hci_le_set_cig_params()
1750 cig->id, param->c_to_p_latency, param->p_to_c_latency, param->c_to_p_interval, in hci_le_set_cig_params()
1806 static struct net_buf *hci_le_set_cig_test_params(const struct bt_iso_cig *cig, in hci_le_set_cig_test_params() argument
1825 req->cig_id = cig->id; in hci_le_set_cig_test_params()
[all …]
/Zephyr-latest/samples/bluetooth/iso_central/src/
Dmain.c239 struct bt_iso_cig *cig; in main() local
271 err = bt_iso_cig_create(&param, &cig); in main()
/Zephyr-latest/subsys/bluetooth/host/shell/
Diso.c144 static struct bt_iso_cig *cig; variable
200 if (cig != NULL) { in cmd_cig_create()
407 err = bt_iso_cig_create(&param, &cig); in cmd_cig_create()
422 if (cig == NULL) { in cmd_cig_term()
427 err = bt_iso_cig_terminate(cig); in cmd_cig_term()
434 cig = NULL; in cmd_cig_term()
/Zephyr-latest/samples/bluetooth/iso_connected_benchmark/src/
Dmain.c88 static struct bt_iso_cig *cig; variable
1108 err = bt_iso_cig_create(&cig_create_param, &cig); in central_create_cig()
1195 if (cig) { in cleanup()
1196 err = bt_iso_cig_terminate(cig); in cleanup()
1201 cig = NULL; in cleanup()
1279 err = bt_iso_cig_terminate(cig); in run_central()
1284 cig = NULL; in run_central()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_bap_unicast.h25 struct bt_bap_unicast_group *cig; member
Dbtp_bap_unicast.c608 int err = bt_bap_unicast_group_delete(u_cig->cig); in stream_released()
1088 err = bt_bap_unicast_group_delete(u_cig->cig); in btp_bap_unicast_group_create()
1135 err = bt_bap_unicast_group_create(&param, &cigs[cig_id].cig); in btp_bap_unicast_group_create()
1341 err = bt_bap_stream_qos(conn, cigs[cp->cig_id].cig); in btp_ascs_configure_qos()
/Zephyr-latest/include/zephyr/bluetooth/
Diso.h841 int bt_iso_cig_reconfigure(struct bt_iso_cig *cig, const struct bt_iso_cig_param *param);
852 int bt_iso_cig_terminate(struct bt_iso_cig *cig);
/Zephyr-latest/subsys/bluetooth/audio/
Dbap_endpoint.h92 struct bt_iso_cig *cig; member
Dascs_internal.h155 uint8_t cig; member
Dbap_unicast_client.c1980 req->cig = conn_iso->cig_id; in bt_bap_unicast_client_ep_qos()
2337 err = bt_iso_cig_create(&param, &group->cig); in bt_audio_cig_create()
2368 err = bt_iso_cig_reconfigure(group->cig, &param); in bt_audio_cig_reconfigure()
2401 return bt_iso_cig_terminate(group->cig); in unicast_client_cig_terminate()
3019 struct bt_iso_cig *cig; in bt_bap_unicast_group_add_streams() local
3066 cig = unicast_group->cig; in bt_bap_unicast_group_add_streams()
3067 if (cig != NULL && cig->state != BT_ISO_CIG_STATE_CONFIGURED) { in bt_bap_unicast_group_add_streams()
3126 if (unicast_group->cig != NULL) { in bt_bap_unicast_group_delete()
Dascs.c2128 ase_qos(ase, qos->cig, qos->cis, &cqos, &rsp); in ascs_qos()
/Zephyr-latest/tests/bsim/bluetooth/ll/cis/src/
Dmain.c342 struct bt_iso_cig *cig; local
415 err = bt_iso_cig_create(&cig_param, &cig);
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci.c4360 struct ll_conn_iso_group *cig; local
4370 cig = cis->group;
4384 if (!cig) {
4390 is_central = cig->lll.role == BT_CONN_ROLE_CENTRAL;
4394 sys_put_le24(cig->sync_delay, sep->cig_sync_delay);
4396 sys_put_le24(cig->c_latency, sep->c_latency);
4397 sys_put_le24(cig->p_latency, sep->p_latency);
4407 sep->interval = sys_cpu_to_le16(cig->iso_interval);
5972 struct ll_conn_iso_group *cig; local
5982 cig = cis->group;
[all …]