Lines Matching refs:bits
523 unsigned int bits; in cp210x_get_termios_port() local
532 cp210x_get_config(port, CP210X_GET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
534 switch (bits & BITS_DATA_MASK) { in cp210x_get_termios_port()
554 bits &= ~BITS_DATA_MASK; in cp210x_get_termios_port()
555 bits |= BITS_DATA_8; in cp210x_get_termios_port()
556 cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
561 bits &= ~BITS_DATA_MASK; in cp210x_get_termios_port()
562 bits |= BITS_DATA_8; in cp210x_get_termios_port()
563 cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
567 switch (bits & BITS_PARITY_MASK) { in cp210x_get_termios_port()
593 bits &= ~BITS_PARITY_MASK; in cp210x_get_termios_port()
594 cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
599 switch (bits & BITS_STOP_MASK) { in cp210x_get_termios_port()
605 bits &= ~BITS_STOP_MASK; in cp210x_get_termios_port()
606 cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
614 bits &= ~BITS_STOP_MASK; in cp210x_get_termios_port()
615 cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2); in cp210x_get_termios_port()
689 unsigned int bits; in cp210x_set_termios() local
700 cp210x_get_config(port, CP210X_GET_LINE_CTL, &bits, 2); in cp210x_set_termios()
701 bits &= ~BITS_DATA_MASK; in cp210x_set_termios()
704 bits |= BITS_DATA_5; in cp210x_set_termios()
708 bits |= BITS_DATA_6; in cp210x_set_termios()
712 bits |= BITS_DATA_7; in cp210x_set_termios()
716 bits |= BITS_DATA_8; in cp210x_set_termios()
725 bits |= BITS_DATA_8; in cp210x_set_termios()
728 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) in cp210x_set_termios()
734 cp210x_get_config(port, CP210X_GET_LINE_CTL, &bits, 2); in cp210x_set_termios()
735 bits &= ~BITS_PARITY_MASK; in cp210x_set_termios()
739 bits |= BITS_PARITY_MARK; in cp210x_set_termios()
742 bits |= BITS_PARITY_SPACE; in cp210x_set_termios()
747 bits |= BITS_PARITY_ODD; in cp210x_set_termios()
750 bits |= BITS_PARITY_EVEN; in cp210x_set_termios()
755 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) in cp210x_set_termios()
760 cp210x_get_config(port, CP210X_GET_LINE_CTL, &bits, 2); in cp210x_set_termios()
761 bits &= ~BITS_STOP_MASK; in cp210x_set_termios()
763 bits |= BITS_STOP_2; in cp210x_set_termios()
766 bits |= BITS_STOP_1; in cp210x_set_termios()
769 if (cp210x_set_config(port, CP210X_SET_LINE_CTL, &bits, 2)) in cp210x_set_termios()