Searched refs:user_arg (Results 1 – 2 of 2) sorted by relevance
/linux-4.19.296/drivers/hid/usbhid/ |
D | hiddev.c | 440 …tic noinline int hiddev_ioctl_usage(struct hiddev *hiddev, unsigned int cmd, void __user *user_arg) in hiddev_ioctl_usage() argument 455 if (copy_from_user(uref_multi, user_arg, in hiddev_ioctl_usage() 459 if (copy_from_user(uref, user_arg, sizeof(*uref))) in hiddev_ioctl_usage() 483 if (copy_to_user(user_arg, uref, sizeof(*uref))) in hiddev_ioctl_usage() 538 if (copy_to_user(user_arg, uref, sizeof(*uref))) in hiddev_ioctl_usage() 556 if (copy_to_user(user_arg, uref_multi, in hiddev_ioctl_usage() 579 …ic noinline int hiddev_ioctl_string(struct hiddev *hiddev, unsigned int cmd, void __user *user_arg) in hiddev_ioctl_string() argument 586 if (get_user(idx, (int __user *)user_arg)) in hiddev_ioctl_string() 597 if (copy_to_user(user_arg+sizeof(int), buf, len+1)) { in hiddev_ioctl_string() 618 void __user *user_arg = (void __user *)arg; in hiddev_ioctl() local [all …]
|
/linux-4.19.296/drivers/hid/ |
D | hidraw.c | 381 void __user *user_arg = (void __user*) arg; in hidraw_ioctl() local 404 else if (copy_to_user(user_arg + offsetof( in hidraw_ioctl() 419 if (copy_to_user(user_arg, &dinfo, sizeof(dinfo))) in hidraw_ioctl() 433 ret = hidraw_send_report(file, user_arg, len, HID_FEATURE_REPORT); in hidraw_ioctl() 438 ret = hidraw_get_report(file, user_arg, len, HID_FEATURE_REPORT); in hidraw_ioctl() 452 ret = copy_to_user(user_arg, hid->name, len) ? in hidraw_ioctl() 461 ret = copy_to_user(user_arg, hid->phys, len) ? in hidraw_ioctl()
|