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()
1636 ttyselect(struct tty *tp, int rw, void *wql, proc_t p) in ttyselect()
1704 struct tty *tp = cdevsw[major(dev)].d_ttys[minor(dev)]; in ttselect()
1718 ttnread(struct tty *tp) in ttnread()
1757 ttywait(struct tty *tp) in ttywait()
1795 ttystop(struct tty *tp, int rw) in ttystop()
1808 ttywflush(struct tty *tp) in ttywflush()
1826 ttyflush(struct tty *tp, int rw) in ttyflush()
1912 ttyblock(struct tty *tp) in ttyblock()
1933 ttyunblock(struct tty *tp) in ttyunblock()
1963 ttstart(struct tty *tp) in ttstart()
1983 ttylclose(struct tty *tp, int flag) in ttylclose()
2005 ttymodem(struct tty *tp, int flag) in ttymodem()
2067 ttypend(struct tty *tp) in ttypend()
2094 ttread(struct tty *tp, struct uio *uio, int flag) in ttread()
2420 ttycheckoutq(struct tty *tp, int wait) in ttycheckoutq()
2457 ttwrite(struct tty *tp, struct uio *uio, int flag) in ttwrite()
2673 ttyrub(int c, struct tty *tp) in ttyrub()
2765 ttyrubo(struct tty *tp, int count) in ttyrubo()
2785 ttyretype(struct tty *tp) in ttyretype()
2823 ttyecho(int c, struct tty *tp) in ttyecho()
2866 ttwakeup(struct tty *tp) in ttwakeup()
2895 ttwwakeup(struct tty *tp) in ttwwakeup()
2944 ttsetwater(struct tty *tp) in ttsetwater()
2979 ttyinfo_locked(struct tty *tp) in ttyinfo_locked()
3180 tputchar(int c, struct tty *tp) in tputchar()
3226 ttysleep(struct tty *tp, void *chan, int pri, const char *wmesg, int timo) in ttysleep()
3258 struct tty *
3261 struct tty *tp; in ttymalloc()
3263 tp = kalloc_type(struct tty, Z_WAITOK | Z_ZERO | Z_NOFAIL); in ttymalloc()
3280 ttyhold(struct tty *tp) in ttyhold()
3291 ttyfree(struct tty *tp) in ttyfree()
3306 ttyfree_locked(struct tty *tp) in ttyfree_locked()
3320 ttydeallocate(struct tty *tp) in ttydeallocate()
3334 kfree_type(struct tty, tp); in ttydeallocate()
3342 isbackground(proc_t p, struct tty *tp) in isbackground()
3363 isctty(proc_t p, struct tty *tp) in isctty()
3377 isctty_sp(proc_t p, struct tty *tp, struct session *sessp) in isctty_sp()
3403 filt_tty_common(struct knote *kn, struct kevent_qos_s *kev, struct tty *tp) in filt_tty_common()
3457 static struct tty *
3471 return __container_of(wq, struct tty, t_rsel.si_waitq); in tty_from_waitq()
3473 return __container_of(wq, struct tty, t_wsel.si_waitq); in tty_from_waitq()
3479 static struct tty *
3482 return (struct tty *)knote_kn_hook_get_raw(kn); in tty_from_knote()
3515 struct tty *tp; in filt_ttyattach()
3546 struct tty *tp = tty_from_knote(kn); in filt_ttydetach()
3574 struct tty *tp = tty_from_knote(kn); in filt_ttyevent()
3592 struct tty *tp = tty_from_knote(kn); in filt_ttytouch()
3612 struct tty *tp = tty_from_knote(kn); in filt_ttyprocess()