Lines Matching refs:mr1
115 void (*set_mode)(struct uart_port *port, u8 mr1, u8 mr2);
148 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode() argument
151 out_8(&PSC(port)->mode, mr1); in mpc52xx_psc_set_mode()
922 static void mpc5125_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc5125_psc_set_mode() argument
924 out_8(&PSC_5125(port)->mr1, mr1); in mpc5125_psc_set_mode()
961 return in_8(&PSC_5125(port)->mr1); in mpc5125_psc_get_mr1()
1173 unsigned char mr1, mr2; in mpc52xx_uart_set_termios() local
1178 mr1 = 0; in mpc52xx_uart_set_termios()
1181 case CS5: mr1 |= MPC52xx_PSC_MODE_5_BITS; in mpc52xx_uart_set_termios()
1183 case CS6: mr1 |= MPC52xx_PSC_MODE_6_BITS; in mpc52xx_uart_set_termios()
1185 case CS7: mr1 |= MPC52xx_PSC_MODE_7_BITS; in mpc52xx_uart_set_termios()
1188 default: mr1 |= MPC52xx_PSC_MODE_8_BITS; in mpc52xx_uart_set_termios()
1193 mr1 |= MPC52xx_PSC_MODE_PARFORCE; in mpc52xx_uart_set_termios()
1196 mr1 |= (new->c_cflag & PARODD) ? in mpc52xx_uart_set_termios()
1199 mr1 |= MPC52xx_PSC_MODE_PARNONE; in mpc52xx_uart_set_termios()
1212 mr1 |= MPC52xx_PSC_MODE_RXRTS; in mpc52xx_uart_set_termios()
1239 psc_ops->set_mode(port, mr1, mr2); in mpc52xx_uart_set_termios()
1499 unsigned char mr1; in mpc52xx_console_get_options() local
1504 mr1 = psc_ops->get_mr1(port); in mpc52xx_console_get_options()
1510 switch (mr1 & MPC52xx_PSC_MODE_BITS_MASK) { in mpc52xx_console_get_options()
1525 if (mr1 & MPC52xx_PSC_MODE_PARNONE) in mpc52xx_console_get_options()
1528 *parity = mr1 & MPC52xx_PSC_MODE_PARODD ? 'o' : 'e'; in mpc52xx_console_get_options()