Lines Matching refs:dr
2014 struct hci_dev_req dr; in hci_dev_cmd() local
2017 if (copy_from_user(&dr, arg, sizeof(dr))) in hci_dev_cmd()
2020 hdev = hci_dev_get(dr.dev_id); in hci_dev_cmd()
2046 err = hci_req_sync(hdev, hci_auth_req, dr.dev_opt, in hci_dev_cmd()
2058 err = hci_req_sync(hdev, hci_auth_req, dr.dev_opt, in hci_dev_cmd()
2064 err = hci_req_sync(hdev, hci_encrypt_req, dr.dev_opt, in hci_dev_cmd()
2069 err = hci_req_sync(hdev, hci_scan_req, dr.dev_opt, in hci_dev_cmd()
2076 hci_update_scan_state(hdev, dr.dev_opt); in hci_dev_cmd()
2080 err = hci_req_sync(hdev, hci_linkpol_req, dr.dev_opt, in hci_dev_cmd()
2085 hdev->link_mode = ((__u16) dr.dev_opt) & in hci_dev_cmd()
2090 if (hdev->pkt_type == (__u16) dr.dev_opt) in hci_dev_cmd()
2093 hdev->pkt_type = (__u16) dr.dev_opt; in hci_dev_cmd()
2098 hdev->acl_mtu = *((__u16 *) &dr.dev_opt + 1); in hci_dev_cmd()
2099 hdev->acl_pkts = *((__u16 *) &dr.dev_opt + 0); in hci_dev_cmd()
2103 hdev->sco_mtu = *((__u16 *) &dr.dev_opt + 1); in hci_dev_cmd()
2104 hdev->sco_pkts = *((__u16 *) &dr.dev_opt + 0); in hci_dev_cmd()
2121 struct hci_dev_req *dr; in hci_get_dev_list() local
2128 if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr)) in hci_get_dev_list()
2131 size = sizeof(*dl) + dev_num * sizeof(*dr); in hci_get_dev_list()
2137 dr = dl->dev_req; in hci_get_dev_list()
2150 (dr + n)->dev_id = hdev->id; in hci_get_dev_list()
2151 (dr + n)->dev_opt = flags; in hci_get_dev_list()
2159 size = sizeof(*dl) + n * sizeof(*dr); in hci_get_dev_list()