Lines Matching refs:hdev
100 struct hci_dev *hdev; in __a2mp_add_cl() local
107 list_for_each_entry(hdev, &hci_dev_list, list) { in __a2mp_add_cl()
108 if (hdev->dev_type == HCI_AMP) { in __a2mp_add_cl()
109 cl[i].id = hdev->id; in __a2mp_add_cl()
110 cl[i].type = hdev->amp_type; in __a2mp_add_cl()
111 if (test_bit(HCI_UP, &hdev->flags)) in __a2mp_add_cl()
112 cl[i].status = hdev->amp_status; in __a2mp_add_cl()
144 struct hci_dev *hdev; in a2mp_discover_req() local
171 list_for_each_entry(hdev, &hci_dev_list, list) { in a2mp_discover_req()
172 if (hdev->dev_type == HCI_AMP) in a2mp_discover_req()
293 struct hci_dev *hdev; in a2mp_getinfo_req() local
300 hdev = hci_dev_get(req->id); in a2mp_getinfo_req()
301 if (!hdev || hdev->dev_type != HCI_AMP) { in a2mp_getinfo_req()
314 hci_send_cmd(hdev, HCI_OP_READ_LOCAL_AMP_INFO, 0, NULL); in a2mp_getinfo_req()
317 if (hdev) in a2mp_getinfo_req()
318 hci_dev_put(hdev); in a2mp_getinfo_req()
355 struct hci_dev *hdev; in a2mp_getampassoc_req() local
366 hdev = hci_dev_get(req->id); in a2mp_getampassoc_req()
367 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR || tmp) { in a2mp_getampassoc_req()
384 amp_read_loc_assoc(hdev, mgr); in a2mp_getampassoc_req()
387 if (hdev) in a2mp_getampassoc_req()
388 hci_dev_put(hdev); in a2mp_getampassoc_req()
399 struct hci_dev *hdev; in a2mp_getampassoc_rsp() local
435 hdev = hci_dev_get(rsp->id); in a2mp_getampassoc_rsp()
436 if (!hdev) in a2mp_getampassoc_rsp()
439 hcon = phylink_add(hdev, mgr, rsp->id, true); in a2mp_getampassoc_rsp()
443 BT_DBG("Created hcon %p: loc:%d -> rem:%d", hcon, hdev->id, rsp->id); in a2mp_getampassoc_rsp()
447 amp_create_phylink(hdev, mgr, hcon); in a2mp_getampassoc_rsp()
450 hci_dev_put(hdev); in a2mp_getampassoc_rsp()
461 struct hci_dev *hdev; in a2mp_createphyslink_req() local
473 hdev = hci_dev_get(req->remote_id); in a2mp_createphyslink_req()
474 if (!hdev || hdev->amp_type == AMP_TYPE_BREDR) { in a2mp_createphyslink_req()
508 hcon = phylink_add(hdev, mgr, req->local_id, false); in a2mp_createphyslink_req()
510 amp_accept_phylink(hdev, mgr, hcon); in a2mp_createphyslink_req()
517 if (hdev) in a2mp_createphyslink_req()
518 hci_dev_put(hdev); in a2mp_createphyslink_req()
540 struct hci_dev *hdev; in a2mp_discphyslink_req() local
552 hdev = hci_dev_get(req->remote_id); in a2mp_discphyslink_req()
553 if (!hdev) { in a2mp_discphyslink_req()
558 hcon = hci_conn_hash_lookup_ba(hdev, AMP_LINK, in a2mp_discphyslink_req()
569 hci_dev_put(hdev); in a2mp_discphyslink_req()
882 void a2mp_send_getinfo_rsp(struct hci_dev *hdev) in a2mp_send_getinfo_rsp() argument
891 BT_DBG("%s mgr %p", hdev->name, mgr); in a2mp_send_getinfo_rsp()
893 rsp.id = hdev->id; in a2mp_send_getinfo_rsp()
896 if (hdev->amp_type != AMP_TYPE_BREDR) { in a2mp_send_getinfo_rsp()
898 rsp.total_bw = cpu_to_le32(hdev->amp_total_bw); in a2mp_send_getinfo_rsp()
899 rsp.max_bw = cpu_to_le32(hdev->amp_max_bw); in a2mp_send_getinfo_rsp()
900 rsp.min_latency = cpu_to_le32(hdev->amp_min_latency); in a2mp_send_getinfo_rsp()
901 rsp.pal_cap = cpu_to_le16(hdev->amp_pal_cap); in a2mp_send_getinfo_rsp()
902 rsp.assoc_size = cpu_to_le16(hdev->amp_assoc_size); in a2mp_send_getinfo_rsp()
909 void a2mp_send_getampassoc_rsp(struct hci_dev *hdev, u8 status) in a2mp_send_getampassoc_rsp() argument
912 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in a2mp_send_getampassoc_rsp()
920 BT_DBG("%s mgr %p", hdev->name, mgr); in a2mp_send_getampassoc_rsp()
929 rsp->id = hdev->id; in a2mp_send_getampassoc_rsp()
943 void a2mp_send_create_phy_link_req(struct hci_dev *hdev, u8 status) in a2mp_send_create_phy_link_req() argument
946 struct amp_assoc *loc_assoc = &hdev->loc_assoc; in a2mp_send_create_phy_link_req()
957 BT_DBG("%s mgr %p assoc_len %zu", hdev->name, mgr, len); in a2mp_send_create_phy_link_req()
969 req->local_id = hdev->id; in a2mp_send_create_phy_link_req()
980 void a2mp_send_create_phy_link_rsp(struct hci_dev *hdev, u8 status) in a2mp_send_create_phy_link_rsp() argument
990 hs_hcon = hci_conn_hash_lookup_state(hdev, AMP_LINK, BT_CONNECT); in a2mp_send_create_phy_link_rsp()
998 BT_DBG("%s mgr %p hs_hcon %p status %u", hdev->name, mgr, hs_hcon, in a2mp_send_create_phy_link_rsp()
1001 rsp.local_id = hdev->id; in a2mp_send_create_phy_link_rsp()