Lines Matching refs:hdev
101 struct hci_dev *hdev; in __a2mp_add_cl() local
108 list_for_each_entry(hdev, &hci_dev_list, list) { in __a2mp_add_cl()
109 if (hdev->dev_type == HCI_AMP) { in __a2mp_add_cl()
110 cl[i].id = hdev->id; in __a2mp_add_cl()
111 cl[i].type = hdev->amp_type; in __a2mp_add_cl()
112 if (test_bit(HCI_UP, &hdev->flags)) in __a2mp_add_cl()
113 cl[i].status = hdev->amp_status; in __a2mp_add_cl()
145 struct hci_dev *hdev; in a2mp_discover_req() local
172 list_for_each_entry(hdev, &hci_dev_list, list) { in a2mp_discover_req()
173 if (hdev->dev_type == HCI_AMP) in a2mp_discover_req()
290 static void read_local_amp_info_complete(struct hci_dev *hdev, u8 status, in read_local_amp_info_complete() argument
293 BT_DBG("%s status 0x%2.2x", hdev->name, status); in read_local_amp_info_complete()
295 a2mp_send_getinfo_rsp(hdev); in read_local_amp_info_complete()
302 struct hci_dev *hdev; in a2mp_getinfo_req() local
311 hdev = hci_dev_get(req->id); in a2mp_getinfo_req()
312 if (!hdev || hdev->dev_type != HCI_AMP) { in a2mp_getinfo_req()
325 hci_req_init(&hreq, hdev); in a2mp_getinfo_req()
329 a2mp_send_getinfo_rsp(hdev); in a2mp_getinfo_req()
332 if (hdev) in a2mp_getinfo_req()
333 hci_dev_put(hdev); in a2mp_getinfo_req()
370 struct hci_dev *hdev; in a2mp_getampassoc_req() local
381 hdev = hci_dev_get(req->id); in a2mp_getampassoc_req()
382 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR || tmp) { in a2mp_getampassoc_req()
399 amp_read_loc_assoc(hdev, mgr); in a2mp_getampassoc_req()
402 if (hdev) in a2mp_getampassoc_req()
403 hci_dev_put(hdev); in a2mp_getampassoc_req()
414 struct hci_dev *hdev; in a2mp_getampassoc_rsp() local
450 hdev = hci_dev_get(rsp->id); in a2mp_getampassoc_rsp()
451 if (!hdev) in a2mp_getampassoc_rsp()
454 hcon = phylink_add(hdev, mgr, rsp->id, true); in a2mp_getampassoc_rsp()
458 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id); in a2mp_getampassoc_rsp()
462 amp_create_phylink(hdev, mgr, hcon); in a2mp_getampassoc_rsp()
465 hci_dev_put(hdev); in a2mp_getampassoc_rsp()
476 struct hci_dev *hdev; in a2mp_createphyslink_req() local
488 hdev = hci_dev_get(req->remote_id); in a2mp_createphyslink_req()
489 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR) { in a2mp_createphyslink_req()
523 hcon = phylink_add(hdev, mgr, req->local_id, false); in a2mp_createphyslink_req()
525 amp_accept_phylink(hdev, mgr, hcon); in a2mp_createphyslink_req()
532 if (hdev) in a2mp_createphyslink_req()
533 hci_dev_put(hdev); in a2mp_createphyslink_req()
555 struct hci_dev *hdev; in a2mp_discphyslink_req() local
567 hdev = hci_dev_get(req->remote_id); in a2mp_discphyslink_req()
568 if (!hdev) { in a2mp_discphyslink_req()
573 hcon = hci_conn_hash_lookup_ba(hdev, AMP_LINK, in a2mp_discphyslink_req()
584 hci_dev_put(hdev); in a2mp_discphyslink_req()
897 void a2mp_send_getinfo_rsp(struct hci_dev *hdev) in a2mp_send_getinfo_rsp() argument
906 BT_DBG("%s mgr %p", hdev->name, mgr); in a2mp_send_getinfo_rsp()
908 rsp.id = hdev->id; in a2mp_send_getinfo_rsp()
911 if (hdev->amp_type != AMP_TYPE_BREDR) { in a2mp_send_getinfo_rsp()
913 rsp.total_bw = cpu_to_le32(hdev->amp_total_bw); in a2mp_send_getinfo_rsp()
914 rsp.max_bw = cpu_to_le32(hdev->amp_max_bw); in a2mp_send_getinfo_rsp()
915 rsp.min_latency = cpu_to_le32(hdev->amp_min_latency); in a2mp_send_getinfo_rsp()
916 rsp.pal_cap = cpu_to_le16(hdev->amp_pal_cap); in a2mp_send_getinfo_rsp()
917 rsp.assoc_size = cpu_to_le16(hdev->amp_assoc_size); in a2mp_send_getinfo_rsp()
924 void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status) in a2mp_send_getampassoc_rsp() argument
927 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in a2mp_send_getampassoc_rsp()
935 BT_DBG("%s mgr %p", hdev->name, mgr); in a2mp_send_getampassoc_rsp()
944 rsp->id = hdev->id; in a2mp_send_getampassoc_rsp()
958 void a2mp_send_create_phy_link_req(struct hci_dev *hdev, u8 status) in a2mp_send_create_phy_link_req() argument
961 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in a2mp_send_create_phy_link_req()
972 BT_DBG("%s mgr %p assoc_len %zu", hdev->name, mgr, len); in a2mp_send_create_phy_link_req()
984 req->local_id = hdev->id; in a2mp_send_create_phy_link_req()
995 void a2mp_send_create_phy_link_rsp(struct hci_dev *hdev, u8 status) in a2mp_send_create_phy_link_rsp() argument
1005 hs_hcon = hci_conn_hash_lookup_state(hdev, AMP_LINK, BT_CONNECT); in a2mp_send_create_phy_link_rsp()
1013 BT_DBG("%s mgr %p hs_hcon %p status %u", hdev->name, mgr, hs_hcon, in a2mp_send_create_phy_link_rsp()
1016 rsp.local_id = hdev->id; in a2mp_send_create_phy_link_rsp()