Lines Matching defs:hdev

89 	struct hci_dev *hdev;
93 list_for_each_entry(hdev, &hci_dev_list, list) {
95 if (hdev->id == HCI_BREDR_ID)
102 cl[i].id = hdev->id;
103 cl[i].type = hdev->amp_type;
104 cl[i].status = hdev->amp_status;
273 struct hci_dev *hdev;
280 hdev = hci_dev_get(req->id);
281 if (!hdev || hdev->dev_type != HCI_AMP) {
294 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL);
297 if (hdev)
298 hci_dev_put(hdev);
335 struct hci_dev *hdev;
346 hdev = hci_dev_get(req->id);
347 if (!hdev || hdev->amp_type == HCI_BREDR || tmp) {
364 amp_read_loc_assoc(hdev, mgr);
367 if (hdev)
368 hci_dev_put(hdev);
379 struct hci_dev *hdev;
415 hdev = hci_dev_get(rsp->id);
416 if (!hdev)
419 hcon = phylink_add(hdev, mgr, rsp->id, true);
423 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id);
427 amp_create_phylink(hdev, mgr, hcon);
430 hci_dev_put(hdev);
441 struct hci_dev *hdev;
453 hdev = hci_dev_get(req->remote_id);
454 if (!hdev || hdev->amp_type != HCI_AMP) {
488 hcon = phylink_add(hdev, mgr, req->local_id, false);
490 amp_accept_phylink(hdev, mgr, hcon);
497 if (hdev)
498 hci_dev_put(hdev);
520 struct hci_dev *hdev;
532 hdev = hci_dev_get(req->remote_id);
533 if (!hdev) {
538 hcon = hci_conn_hash_lookup_ba(hdev, AMP_LINK, mgr->l2cap_conn->dst);
548 hci_dev_put(hdev);
860 void a2mp_send_getinfo_rsp(struct hci_dev *hdev)
869 BT_DBG("%s mgr %p", hdev->name, mgr);
871 rsp.id = hdev->id;
874 if (hdev->amp_type != HCI_BREDR) {
876 rsp.total_bw = cpu_to_le32(hdev->amp_total_bw);
877 rsp.max_bw = cpu_to_le32(hdev->amp_max_bw);
878 rsp.min_latency = cpu_to_le32(hdev->amp_min_latency);
879 rsp.pal_cap = cpu_to_le16(hdev->amp_pal_cap);
880 rsp.assoc_size = cpu_to_le16(hdev->amp_assoc_size);
887 void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status)
890 struct amp_assoc *loc_assoc = &hdev->loc_assoc;
898 BT_DBG("%s mgr %p", hdev->name, mgr);
907 rsp->id = hdev->id;
921 void a2mp_send_create_phy_link_req(struct hci_dev *hdev, u8 status)
924 struct amp_assoc *loc_assoc = &hdev->loc_assoc;
935 BT_DBG("%s mgr %p assoc_len %zu", hdev->name, mgr, len);
947 req->local_id = hdev->id;
958 void a2mp_send_create_phy_link_rsp(struct hci_dev *hdev, u8 status)
968 hs_hcon = hci_conn_hash_lookup_state(hdev, AMP_LINK, BT_CONNECT);
976 BT_DBG("%s mgr %p hs_hcon %p status %u", hdev->name, mgr, hs_hcon,
979 rsp.local_id = hdev->id;