Lines Matching refs:argp
446 void __user *argp, size_t len) in joydev_handle_JSIOCSAXMAP() argument
455 abspam = memdup_user(argp, len); in joydev_handle_JSIOCSAXMAP()
477 void __user *argp, size_t len) in joydev_handle_JSIOCSBTNMAP() argument
489 keypam = memdup_user(argp, len); in joydev_handle_JSIOCSBTNMAP()
512 unsigned int cmd, void __user *argp) in joydev_ioctl_common() argument
523 return copy_from_user(&joydev->glue.JS_CORR, argp, in joydev_ioctl_common()
527 return copy_to_user(argp, &joydev->glue.JS_CORR, in joydev_ioctl_common()
531 return get_user(joydev->glue.JS_TIMEOUT, (s32 __user *) argp); in joydev_ioctl_common()
534 return put_user(joydev->glue.JS_TIMEOUT, (s32 __user *) argp); in joydev_ioctl_common()
537 return put_user(JS_VERSION, (__u32 __user *) argp); in joydev_ioctl_common()
540 return put_user(joydev->nabs, (__u8 __user *) argp); in joydev_ioctl_common()
543 return put_user(joydev->nkey, (__u8 __user *) argp); in joydev_ioctl_common()
546 if (copy_from_user(joydev->corr, argp, in joydev_ioctl_common()
557 return copy_to_user(argp, joydev->corr, in joydev_ioctl_common()
570 return joydev_handle_JSIOCSAXMAP(joydev, argp, _IOC_SIZE(cmd)); in joydev_ioctl_common()
574 return copy_to_user(argp, joydev->abspam, len) ? -EFAULT : len; in joydev_ioctl_common()
577 return joydev_handle_JSIOCSBTNMAP(joydev, argp, _IOC_SIZE(cmd)); in joydev_ioctl_common()
581 return copy_to_user(argp, joydev->keypam, len) ? -EFAULT : len; in joydev_ioctl_common()
589 return copy_to_user(argp, name, len) ? -EFAULT : len; in joydev_ioctl_common()
601 void __user *argp = (void __user *)arg; in joydev_compat_ioctl() local
629 retval = copy_from_user(&ds32, argp, in joydev_compat_ioctl()
649 retval = copy_to_user(argp, &ds32, sizeof(ds32)) ? -EFAULT : 0; in joydev_compat_ioctl()
653 retval = joydev_ioctl_common(joydev, cmd, argp); in joydev_compat_ioctl()
668 void __user *argp = (void __user *)arg; in joydev_ioctl() local
693 retval = copy_from_user(&joydev->glue, argp, in joydev_ioctl()
698 retval = copy_to_user(argp, &joydev->glue, in joydev_ioctl()
703 retval = joydev_ioctl_common(joydev, cmd, argp); in joydev_ioctl()