Lines Matching +defs:phy +defs:handle
49 __u16 handle;
152 if (HCI_CONN_HANDLE_UNSET(conn->handle))
153 ida_free(&hdev->unset_handle_ida, conn->handle);
192 clkoff_cp.handle = cpu_to_le16(conn->handle);
200 static void hci_add_sco(struct hci_conn *conn, __u16 handle)
212 cp.handle = cpu_to_le16(handle);
285 __u16 handle = conn_handle->handle;
305 cp.handle = cpu_to_le16(handle);
407 static bool hci_setup_sync_conn(struct hci_conn *conn, __u16 handle)
420 cp.handle = cpu_to_le16(handle);
459 bool hci_setup_sync(struct hci_conn *conn, __u16 handle)
471 conn_handle->handle = handle;
480 return hci_setup_sync_conn(conn, handle);
503 cp.handle = cpu_to_le16(conn->handle);
529 cp.handle = cpu_to_le16(conn->handle);
550 hci_setup_sync(link->conn, conn->handle);
552 hci_add_sco(link->conn, conn->handle);
599 cp.handle = cpu_to_le16(conn->handle);
608 cp.handle = cpu_to_le16(conn->handle);
855 u8 handle = PTR_UINT(data);
857 return hci_le_remove_cig_sync(hdev, handle);
860 static int hci_le_remove_cig(struct hci_dev *hdev, u8 handle)
862 bt_dev_dbg(hdev, "handle 0x%2.2x", handle);
864 return hci_cmd_sync_queue(hdev, remove_cig_sync, UINT_PTR(handle),
915 u8 role, u16 handle)
946 bt_dev_dbg(hdev, "dst %pMR handle 0x%4.4x", dst, handle);
954 conn->handle = handle;
1052 int handle;
1056 handle = hci_conn_hash_alloc_unset(hdev);
1057 if (unlikely(handle < 0))
1060 return __hci_conn_add(hdev, type, dst, role, handle);
1064 u8 role, u16 handle)
1066 if (handle > HCI_CONN_HANDLE_MAX)
1069 return __hci_conn_add(hdev, type, dst, role, handle);
1084 if (HCI_CONN_HANDLE_UNSET(conn->handle))
1144 BT_DBG("%s hcon %p handle %d", hdev->name, conn, conn->handle);
1317 u8 hci_conn_set_handle(struct hci_conn *conn, u16 handle)
1321 bt_dev_dbg(hdev, "hcon %p handle 0x%4.4x", conn, handle);
1323 if (conn->handle == handle)
1326 if (handle > HCI_CONN_HANDLE_MAX) {
1327 bt_dev_err(hdev, "Invalid handle: 0x%4.4x > 0x%4.4x",
1328 handle, HCI_CONN_HANDLE_MAX);
1333 * aborted and the handle shall not be changed.
1338 if (HCI_CONN_HANDLE_UNSET(conn->handle))
1339 ida_free(&hdev->unset_handle_ida, conn->handle);
1341 conn->handle = handle;
1348 u16 conn_timeout, u8 role, u8 phy, u8 sec_phy)
1387 * to handle connection failures. The address will later
1411 conn->le_adv_phy = phy;
1510 /* If the BIG handle is already matched to an advertising
1511 * handle, do not allocate a new one.
1607 * established. To be able to handle these ATT messages, the user-
1791 cp.handle = qos->bcast.big;
1798 cp.bis.phy = qos->bcast.out.phy;
1848 cis->c_phy = qos->ucast.out.phy ? qos->ucast.out.phy :
1849 qos->ucast.in.phy;
1850 cis->p_phy = qos->ucast.in.phy ? qos->ucast.in.phy :
1851 qos->ucast.out.phy;
1953 cis->le_tx_phy = qos->ucast.out.phy;
1954 cis->le_rx_phy = qos->ucast.in.phy;
2001 cmd.handle = cpu_to_le16(conn->handle);
2012 cmd.handle = cpu_to_le16(conn->handle);
2031 conn->state != BT_CONNECT || HCI_CONN_HANDLE_UNSET(conn->handle))
2069 struct bt_iso_io_qos *qos, __u8 phy)
2072 if (!qos->sdu && qos->phy)
2076 if (qos->phy == BT_ISO_PHY_ANY)
2077 qos->phy = phy;
2097 if (qos->bcast.out.phy == 0x02)
2207 conn->le_tx_phy = qos->bcast.out.phy;
2208 conn->le_tx_phy = qos->bcast.out.phy;
2410 cp.handle = cpu_to_le16(conn->handle);
2431 cp.handle = cpu_to_le16(conn->handle);
2576 cp.handle = cpu_to_le16(conn->handle);
2660 (ci + n)->handle = c->handle;
2696 ci.handle = conn->handle;
2786 __u16 handle)
2791 if (hchan->handle == handle)
2798 struct hci_chan *hci_chan_lookup_handle(struct hci_dev *hdev, __u16 handle)
2807 hchan = __hci_chan_lookup_handle(hcon, handle);
2940 bt_dev_dbg(hdev, "handle 0x%2.2x reason 0x%2.2x", conn->handle, reason);