Lines Matching refs:iso
236 iso_base* iso = GetIsoIfKnown(conn_handle); in on_setup_iso_data_path() local
237 LOG_ASSERT(iso != nullptr) << "Invalid connection handle: " << +conn_handle; in on_setup_iso_data_path()
239 if (status == HCI_SUCCESS) iso->state_flags |= kStateFlagHasDataPathSet; in on_setup_iso_data_path()
240 if (iso->state_flags & kStateFlagIsBroadcast) { in on_setup_iso_data_path()
242 big_callbacks_->OnSetupIsoDataPath(status, conn_handle, iso->big_handle); in on_setup_iso_data_path()
245 cig_callbacks_->OnSetupIsoDataPath(status, conn_handle, iso->cig_id); in on_setup_iso_data_path()
252 iso_base* iso = GetIsoIfKnown(conn_handle); in setup_iso_data_path() local
253 LOG_ASSERT(iso != nullptr) << "No such iso connection: " << +conn_handle; in setup_iso_data_path()
255 if (!(iso->state_flags & kStateFlagIsBroadcast)) { in setup_iso_data_path()
256 LOG_ASSERT(iso->state_flags & kStateFlagIsConnected) in setup_iso_data_path()
276 iso_base* iso = GetIsoIfKnown(conn_handle); in on_remove_iso_data_path() local
277 LOG_ASSERT(iso != nullptr) << "Invalid connection handle: " << +conn_handle; in on_remove_iso_data_path()
279 if (status == HCI_SUCCESS) iso->state_flags &= ~kStateFlagHasDataPathSet; in on_remove_iso_data_path()
281 if (iso->state_flags & kStateFlagIsBroadcast) { in on_remove_iso_data_path()
283 big_callbacks_->OnRemoveIsoDataPath(status, conn_handle, iso->big_handle); in on_remove_iso_data_path()
286 cig_callbacks_->OnRemoveIsoDataPath(status, conn_handle, iso->cig_id); in on_remove_iso_data_path()
291 iso_base* iso = GetIsoIfKnown(iso_handle); in remove_iso_data_path() local
292 LOG_ASSERT(iso != nullptr) << "No such iso connection"; in remove_iso_data_path()
293 LOG_ASSERT((iso->state_flags & kStateFlagHasDataPathSet) == in remove_iso_data_path()
323 iso_base* iso = GetIsoIfKnown(conn_handle); in on_iso_link_quality_read() local
324 LOG_ASSERT(iso != nullptr) << "Invalid connection handle: " << +conn_handle; in on_iso_link_quality_read()
336 conn_handle, iso->cig_id, txUnackedPackets, txFlushedPackets, in on_iso_link_quality_read()
342 iso_base* iso = GetIsoIfKnown(iso_handle); in read_iso_link_quality() local
343 LOG_ASSERT(iso != nullptr) << "No such iso connection"; in read_iso_link_quality()
382 iso_base* iso = GetIsoIfKnown(iso_handle); in send_iso_data() local
383 LOG_ASSERT(iso != nullptr) in send_iso_data()
386 if (!(iso->state_flags & kStateFlagIsBroadcast)) { in send_iso_data()
387 LOG_ASSERT(iso->state_flags & kStateFlagIsConnected) in send_iso_data()
390 LOG_ASSERT(iso->state_flags & kStateFlagHasDataPathSet) in send_iso_data()
397 iso->sync_info.seq_nb = (ts - iso->sync_info.first_sync_ts) / iso->sdu_itv; in send_iso_data()
409 prepare_ts_hci_packet(iso_handle, ts, iso->sync_info.seq_nb, data_len); in send_iso_data()
618 iso_base* iso = GetCisIfKnown(evt.cis_conn_hdl); in handle_iso_data() local
619 if (iso == nullptr) { in handle_iso_data()
632 (ts - iso->sync_info.first_sync_ts) / iso->sdu_itv; in handle_iso_data()
633 if (new_calc_seq_nb <= iso->sync_info.seq_nb) in handle_iso_data()
634 new_calc_seq_nb = iso->sync_info.seq_nb + 1; in handle_iso_data()
636 if (iso->sync_info.seq_nb == 0) { in handle_iso_data()
639 evt.evt_lost = new_calc_seq_nb - iso->sync_info.seq_nb - 1; in handle_iso_data()
647 iso->sync_info.first_sync_ts = ts - (seq_nb * iso->sdu_itv); in handle_iso_data()
651 iso->sync_info.seq_nb = new_calc_seq_nb; in handle_iso_data()
654 evt.cig_id = iso->cig_id; in handle_iso_data()
671 struct iso_base* iso = GetCisIfKnown(iso_handle); in GetIsoIfKnown() local
672 return (iso != nullptr) ? iso : GetBisIfKnown(iso_handle); in GetIsoIfKnown()