Lines Matching refs:rinfo

56 hiddev_lookup_report(struct hid_device *hid, struct hiddev_report_info *rinfo)  in hiddev_lookup_report()  argument
58 unsigned int flags = rinfo->report_id & ~HID_REPORT_ID_MASK; in hiddev_lookup_report()
59 unsigned int rid = rinfo->report_id & HID_REPORT_ID_MASK; in hiddev_lookup_report()
64 if (rinfo->report_type < HID_REPORT_TYPE_MIN || in hiddev_lookup_report()
65 rinfo->report_type > HID_REPORT_TYPE_MAX) in hiddev_lookup_report()
69 (rinfo->report_type - HID_REPORT_TYPE_MIN); in hiddev_lookup_report()
81 rinfo->report_id = report->id; in hiddev_lookup_report()
94 rinfo->report_id = report->id; in hiddev_lookup_report()
101 return report_enum->report_id_hash[rinfo->report_id]; in hiddev_lookup_report()
430 struct hiddev_report_info rinfo; in hiddev_ioctl_usage() local
452 rinfo.report_type = uref->report_type; in hiddev_ioctl_usage()
453 rinfo.report_id = uref->report_id; in hiddev_ioctl_usage()
454 if ((report = hiddev_lookup_report(hid, &rinfo)) == NULL) in hiddev_ioctl_usage()
486 rinfo.report_type = uref->report_type; in hiddev_ioctl_usage()
487 rinfo.report_id = uref->report_id; in hiddev_ioctl_usage()
488 if ((report = hiddev_lookup_report(hid, &rinfo)) == NULL) in hiddev_ioctl_usage()
600 struct hiddev_report_info rinfo; in hiddev_ioctl() local
695 if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { in hiddev_ioctl()
700 if (rinfo.report_type == HID_REPORT_TYPE_OUTPUT) in hiddev_ioctl()
703 report = hiddev_lookup_report(hid, &rinfo); in hiddev_ioctl()
714 if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { in hiddev_ioctl()
719 if (rinfo.report_type == HID_REPORT_TYPE_INPUT) in hiddev_ioctl()
722 report = hiddev_lookup_report(hid, &rinfo); in hiddev_ioctl()
733 if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { in hiddev_ioctl()
738 report = hiddev_lookup_report(hid, &rinfo); in hiddev_ioctl()
742 rinfo.num_fields = report->maxfield; in hiddev_ioctl()
744 r = copy_to_user(user_arg, &rinfo, sizeof(rinfo)) ? in hiddev_ioctl()
754 rinfo.report_type = finfo.report_type; in hiddev_ioctl()
755 rinfo.report_id = finfo.report_id; in hiddev_ioctl()
757 report = hiddev_lookup_report(hid, &rinfo); in hiddev_ioctl()
768 finfo.report_type = rinfo.report_type; in hiddev_ioctl()
769 finfo.report_id = rinfo.report_id; in hiddev_ioctl()