Lines Matching defs:cflag
268 * @cflag: termios cflag value
270 * Returns: size (in bits) of a character depending on @cflag's %CSIZE setting
272 unsigned char tty_get_char_size(unsigned int cflag)
274 switch (cflag & CSIZE) {
290 * @cflag: termios cflag value
292 * Get the size (in bits) of a frame depending on @cflag's %CSIZE, %CSTOPB, and
296 * Returns: size (in bits) of a frame depending on @cflag's setting.
298 unsigned char tty_get_frame_size(unsigned int cflag)
300 unsigned char bits = 2 + tty_get_char_size(cflag);
302 if (cflag & CSTOPB)
304 if (cflag & PARENB)
306 if (cflag & ADDRB)