Lines Matching refs:cis
722 struct hci_cis_params cis[0x1f];
731 u8 cis;
1798 pdu.cp.num_cis < ARRAY_SIZE(pdu.cis); cis_id++) {
1799 struct hci_cis_params *cis;
1807 cis = &pdu.cis[pdu.cp.num_cis++];
1808 cis->cis_id = cis_id;
1809 cis->c_sdu = cpu_to_le16(conn->iso_qos.ucast.out.sdu);
1810 cis->p_sdu = cpu_to_le16(conn->iso_qos.ucast.in.sdu);
1811 cis->c_phy = qos->ucast.out.phy ? qos->ucast.out.phy :
1813 cis->p_phy = qos->ucast.in.phy ? qos->ucast.in.phy :
1815 cis->c_rtn = qos->ucast.out.rtn;
1816 cis->p_rtn = qos->ucast.in.rtn;
1824 pdu.cp.num_cis * sizeof(pdu.cis[0]), &pdu,
1858 if (qos->ucast.cis != BT_ISO_QOS_CIS_UNSET) {
1860 qos->ucast.cis))
1866 for (data.cig = qos->ucast.cig, data.cis = 0x00; data.cis < 0xf0;
1867 data.cis++) {
1869 data.cis)) {
1871 qos->ucast.cis = data.cis;
1876 if (qos->ucast.cis == BT_ISO_QOS_CIS_UNSET)
1890 struct hci_conn *cis;
1892 cis = hci_conn_hash_lookup_cis(hdev, dst, dst_type, qos->ucast.cig,
1893 qos->ucast.cis);
1894 if (!cis) {
1895 cis = hci_conn_add_unset(hdev, ISO_LINK, dst, HCI_ROLE_MASTER);
1896 if (!cis)
1898 cis->cleanup = cis_cleanup;
1899 cis->dst_type = dst_type;
1900 cis->iso_qos.ucast.cig = BT_ISO_QOS_CIG_UNSET;
1901 cis->iso_qos.ucast.cis = BT_ISO_QOS_CIS_UNSET;
1904 if (cis->state == BT_CONNECTED)
1905 return cis;
1908 if (cis->state == BT_BOUND &&
1909 !memcmp(&cis->iso_qos, qos, sizeof(*qos)))
1910 return cis;
1913 cis->le_tx_phy = qos->ucast.out.phy;
1914 cis->le_rx_phy = qos->ucast.in.phy;
1940 if (!hci_le_set_cig_params(cis, qos)) {
1941 hci_conn_drop(cis);
1945 hci_conn_hold(cis);
1947 cis->iso_qos = *qos;
1948 cis->state = BT_BOUND;
1950 return cis;
2270 struct hci_conn *cis;
2291 cis = hci_bind_cis(hdev, dst, dst_type, qos);
2292 if (IS_ERR(cis)) {
2294 return cis;
2297 link = hci_conn_link(le, cis);
2300 hci_conn_drop(cis);
2305 hci_conn_drop(cis);
2307 cis->state = BT_CONNECT;
2311 return cis;