Lines Matching refs:par_timeout
658 static int lp_set_timeout(unsigned int minor, struct timeval *par_timeout) in lp_set_timeout() argument
663 if ((par_timeout->tv_sec < 0) || in lp_set_timeout()
664 (par_timeout->tv_usec < 0)) { in lp_set_timeout()
667 to_jiffies = DIV_ROUND_UP(par_timeout->tv_usec, 1000000/HZ); in lp_set_timeout()
668 to_jiffies += par_timeout->tv_sec * (long) HZ; in lp_set_timeout()
680 struct timeval par_timeout; in lp_ioctl() local
687 if (copy_from_user(&par_timeout, (void __user *)arg, in lp_ioctl()
692 ret = lp_set_timeout(minor, &par_timeout); in lp_ioctl()
708 struct timeval par_timeout; in lp_compat_ioctl() local
717 if (get_user(par_timeout.tv_sec, &tc->tv_sec) || in lp_compat_ioctl()
718 get_user(par_timeout.tv_usec, &tc->tv_usec)) { in lp_compat_ioctl()
722 ret = lp_set_timeout(minor, &par_timeout); in lp_compat_ioctl()