Lines Matching refs:lll

104 	cig->lll.num_cis = 0U;  in ll_conn_iso_group_release()
174 return &cis->lll; in ull_conn_iso_lll_stream_get()
187 if ((cis->group == NULL) || (cis->lll.handle != handle) || !cis->established) { in ll_iso_stream_connected_get()
220 uint16_t cis_handle = cis->lll.handle; in ll_conn_iso_stream_get_by_acl()
231 } else if (cis->lll.acl_handle == conn->lll.handle) { in ll_conn_iso_stream_get_by_acl()
296 return &cis->lll; in ull_conn_iso_lll_stream_get_by_group()
373 return &cis_next->lll; in ull_conn_iso_lll_stream_sorted_get_by_group()
388 return &cig->lll; in ull_conn_iso_lll_group_get_by_stream()
429 node_rx->hdr.handle = cis->lll.acl_handle; in ull_conn_iso_lll_cis_established()
438 struct lll_conn_iso_group *lll; in ull_conn_iso_done() local
448 lll = &cig->lll; in ull_conn_iso_done()
451 if (unlikely(lll->handle == 0xFFFF)) { in ull_conn_iso_done()
461 for (cis_idx = 0; cis_idx < cig->lll.num_cis; cis_idx++) { in ull_conn_iso_done()
465 if (cis->lll.active && cis->lll.handle != LLL_HANDLE_INVALID) { in ull_conn_iso_done()
468 (1U << LL_CIS_IDX_FROM_HANDLE(cis->lll.handle))) { in ull_conn_iso_done()
486 struct ll_conn *conn = ll_conn_get(cis->lll.acl_handle); in ull_conn_iso_done()
495 event_elapsed = cig->lll.latency_event + in ull_conn_iso_done()
496 cig->lll.lazy_prepare + 1U; in ull_conn_iso_done()
529 struct ll_conn *conn = ll_connected_get(cis->lll.acl_handle); in ull_conn_iso_done()
589 mfy.param = &cig->lll; in ull_conn_iso_cis_stop()
615 cis_disabled_cb(&cig->lll); in ull_conn_iso_cis_stop()
655 cig->lll.num_cis = 0; in init_reset()
663 cis->lll.link_tx_free = NULL; in init_reset()
696 if (unlikely(cig->lll.handle == 0xFFFF)) { in ull_conn_iso_ticker_cb()
703 for (int i = 0; i < cig->lll.num_cis; i++) { in ull_conn_iso_ticker_cb()
713 if (cis->lll.handle != 0xFFFF && cis->lll.active) { in ull_conn_iso_ticker_cb()
714 cis->lll.event_count += (lazy + 1U); in ull_conn_iso_ticker_cb()
717 cis->lll.event_count -= cis->lll.lazy_active; in ull_conn_iso_ticker_cb()
718 cis->lll.lazy_active = 0U; in ull_conn_iso_ticker_cb()
722 cis->lll.event_count); in ull_conn_iso_ticker_cb()
724 ull_iso_lll_event_prepare(cis->lll.handle, cis->lll.event_count); in ull_conn_iso_ticker_cb()
728 cis->lll.datapath_ready_rx = cis->hdr.datapath_out != NULL; in ull_conn_iso_ticker_cb()
751 p.param = &cig->lll; in ull_conn_iso_ticker_cb()
775 cig->lll.window_widening_periodic_us_frac = in ull_conn_iso_ticker_cb()
780 iso_interval_us_frac -= cig->lll.window_widening_periodic_us_frac; in ull_conn_iso_ticker_cb()
792 ull_conn_iso_transmit_test_cig_interval(cig->lll.handle, ticks_at_expire); in ull_conn_iso_ticker_cb()
840 cis->lll.offset = cig->sync_delay - cis->sync_delay; in ull_conn_iso_start()
841 cis->lll.handle = cis_handle; in ull_conn_iso_start()
844 if (conn->lll.enc_tx) { in ull_conn_iso_start()
846 memcpy(cis->lll.tx.ccm.key, conn->lll.ccm_tx.key, in ull_conn_iso_start()
847 sizeof(cis->lll.tx.ccm.key)); in ull_conn_iso_start()
850 memcpy(&cis->lll.tx.ccm.iv[4], &conn->lll.ccm_tx.iv[4], 4); in ull_conn_iso_start()
853 mem_xor_32(cis->lll.tx.ccm.iv, conn->lll.ccm_tx.iv, in ull_conn_iso_start()
854 cis->lll.access_addr); in ull_conn_iso_start()
857 cis->lll.tx.ccm.counter = 0U; in ull_conn_iso_start()
862 cis->lll.tx.ccm.direction = !conn->lll.role; in ull_conn_iso_start()
865 if (conn->lll.enc_rx) { in ull_conn_iso_start()
867 memcpy(cis->lll.rx.ccm.key, conn->lll.ccm_rx.key, in ull_conn_iso_start()
868 sizeof(cis->lll.rx.ccm.key)); in ull_conn_iso_start()
871 memcpy(&cis->lll.rx.ccm.iv[4], &conn->lll.ccm_rx.iv[4], 4); in ull_conn_iso_start()
874 mem_xor_32(cis->lll.rx.ccm.iv, conn->lll.ccm_rx.iv, in ull_conn_iso_start()
875 cis->lll.access_addr); in ull_conn_iso_start()
878 cis->lll.rx.ccm.counter = 0U; in ull_conn_iso_start()
883 cis->lll.rx.ccm.direction = conn->lll.role; in ull_conn_iso_start()
897 cis->lll.lazy_active = 0U; in ull_conn_iso_start()
903 cis->lll.active = 1U; in ull_conn_iso_start()
925 cig->lll.window_widening_periodic_us_frac; in ull_conn_iso_start()
935 cig_offset_us += (conn->lll.interval * CONN_INT_UNIT_US); in ull_conn_iso_start()
937 conn->lll.interval * CONN_INT_UNIT_US); in ull_conn_iso_start()
958 acl_latency_us = instant_latency * conn->lll.interval * CONN_INT_UNIT_US; in ull_conn_iso_start()
978 cis->lll.event_count += lost_cig_events; in ull_conn_iso_start()
980 lost_payloads = (lost_cig_events - (cis->lll.rx.ft - 1)) * cis->lll.rx.bn; in ull_conn_iso_start()
981 cis->lll.rx.payload_count += lost_payloads; in ull_conn_iso_start()
983 lost_payloads = (lost_cig_events - (cis->lll.tx.ft - 1)) * cis->lll.tx.bn; in ull_conn_iso_start()
984 cis->lll.tx.payload_count += lost_payloads; in ull_conn_iso_start()
989 iso_interval_us_frac -= cig->lll.window_widening_periodic_us_frac * in ull_conn_iso_start()
1040 slot_us = cis->lll.sub_interval * cis->lll.nse; in ull_conn_iso_start()
1042 slot_us = cis->lll.sub_interval * MAX(cis->lll.tx.bn, cis->lll.rx.bn); in ull_conn_iso_start()
1077 cis->lll.lazy_active = 0U; in ull_conn_iso_start()
1095 cis->lll.active = 1U; in ull_conn_iso_start()
1181 cis->lll.active = 1U; in mfy_cis_lazy_fill()
1182 cis->lll.lazy_active = lazy; in mfy_cis_lazy_fill()
1225 num_cis = cig->lll.num_cis; in cis_disabled_cb()
1230 if (!cis->lll.active && (cis->lll.flush != LLL_CIS_FLUSH_COMPLETE)) { in cis_disabled_cb()
1237 if (cis->lll.flush == LLL_CIS_FLUSH_PENDING) { in cis_disabled_cb()
1240 } else if (cis->lll.flush == LLL_CIS_FLUSH_COMPLETE) { in cis_disabled_cb()
1243 conn = ll_conn_get(cis->lll.acl_handle); in cis_disabled_cb()
1252 ll_remove_iso_path(cis->lll.handle, in cis_disabled_cb()
1254 ll_remove_iso_path(cis->lll.handle, in cis_disabled_cb()
1259 cig->lll.num_cis--; in cis_disabled_cb()
1266 cis->lll.flush = LLL_CIS_FLUSH_NONE; in cis_disabled_cb()
1267 cis->lll.acl_handle = LLL_HANDLE_INVALID; in cis_disabled_cb()
1300 node_terminate->hdr.handle = cis->lll.handle; in cis_disabled_cb()
1306 conn = ll_conn_get(cis->lll.acl_handle); in cis_disabled_cb()
1314 if (cig->lll.resume_cis == cis->lll.handle) { in cis_disabled_cb()
1322 cig->lll.resume_cis = LLL_HANDLE_INVALID; in cis_disabled_cb()
1329 cis->lll.flush = LLL_CIS_FLUSH_PENDING; in cis_disabled_cb()
1331 mfys[cig->lll.handle].param = &cis->lll; in cis_disabled_cb()
1333 TICKER_USER_ID_LLL, 1, &mfys[cig->lll.handle]); in cis_disabled_cb()
1362 struct lll_conn_iso_stream *lll; in cis_tx_lll_flush() local
1368 lll = param; in cis_tx_lll_flush()
1369 lll->active = 0U; in cis_tx_lll_flush()
1371 cis = ll_conn_iso_stream_get(lll->handle); in cis_tx_lll_flush()
1375 lll_conn_iso_flush(lll->handle, lll); in cis_tx_lll_flush()
1377 link = memq_dequeue(lll->memq_tx.tail, &lll->memq_tx.head, (void **)&tx); in cis_tx_lll_flush()
1381 ull_iso_lll_ack_enqueue(lll->handle, tx); in cis_tx_lll_flush()
1383 link = memq_dequeue(lll->memq_tx.tail, &lll->memq_tx.head, in cis_tx_lll_flush()
1387 LL_ASSERT(!lll->link_tx_free); in cis_tx_lll_flush()
1388 link = memq_deinit(&lll->memq_tx.head, &lll->memq_tx.tail); in cis_tx_lll_flush()
1390 lll->link_tx_free = link; in cis_tx_lll_flush()
1392 lll->flush = LLL_CIS_FLUSH_COMPLETE; in cis_tx_lll_flush()
1395 mfys[cig->lll.handle].param = &cig->lll; in cis_tx_lll_flush()
1397 TICKER_USER_ID_ULL_HIGH, 1, &mfys[cig->lll.handle]); in cis_tx_lll_flush()
1429 mfy.param = &cig->lll; in cig_disable()
1444 cig_disabled_cb(&cig->lll); in cig_disable()
1471 cig, &cig->lll); in disable()
1474 cig->lll.handle = LLL_HANDLE_INVALID; in disable()
1475 cig->lll.resume_cis = LLL_HANDLE_INVALID; in disable()
1511 for (uint8_t i = 0; i < cig->lll.num_cis; i++) { in ull_conn_iso_transmit_test_cig_interval()
1515 if (!cis->hdr.test_mode.tx.enabled || cis->lll.handle == LLL_HANDLE_INVALID) { in ull_conn_iso_transmit_test_cig_interval()
1523 sdu_counter = DIV_ROUND_UP((cis->lll.event_count + 1U) * iso_interval, in ull_conn_iso_transmit_test_cig_interval()
1537 ll_iso_transmit_test_send_sdu(cis->lll.handle, ticks_at_expire); in ull_conn_iso_transmit_test_cig_interval()