Lines Matching refs:cig

157 	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()
191 memset(&cig->lll, 0, sizeof(cig->lll)); in ull_peripheral_iso_acquire()
193 cig->iso_interval = sys_le16_to_cpu(req->iso_interval); in ull_peripheral_iso_acquire()
194 iso_interval_us = cig->iso_interval * CONN_INT_UNIT_US; in ull_peripheral_iso_acquire()
195 cig->lll.iso_interval_us = iso_interval_us; in ull_peripheral_iso_acquire()
197 cig->cig_id = req->cig_id; in ull_peripheral_iso_acquire()
198 cig->lll.handle = LLL_HANDLE_INVALID; in ull_peripheral_iso_acquire()
199 cig->lll.role = acl->lll.role; in ull_peripheral_iso_acquire()
200 cig->lll.resume_cis = LLL_HANDLE_INVALID; in ull_peripheral_iso_acquire()
207 cig->lll.window_widening_max_us = (iso_interval_us >> 1) - in ull_peripheral_iso_acquire()
209 cig->lll.window_widening_periodic_us_frac = in ull_peripheral_iso_acquire()
214 lll_hdr_init(&cig->lll, cig); in ull_peripheral_iso_acquire()
217 if (cig->lll.num_cis == CONFIG_BT_CTLR_CONN_ISO_STREAMS_PER_GROUP) { in ull_peripheral_iso_acquire()
234 if (!cig->lll.num_cis) { in ull_peripheral_iso_acquire()
238 ll_conn_iso_group_release(cig); in ull_peripheral_iso_acquire()
245 cig->c_sdu_interval = sys_get_le24(req->c_sdu_interval) & 0x0FFFFF; in ull_peripheral_iso_acquire()
246 cig->p_sdu_interval = sys_get_le24(req->p_sdu_interval) & 0x0FFFFF; in ull_peripheral_iso_acquire()
251 cis->group = cig; in ull_peripheral_iso_acquire()
286 cig->lll.num_cis++; in ull_peripheral_iso_acquire()
296 struct ll_conn_iso_group *cig; in ull_peripheral_iso_setup() local
301 cig = ll_conn_iso_group_get_by_id(cig_id); in ull_peripheral_iso_setup()
302 if (!cig) { in ull_peripheral_iso_setup()
306 cig->lll.handle = ll_conn_iso_group_handle_get(cig); in ull_peripheral_iso_setup()
307 cig->sync_delay = sys_get_le24(ind->cig_sync_delay); in ull_peripheral_iso_setup()
319 if (cig->state != CIG_STATE_ACTIVE) { in ull_peripheral_iso_setup()
360 void ull_peripheral_iso_update_ticker(struct ll_conn_iso_group *cig, in ull_peripheral_iso_update_ticker() argument
366 uint8_t ticker_id_cig = TICKER_ID_CONN_ISO_BASE + ll_conn_iso_group_handle_get(cig); in ull_peripheral_iso_update_ticker()
381 ull_conn_iso_ticker_cb, cig, in ull_peripheral_iso_update_ticker()
397 struct ll_conn_iso_group *cig; in ull_peripheral_iso_update_peer_sca() local
399 cig = ll_conn_iso_group_get(cig_handle); in ull_peripheral_iso_update_peer_sca()
400 if (!cig || !cig->lll.num_cis) { in ull_peripheral_iso_update_peer_sca()
403 cis = ll_conn_iso_stream_get_by_group(cig, NULL); in ull_peripheral_iso_update_peer_sca()
414 cig->sca_update = acl->periph.sca + 1; in ull_peripheral_iso_update_peer_sca()