Searched refs:par_timeout (Results 1 – 2 of 2) sorted by relevance
/linux-2.6.39/drivers/char/ |
D | ppdev.c | 502 struct timeval par_timeout; in pp_do_ioctl() local 599 if (copy_from_user (&par_timeout, argp, sizeof(struct timeval))) { in pp_do_ioctl() 603 if ((par_timeout.tv_sec < 0) || (par_timeout.tv_usec < 0)) { in pp_do_ioctl() 606 to_jiffies = ROUND_UP(par_timeout.tv_usec, 1000000/HZ); in pp_do_ioctl() 607 to_jiffies += par_timeout.tv_sec * (long)HZ; in pp_do_ioctl() 616 memset(&par_timeout, 0, sizeof(par_timeout)); in pp_do_ioctl() 617 par_timeout.tv_sec = to_jiffies / HZ; in pp_do_ioctl() 618 par_timeout.tv_usec = (to_jiffies % (long)HZ) * (1000000/HZ); in pp_do_ioctl() 619 if (copy_to_user (argp, &par_timeout, sizeof(struct timeval))) in pp_do_ioctl()
|
D | lp.c | 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() [all …]
|