Lines Matching refs:cis

760 		u8  cis;  member
767 struct hci_cis_params cis[0x11]; member
1634 struct hci_cis_params *cis = &d->pdu.cis[d->pdu.cp.num_cis]; in cis_add() local
1636 cis->cis_id = qos->cis; in cis_add()
1637 cis->c_sdu = cpu_to_le16(qos->out.sdu); in cis_add()
1638 cis->p_sdu = cpu_to_le16(qos->in.sdu); in cis_add()
1639 cis->c_phy = qos->out.phy ? qos->out.phy : qos->in.phy; in cis_add()
1640 cis->p_phy = qos->in.phy ? qos->in.phy : qos->out.phy; in cis_add()
1641 cis->c_rtn = qos->out.rtn; in cis_add()
1642 cis->p_rtn = qos->in.rtn; in cis_add()
1655 if (d->cig != conn->iso_qos.cig || d->cis == BT_ISO_QOS_CIS_UNSET || in cis_list()
1656 d->cis != conn->iso_qos.cis) in cis_list()
1662 d->count >= ARRAY_SIZE(d->pdu.cis)) in cis_list()
1702 data.cis = 0xff; in hci_le_set_cig_params()
1731 if (qos->cis != BT_ISO_QOS_CIS_UNSET) { in hci_le_set_cig_params()
1734 data.cis = qos->cis; in hci_le_set_cig_params()
1745 for (data.cig = qos->cig, data.cis = 0x00; data.cis < 0x11; in hci_le_set_cig_params()
1746 data.cis++) { in hci_le_set_cig_params()
1755 if (qos->cis == BT_ISO_QOS_CIS_UNSET) { in hci_le_set_cig_params()
1757 qos->cis = data.cis; in hci_le_set_cig_params()
1762 if (qos->cis == BT_ISO_QOS_CIS_UNSET || !data.pdu.cp.num_cis) in hci_le_set_cig_params()
1767 (data.pdu.cp.num_cis * sizeof(*data.pdu.cis)), in hci_le_set_cig_params()
1777 struct hci_conn *cis; in hci_bind_cis() local
1779 cis = hci_conn_hash_lookup_cis(hdev, dst, dst_type); in hci_bind_cis()
1780 if (!cis) { in hci_bind_cis()
1781 cis = hci_conn_add(hdev, ISO_LINK, dst, HCI_ROLE_MASTER); in hci_bind_cis()
1782 if (!cis) in hci_bind_cis()
1784 cis->cleanup = cis_cleanup; in hci_bind_cis()
1785 cis->dst_type = dst_type; in hci_bind_cis()
1788 if (cis->state == BT_CONNECTED) in hci_bind_cis()
1789 return cis; in hci_bind_cis()
1792 if (cis->state == BT_BOUND && in hci_bind_cis()
1793 !memcmp(&cis->iso_qos, qos, sizeof(*qos))) in hci_bind_cis()
1794 return cis; in hci_bind_cis()
1797 cis->le_tx_phy = qos->out.phy; in hci_bind_cis()
1798 cis->le_rx_phy = qos->in.phy; in hci_bind_cis()
1824 if (!hci_le_set_cig_params(cis, qos)) { in hci_bind_cis()
1825 hci_conn_drop(cis); in hci_bind_cis()
1829 cis->iso_qos = *qos; in hci_bind_cis()
1830 cis->state = BT_BOUND; in hci_bind_cis()
1832 return cis; in hci_bind_cis()
1871 struct hci_cis cis[0x1f]; in hci_create_cis_sync() member
1877 cmd.cis[0].acl_handle = cpu_to_le16(conn->link->handle); in hci_create_cis_sync()
1878 cmd.cis[0].cis_handle = cpu_to_le16(conn->handle); in hci_create_cis_sync()
1887 struct hci_cis *cis = &cmd.cis[cmd.cp.num_cis]; in hci_create_cis_sync() local
1911 cis->acl_handle = cpu_to_le16(conn->link->handle); in hci_create_cis_sync()
1912 cis->cis_handle = cpu_to_le16(conn->handle); in hci_create_cis_sync()
1924 sizeof(cmd.cis[0]) * cmd.cp.num_cis, &cmd); in hci_create_cis_sync()
1929 struct hci_conn *cis; in hci_le_create_cis() local
1937 cis = conn->link; in hci_le_create_cis()
1940 cis = conn; in hci_le_create_cis()
1946 if (cis->state == BT_CONNECT) in hci_le_create_cis()
1950 err = hci_cmd_sync_queue(hdev, hci_create_cis_sync, cis, NULL); in hci_le_create_cis()
1954 cis->state = BT_CONNECT; in hci_le_create_cis()
2163 struct hci_conn *cis; in hci_connect_cis() local
2183 cis = hci_bind_cis(hdev, dst, dst_type, qos); in hci_connect_cis()
2184 if (IS_ERR(cis)) { in hci_connect_cis()
2186 return cis; in hci_connect_cis()
2189 le->link = cis; in hci_connect_cis()
2190 cis->link = le; in hci_connect_cis()
2192 hci_conn_hold(cis); in hci_connect_cis()
2197 if (le->state == BT_CONNECTED && cis->handle != HCI_CONN_HANDLE_UNSET) in hci_connect_cis()
2200 return cis; in hci_connect_cis()