• Home
  • Raw
  • Download

Lines Matching refs:hdev

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