Lines Matching defs:hdev
94 struct hci_dev *hdev;
101 list_for_each_entry(hdev, &hci_dev_list, list) {
102 if (hdev->dev_type == HCI_AMP) {
103 cl[i].id = hdev->id;
104 cl[i].type = hdev->amp_type;
105 if (test_bit(HCI_UP, &hdev->flags))
106 cl[i].status = hdev->amp_status;
138 struct hci_dev *hdev;
165 list_for_each_entry(hdev, &hci_dev_list, list) {
166 if (hdev->dev_type == HCI_AMP)
286 static void read_local_amp_info_complete(struct hci_dev *hdev, u8 status,
289 BT_DBG("%s status 0x%2.2x", hdev->name, status);
291 a2mp_send_getinfo_rsp(hdev);
298 struct hci_dev *hdev;
307 hdev = hci_dev_get(req->id);
308 if (!hdev || hdev->dev_type != HCI_AMP) {
323 hci_req_init(&hreq, hdev);
327 a2mp_send_getinfo_rsp(hdev);
330 if (hdev)
331 hci_dev_put(hdev);
370 struct hci_dev *hdev;
381 hdev = hci_dev_get(req->id);
382 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR || tmp) {
401 amp_read_loc_assoc(hdev, mgr);
404 if (hdev)
405 hci_dev_put(hdev);
416 struct hci_dev *hdev;
452 hdev = hci_dev_get(rsp->id);
453 if (!hdev)
456 hcon = phylink_add(hdev, mgr, rsp->id, true);
460 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id);
464 amp_create_phylink(hdev, mgr, hcon);
467 hci_dev_put(hdev);
477 struct hci_dev *hdev;
491 hdev = hci_dev_get(req->remote_id);
492 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR) {
515 hci_dev_put(hdev);
527 hcon = phylink_add(hdev, mgr, req->local_id, false);
529 amp_accept_phylink(hdev, mgr, hcon);
536 if (hdev)
537 hci_dev_put(hdev);
559 struct hci_dev *hdev;
573 hdev = hci_dev_get(req->remote_id);
574 if (!hdev) {
579 hcon = hci_conn_hash_lookup_ba(hdev, AMP_LINK,
582 bt_dev_err(hdev, "no phys link exist");
590 hci_dev_put(hdev);
905 void a2mp_send_getinfo_rsp(struct hci_dev *hdev)
914 BT_DBG("%s mgr %p", hdev->name, mgr);
918 rsp.id = hdev->id;
921 if (hdev->amp_type != AMP_TYPE_BREDR) {
923 rsp.total_bw = cpu_to_le32(hdev->amp_total_bw);
924 rsp.max_bw = cpu_to_le32(hdev->amp_max_bw);
925 rsp.min_latency = cpu_to_le32(hdev->amp_min_latency);
926 rsp.pal_cap = cpu_to_le16(hdev->amp_pal_cap);
927 rsp.assoc_size = cpu_to_le16(hdev->amp_assoc_size);
934 void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status)
937 struct amp_assoc *loc_assoc = &hdev->loc_assoc;
945 BT_DBG("%s mgr %p", hdev->name, mgr);
954 rsp->id = hdev->id;
968 void a2mp_send_create_phy_link_req(struct hci_dev *hdev, u8 status)
971 struct amp_assoc *loc_assoc = &hdev->loc_assoc;
982 BT_DBG("%s mgr %p assoc_len %zu", hdev->name, mgr, len);
994 req->local_id = hdev->id;
1005 void a2mp_send_create_phy_link_rsp(struct hci_dev *hdev, u8 status)
1017 hs_hcon = hci_conn_hash_lookup_state(hdev, AMP_LINK, BT_CONNECT);
1025 BT_DBG("%s mgr %p hs_hcon %p status %u", hdev->name, mgr, hs_hcon,
1028 rsp.local_id = hdev->id;