Lines Matching refs:dr
1372 struct hci_dev_req dr; in hci_dev_cmd() local
1375 if (copy_from_user(&dr, arg, sizeof(dr))) in hci_dev_cmd()
1378 hdev = hci_dev_get(dr.dev_id); in hci_dev_cmd()
1384 err = hci_req_sync(hdev, hci_auth_req, dr.dev_opt, in hci_dev_cmd()
1396 err = hci_req_sync(hdev, hci_auth_req, dr.dev_opt, in hci_dev_cmd()
1402 err = hci_req_sync(hdev, hci_encrypt_req, dr.dev_opt, in hci_dev_cmd()
1407 err = hci_req_sync(hdev, hci_scan_req, dr.dev_opt, in hci_dev_cmd()
1412 err = hci_req_sync(hdev, hci_linkpol_req, dr.dev_opt, in hci_dev_cmd()
1417 hdev->link_mode = ((__u16) dr.dev_opt) & in hci_dev_cmd()
1422 hdev->pkt_type = (__u16) dr.dev_opt; in hci_dev_cmd()
1426 hdev->acl_mtu = *((__u16 *) &dr.dev_opt + 1); in hci_dev_cmd()
1427 hdev->acl_pkts = *((__u16 *) &dr.dev_opt + 0); in hci_dev_cmd()
1431 hdev->sco_mtu = *((__u16 *) &dr.dev_opt + 1); in hci_dev_cmd()
1432 hdev->sco_pkts = *((__u16 *) &dr.dev_opt + 0); in hci_dev_cmd()
1448 struct hci_dev_req *dr; in hci_get_dev_list() local
1455 if (!dev_num || dev_num > (PAGE_SIZE * 2) / sizeof(*dr)) in hci_get_dev_list()
1458 size = sizeof(*dl) + dev_num * sizeof(*dr); in hci_get_dev_list()
1464 dr = dl->dev_req; in hci_get_dev_list()
1474 (dr + n)->dev_id = hdev->id; in hci_get_dev_list()
1475 (dr + n)->dev_opt = hdev->flags; in hci_get_dev_list()
1483 size = sizeof(*dl) + n * sizeof(*dr); in hci_get_dev_list()