Lines Matching defs:cflag
276 * @cflag: termios cflag value
278 * Get the size (in bits) of a character depending on @cflag's %CSIZE
281 unsigned char tty_get_char_size(unsigned int cflag)
283 switch (cflag & CSIZE) {
299 * @cflag: termios cflag value
301 * Get the size (in bits) of a frame depending on @cflag's %CSIZE, %CSTOPB,
306 unsigned char tty_get_frame_size(unsigned int cflag)
308 unsigned char bits = 2 + tty_get_char_size(cflag);
310 if (cflag & CSTOPB)
312 if (cflag & PARENB)
314 if (cflag & ADDRB)