Lines Matching refs:retval

199 	int retval;
201 retval = mutex_lock_interruptible(&joydev->mutex);
202 if (retval)
203 return retval;
206 retval = -ENODEV;
208 retval = input_open_device(&joydev->handle);
209 if (retval)
216 return retval;
391 int retval;
405 retval = wait_event_interruptible(joydev->wait,
407 if (retval)
408 return retval;
413 while (retval + sizeof(struct js_event) <= count &&
416 if (copy_to_user(buf + retval, &event, sizeof(struct js_event)))
419 retval += sizeof(struct js_event);
422 while (retval + sizeof(struct js_event) <= count &&
425 if (copy_to_user(buf + retval, &event, sizeof(struct js_event)))
428 retval += sizeof(struct js_event);
431 return retval;
450 int retval = 0;
461 retval = -EINVAL;
473 return retval;
481 int retval = 0;
495 retval = -EINVAL;
507 return retval;
604 int retval;
606 retval = mutex_lock_interruptible(&joydev->mutex);
607 if (retval)
608 return retval;
611 retval = -ENODEV;
618 retval = get_user(tmp32, (s32 __user *) arg);
619 if (retval == 0)
625 retval = put_user(tmp32, (s32 __user *) arg);
629 retval = copy_from_user(&ds32, argp,
631 if (retval == 0) {
649 retval = copy_to_user(argp, &ds32, sizeof(ds32)) ? -EFAULT : 0;
653 retval = joydev_ioctl_common(joydev, cmd, argp);
659 return retval;
669 int retval;
671 retval = mutex_lock_interruptible(&joydev->mutex);
672 if (retval)
673 return retval;
676 retval = -ENODEV;
683 retval = get_user(joydev->glue.JS_TIMELIMIT,
688 retval = put_user(joydev->glue.JS_TIMELIMIT,
693 retval = copy_from_user(&joydev->glue, argp,
698 retval = copy_to_user(argp, &joydev->glue,
703 retval = joydev_ioctl_common(joydev, cmd, argp);
708 return retval;