Lines Matching defs:arg
160 static int pty_set_lock(struct tty_struct *tty, int __user *arg)
163 if (get_user(val, arg))
172 static int pty_get_lock(struct tty_struct *tty, int __user *arg)
175 return put_user(locked, arg);
179 static int pty_set_pktmode(struct tty_struct *tty, int __user *arg)
184 if (get_user(pktmode, arg))
201 static int pty_get_pktmode(struct tty_struct *tty, int __user *arg)
204 return put_user(pktmode, arg);
457 unsigned int cmd, unsigned long arg)
461 return pty_set_lock(tty, (int __user *) arg);
463 return pty_get_lock(tty, (int __user *)arg);
465 return pty_set_pktmode(tty, (int __user *)arg);
467 return pty_get_pktmode(tty, (int __user *)arg);
469 return pty_signal(tty, (int) arg);
581 unsigned int cmd, unsigned long arg)
585 return pty_set_lock(tty, (int __user *)arg);
587 return pty_get_lock(tty, (int __user *)arg);
589 return pty_set_pktmode(tty, (int __user *)arg);
591 return pty_get_pktmode(tty, (int __user *)arg);
593 return put_user(tty->index, (unsigned int __user *)arg);
595 return pty_signal(tty, (int) arg);