Lines Matching refs:tty
122 __private_extern__ int ttnread(struct tty *tp);
123 static void ttyecho(int c, struct tty *tp);
124 static int ttyoutput(int c, struct tty *tp);
125 static void ttypend(struct tty *tp);
126 static void ttyretype(struct tty *tp);
127 static void ttyrub(int c, struct tty *tp);
128 static void ttyrubo(struct tty *tp, int count);
129 static void ttystop(struct tty *tp, int rw);
130 static void ttyunblock(struct tty *tp);
131 static int ttywflush(struct tty *tp);
134 void ttyhold(struct tty *tp);
135 static void ttydeallocate(struct tty *tp);
137 static bool isbackground(proc_t p, struct tty *tp);
138 static bool isctty(proc_t p, struct tty *tp);
139 static bool isctty_sp(proc_t p, struct tty *tp, struct session *sessp);
275 tty_lock(struct tty *tp) in tty_lock()
294 tty_trylock(struct tty *tp) in tty_trylock()
311 tty_islocked(struct tty *tp) in tty_islocked()
330 tty_unlock(struct tty *tp) in tty_unlock()
346 ttyopen(dev_t device, struct tty *tp) in ttyopen()
376 ttyclose(struct tty *tp) in ttyclose()
380 struct tty *freetp = TTY_NULL; in ttyclose()
381 struct tty *constty = TTY_NULL; in ttyclose()
486 ttyinput(int c, struct tty *tp) in ttyinput()
884 ttyoutput(int c, struct tty *tp) in ttyoutput()
992 ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, proc_t p) in ttioctl()
1062 ttioctl_locked(struct tty *tp, u_long cmd, caddr_t data, int flag, proc_t p) in ttioctl_locked()
1069 struct tty *oldtp, *freetp; in ttioctl_locked()
1168 struct tty *constty = NULL; in ttioctl_locked()
1638 ttyselect(struct tty *tp, int rw, void *wql, proc_t p) in ttyselect()
1706 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; in ttselect()
1720 ttnread(struct tty *tp) in ttnread()
1759 ttywait(struct tty *tp) in ttywait()
1797 ttystop(struct tty *tp, int rw) in ttystop()
1810 ttywflush(struct tty *tp) in ttywflush()
1828 ttyflush(struct tty *tp, int rw) in ttyflush()
1914 ttyblock(struct tty *tp) in ttyblock()
1935 ttyunblock(struct tty *tp) in ttyunblock()
1965 ttstart(struct tty *tp) in ttstart()
1985 ttylclose(struct tty *tp, int flag) in ttylclose()
2007 ttymodem(struct tty *tp, int flag) in ttymodem()
2069 ttypend(struct tty *tp) in ttypend()
2096 ttread(struct tty *tp, struct uio *uio, int flag) in ttread()
2422 ttycheckoutq(struct tty *tp, int wait) in ttycheckoutq()
2459 ttwrite(struct tty *tp, struct uio *uio, int flag) in ttwrite()
2675 ttyrub(int c, struct tty *tp) in ttyrub()
2767 ttyrubo(struct tty *tp, int count) in ttyrubo()
2787 ttyretype(struct tty *tp) in ttyretype()
2825 ttyecho(int c, struct tty *tp) in ttyecho()
2868 ttwakeup(struct tty *tp) in ttwakeup()
2897 ttwwakeup(struct tty *tp) in ttwwakeup()
2946 ttsetwater(struct tty *tp) in ttsetwater()
2981 ttyinfo_locked(struct tty *tp) in ttyinfo_locked()
3182 tputchar(int c, struct tty *tp) in tputchar()
3228 ttysleep(struct tty *tp, void *chan, int pri, const char *wmesg, int timo) in ttysleep()
3260 struct tty *
3263 struct tty *tp; in ttymalloc()
3265 tp = kalloc_type(struct tty, Z_WAITOK | Z_ZERO | Z_NOFAIL); in ttymalloc()
3282 ttyhold(struct tty *tp) in ttyhold()
3293 ttyfree(struct tty *tp) in ttyfree()
3308 ttyfree_locked(struct tty *tp) in ttyfree_locked()
3322 ttydeallocate(struct tty *tp) in ttydeallocate()
3336 kfree_type(struct tty, tp); in ttydeallocate()
3344 isbackground(proc_t p, struct tty *tp) in isbackground()
3365 isctty(proc_t p, struct tty *tp) in isctty()
3379 isctty_sp(proc_t p, struct tty *tp, struct session *sessp) in isctty_sp()
3405 filt_tty_common(struct knote *kn, struct kevent_qos_s *kev, struct tty *tp) in filt_tty_common()
3459 static struct tty *
3473 return __container_of(wq, struct tty, t_rsel.si_waitq); in tty_from_waitq()
3475 return __container_of(wq, struct tty, t_wsel.si_waitq); in tty_from_waitq()
3481 static struct tty *
3484 return (struct tty *)knote_kn_hook_get_raw(kn); in tty_from_knote()
3517 struct tty *tp; in filt_ttyattach()
3548 struct tty *tp = tty_from_knote(kn); in filt_ttydetach()
3576 struct tty *tp = tty_from_knote(kn); in filt_ttyevent()
3594 struct tty *tp = tty_from_knote(kn); in filt_ttytouch()
3614 struct tty *tp = tty_from_knote(kn); in filt_ttyprocess()