Lines Matching refs:req
861 struct hci_conn_list_req req, *cl;
866 if (copy_from_user(&req, arg, sizeof(req)))
869 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci))
872 size = sizeof(req) + req.conn_num * sizeof(*ci);
878 hdev = hci_dev_get(req.dev_id);
903 if (++n >= req.conn_num)
910 size = sizeof(req) + n * sizeof(*ci);
922 struct hci_conn_info_req req;
925 char __user *ptr = arg + sizeof(req);
927 if (copy_from_user(&req, arg, sizeof(req)))
931 conn = hci_conn_hash_lookup_ba(hdev, req.type, &req.bdaddr);
939 if (req.type == SCO_LINK) {
959 struct hci_auth_info_req req;
962 if (copy_from_user(&req, arg, sizeof(req)))
966 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &req.bdaddr);
968 req.type = conn->auth_type;
974 return copy_to_user(arg, &req, sizeof(req)) ? -EFAULT : 0;