Lines Matching full:big
671 u8 big; member
692 if (d->big != conn->iso_qos.bcast.big || d->bis == BT_ISO_QOS_BIS_UNSET || in bis_list()
703 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", d->big, d->bis); in terminate_big_sync()
708 /* Only terminate BIG if it has been created */ in terminate_big_sync()
712 return hci_le_terminate_big_sync(hdev, d->big, in terminate_big_sync()
726 bt_dev_dbg(hdev, "big 0x%2.2x bis 0x%2.2x", conn->iso_qos.bcast.big, in hci_le_terminate_big()
733 d->big = conn->iso_qos.bcast.big; in hci_le_terminate_big()
749 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", d->big, in big_terminate_sync()
753 hci_le_big_terminate_sync(hdev, d->big); in big_terminate_sync()
765 /* Ignore if BIG doesn't match */ in find_bis()
766 if (d->big != conn->iso_qos.bcast.big) in find_bis()
772 static int hci_le_big_terminate(struct hci_dev *hdev, u8 big, struct hci_conn *conn) in hci_le_big_terminate() argument
777 bt_dev_dbg(hdev, "big 0x%2.2x sync_handle 0x%4.4x", big, conn->sync_handle); in hci_le_big_terminate()
783 d->big = big; in hci_le_big_terminate()
814 * Detects if there any BIS left connected in a BIG
815 * broadcaster: Remove advertising instance and terminate BIG.
816 * broadcaster receiver: Teminate BIG sync and terminate PA sync.
830 * set and BIG if there are no other connections using it. in bis_cleanup()
832 bis = hci_conn_hash_lookup_big(hdev, conn->iso_qos.bcast.big); in bis_cleanup()
838 hci_le_big_terminate(hdev, conn->iso_qos.bcast.big, in bis_cleanup()
1259 /* In case of BIG/PA sync failed, clear conn flags so that in hci_conn_failed()
1432 u8 big; in qos_set_big() local
1434 /* Allocate a BIG if not set */ in qos_set_big()
1435 if (qos->bcast.big == BT_ISO_QOS_BIG_UNSET) { in qos_set_big()
1436 for (big = 0x00; big < 0xef; big++) { in qos_set_big()
1438 conn = hci_conn_hash_lookup_big(hdev, big); in qos_set_big()
1443 if (big == 0xef) in qos_set_big()
1446 /* Update BIG */ in qos_set_big()
1447 qos->bcast.big = big; in qos_set_big()
1460 if (qos->bcast.big != BT_ISO_QOS_BIG_UNSET) { in qos_set_bis()
1461 conn = hci_conn_hash_lookup_big(hdev, qos->bcast.big); in qos_set_bis()
1464 /* If the BIG handle is already matched to an advertising in qos_set_bis()
1516 /* Check if the LE Create BIG command has already been sent */ in hci_add_bis()
1517 conn = hci_conn_hash_lookup_per_adv_bis(hdev, dst, qos->bcast.big, in hci_add_bis()
1518 qos->bcast.big); in hci_add_bis()
1523 * BISes in a BIG must have the same value for all parameters in hci_add_bis()
1525 conn = hci_conn_hash_lookup_big(hdev, qos->bcast.big); in hci_add_bis()
1735 data.big = qos->bcast.big; in hci_le_create_big()
1743 cp.handle = qos->bcast.big; in hci_le_create_big()
2188 bt_dev_err(hdev, "Unable to create BIG sync: %d", err); in big_create_sync_complete()
2200 /* The spec allows only one pending LE BIG Create Sync command at in big_create_sync()
2202 * check for pending connections after each BIG Sync Established in big_create_sync()
2209 * process of synchronizing to any BIG, i.e. the HCI_LE_BIG_Sync_ in big_create_sync()
2224 pdu->handle = qos->bcast.big; in big_create_sync()
2286 bt_dev_err(hdev, "Unable to create BIG: %d", err); in create_big_complete()
2302 conn = hci_conn_hash_lookup_big_state(hdev, qos->bcast.big, BT_OPEN); in hci_bind_bis()
2337 conn->iso_qos.bcast.big); in hci_bind_bis()
2356 if (d->big != conn->iso_qos.bcast.big || in bis_mark_per_adv()
2379 data.big = qos->bcast.big; in hci_connect_bis()
2383 * the start periodic advertising and create BIG commands have in hci_connect_bis()
2389 /* Queue start periodic advertising and create BIG */ in hci_connect_bis()