Lines Matching refs:mr1
113 void (*set_mode)(struct uart_port *port, u8 mr1, u8 mr2);
146 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode() argument
149 out_8(&PSC(port)->mode, mr1); in mpc52xx_psc_set_mode()
923 static void mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc5125_psc_set_mode() argument
925 out_8(&PSC_5125(port)->mr1, mr1); in mpc5125_psc_set_mode()
962 return in_8(&PSC_5125(port)->mr1); in mpc5125_psc_get_mr1()
1174 unsigned char mr1, mr2; in mpc52xx_uart_set_termios() local
1179 mr1 = 0; in mpc52xx_uart_set_termios()
1182 case CS5: mr1 |= MPC52xx_PSC_MODE_5_BITS; in mpc52xx_uart_set_termios()
1184 case CS6: mr1 |= MPC52xx_PSC_MODE_6_BITS; in mpc52xx_uart_set_termios()
1186 case CS7: mr1 |= MPC52xx_PSC_MODE_7_BITS; in mpc52xx_uart_set_termios()
1189 default: mr1 |= MPC52xx_PSC_MODE_8_BITS; in mpc52xx_uart_set_termios()
1194 mr1 |= MPC52xx_PSC_MODE_PARFORCE; in mpc52xx_uart_set_termios()
1197 mr1 |= (new->c_cflag & PARODD) ? in mpc52xx_uart_set_termios()
1200 mr1 |= MPC52xx_PSC_MODE_PARNONE; in mpc52xx_uart_set_termios()
1213 mr1 |= MPC52xx_PSC_MODE_RXRTS; in mpc52xx_uart_set_termios()
1240 psc_ops->set_mode(port, mr1, mr2); in mpc52xx_uart_set_termios()
1533 unsigned char mr1; in mpc52xx_console_get_options() local
1538 mr1 = psc_ops->get_mr1(port); in mpc52xx_console_get_options()
1544 switch (mr1 & MPC52xx_PSC_MODE_BITS_MASK) { in mpc52xx_console_get_options()
1559 if (mr1 & MPC52xx_PSC_MODE_PARNONE) in mpc52xx_console_get_options()
1562 *parity = mr1 & MPC52xx_PSC_MODE_PARODD ? 'o' : 'e'; in mpc52xx_console_get_options()