Lines Matching refs:req
2613 struct hci_conn_list_req req, *cl;
2618 if (copy_from_user(&req, arg, sizeof(req)))
2621 if (!req.conn_num || req.conn_num > (PAGE_SIZE * 2) / sizeof(*ci))
2624 size = sizeof(req) + req.conn_num * sizeof(*ci);
2630 hdev = hci_dev_get(req.dev_id);
2646 if (++n >= req.conn_num)
2653 size = sizeof(req) + n * sizeof(*ci);
2665 struct hci_conn_info_req req;
2668 char __user *ptr = arg + sizeof(req);
2670 if (copy_from_user(&req, arg, sizeof(req)))
2674 conn = hci_conn_hash_lookup_ba(hdev, req.type, &req.bdaddr);
2693 struct hci_auth_info_req req;
2696 if (copy_from_user(&req, arg, sizeof(req)))
2700 conn = hci_conn_hash_lookup_ba(hdev, ACL_LINK, &req.bdaddr);
2702 req.type = conn->auth_type;
2708 return copy_to_user(arg, &req, sizeof(req)) ? -EFAULT : 0;