CSIZE
int csize = ((cflag & CSIZE) == CS7) ? 0x20 : 0x00;
reg3 = (cflag & CSIZE) == CS8 ? 0xc0 : 0x40;
reg5 = (cflag & CSIZE) == CS8 ? 0x60 : 0x20 | 0x82 /* assert DTR/RTS */;
int csize = ((cflag & CSIZE) == CS8) ? 0x10 : 0x00;
cval = cflag & (CSIZE | CSTOPB);
switch (cflag & CSIZE) {
tty->termios.c_cflag = (cflag & ~CSIZE) | CS8;
~(CSIZE /* no size */
~(CSIZE /* no size */
mode = termio->c_cflag & CSIZE;
tty->termios.c_cflag &= ~(CSIZE | PARENB);
ktermios.c_cflag &= ~(CSIZE | PARENB);
switch (termios->c_cflag & CSIZE) {
tcflag_t csize = termios->c_cflag & CSIZE;
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
new->c_cflag &= ~CSIZE;
new->c_cflag &= ~(CMSPAR|CRTSCTS|CSIZE);
switch (termios->c_cflag & CSIZE) {
switch (new->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8;
while ((termios->c_cflag & CSIZE) != CS8 &&
(termios->c_cflag & CSIZE) != CS7) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS7) {
if ((termios->c_cflag & CSIZE) == CS8) {
if ((termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS7)
unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8;
while ((termios->c_cflag & CSIZE) != CS8 &&
(termios->c_cflag & CSIZE) != CS7) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS8 ||
(termios->c_cflag & CSIZE) == CS7)
if ((termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS7)
if ((termios->c_cflag & CSIZE) == CS8)
unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8;
while ((termios->c_cflag & CSIZE) != CS8 &&
(termios->c_cflag & CSIZE) != CS7) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS8 ||
(termios->c_cflag & CSIZE) == CS7)
if ((termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS7 && !(termios->c_cflag & PARENB)) {
if ((termios->c_cflag & CSIZE) == CS8)
switch (cflag & CSIZE) {
unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8;
while ((termios->c_cflag & CSIZE) != CS7 &&
(termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS8)
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
new->c_cflag &= ~ CSIZE;
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
if ((cflag & CSIZE) == CS8) {
cflag = (cflag & ~CSIZE) | CS7;
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (cflags & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (new->c_cflag & CSIZE) {
mr2 |= ((new->c_cflag & CSIZE) == CS5) ?
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
(((cfl & CSIZE) == CS8) ? RP2_UART_CTL_DATABITS_8 : 0) |
(((cfl & CSIZE) == CS7) ? RP2_UART_CTL_DATABITS_7 : 0) |
(((cfl & CSIZE) == CS6) ? RP2_UART_CTL_DATABITS_6 : 0) |
(((cfl & CSIZE) == CS5) ? RP2_UART_CTL_DATABITS_5 : 0));
if ((termios->c_cflag & CSIZE) == CS7) {
termios->c_cflag &= ~CSIZE;
unsigned int old_csize = old ? old->c_cflag & CSIZE : CS8;
while ((termios->c_cflag & CSIZE) != CS7 &&
(termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS8)
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) == CS7) {
termios->c_cflag &= ~CSIZE;
if ((termios->c_cflag & CSIZE) != CS8) {
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
if ((cflag & CSIZE) == CS7) {
cflag &= ~CSIZE;
cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
termios->c_cflag &= ~(CSIZE | CSTOPB | PARENB | PARODD);
termios->c_cflag &= ~(CSTOPB | PARENB | PARODD | CSIZE);
termios->c_cflag |= pdata->cflags & (PARENB | PARODD | CSIZE);
switch (termios->c_cflag & CSIZE) {
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
termios->c_cflag &= ~CSIZE;
switch (termios->c_cflag & CSIZE) {
switch (cflag & CSIZE) {
if ((cflag & CSIZE) != (old_cflag & CSIZE)) {
tty->termios.c_cflag &= ~(CSIZE | CSTOPB | CMSPAR);
if ((cflag & CSIZE) != (old_cflag & CSIZE)) {
switch (cflag & CSIZE) {
cflag & CSIZE);
&= ~(CSIZE /* no size */
termios->c_cflag &= ~CSIZE;
termios->c_cflag |= old_termios->c_cflag & CSIZE;
if ((old_termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)) ==
(termios->c_cflag & (CSIZE|PARODD|PARENB|CMSPAR|CSTOPB)))
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
tty->termios.c_cflag &= ~(supported_mask|CSIZE);
switch (p_priv->cflag & CSIZE) {
switch (p_priv->cflag & CSIZE) {
switch (p_priv->cflag & CSIZE) {
switch (p_priv->cflag & CSIZE) {
if ((cflag & CSIZE) != (old_cflag & CSIZE)) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
switch (cflag & CSIZE) {
tty->termios.c_cflag &= ~CSIZE;
termios->c_cflag &= ~CSIZE;
termios->c_cflag |= old_termios->c_cflag & CSIZE;
tty->termios.c_cflag &= ~CSIZE;
tty->termios.c_cflag |= old_termios->c_cflag & CSIZE;
#define C_CSIZE(tty) _C_FLAG((tty), CSIZE)
if ((old->c_cflag & CSIZE) != (new->c_cflag & CSIZE))
switch (new->c_cflag & CSIZE) {