Lines Matching +full:flow +full:- +full:controlled

1 /* SPDX-License-Identifier: GPL-2.0 */
34 #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR])
35 #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT])
36 #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE])
37 #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL])
38 #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF])
39 #define TIME_CHAR(tty) ((tty)->termios.c_cc[VTIME])
40 #define MIN_CHAR(tty) ((tty)->termios.c_cc[VMIN])
41 #define SWTC_CHAR(tty) ((tty)->termios.c_cc[VSWTC])
42 #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART])
43 #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP])
44 #define SUSP_CHAR(tty) ((tty)->termios.c_cc[VSUSP])
45 #define EOL_CHAR(tty) ((tty)->termios.c_cc[VEOL])
46 #define REPRINT_CHAR(tty) ((tty)->termios.c_cc[VREPRINT])
47 #define DISCARD_CHAR(tty) ((tty)->termios.c_cc[VDISCARD])
48 #define WERASE_CHAR(tty) ((tty)->termios.c_cc[VWERASE])
49 #define LNEXT_CHAR(tty) ((tty)->termios.c_cc[VLNEXT])
50 #define EOL2_CHAR(tty) ((tty)->termios.c_cc[VEOL2])
52 #define _I_FLAG(tty, f) ((tty)->termios.c_iflag & (f))
53 #define _O_FLAG(tty, f) ((tty)->termios.c_oflag & (f))
54 #define _C_FLAG(tty, f) ((tty)->termios.c_cflag & (f))
55 #define _L_FLAG(tty, f) ((tty)->termios.c_lflag & (f))
122 * struct tty_struct - state associated with a tty while open
130 * @ldisc_sem: protects line discipline changes (@ldisc) -- lock tty not pty
134 * @legacy_mutex: leftover from history (BKL -> BTM -> @legacy_mutex),
148 * @flow: flow settings grouped together
149 * @flow.lock: lock for @flow members
150 * @flow.stopped: tty stopped/started by stop_tty()/start_tty()
151 * @flow.tco_stopped: tty stopped/started by %TCOOFF/%TCOON ioctls (it has
152 * precedence over @flow.stopped)
161 * @hw_stopped: not controlled by the tty layer, under @driver's control for CTS
166 * @link: link to another pty (master -> slave and vice versa)
215 } flow; member
260 * tty->write. Thus, you must use the inline functions set_bit() and
270 * fail, returning -%EIO. (May be no ldisc too.)
322 return file->f_flags & O_NONBLOCK || in tty_io_nonblock()
323 test_bit(TTY_LDISC_CHANGING, &tty->flags); in tty_io_nonblock()
328 return test_bit(TTY_IO_ERROR, &tty->flags); in tty_io_error()
333 return test_bit(TTY_THROTTLED, &tty->flags); in tty_throttled()
372 { return ERR_PTR(-ENODEV); } in tty_kopen_exclusive()
376 { return -ENOTSUPP; } in tty_dev_name_to_number()
386 * tty_kref_get - get a tty reference
397 kref_get(&tty->kref); in tty_kref_get()
432 * tty_get_baud_rate - get tty bit rates
441 return tty_termios_baud_rate(&tty->termios); in tty_get_baud_rate()