Lines Matching refs:ctl
206 static void bcm_uart_break_ctl(struct uart_port *port, int ctl) in bcm_uart_break_ctl() argument
214 if (ctl) in bcm_uart_break_ctl()
508 unsigned int ctl, baud, quot, ier; in bcm_uart_set_termios() local
518 ctl = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_termios()
519 ctl &= ~UART_CTL_BITSPERSYM_MASK; in bcm_uart_set_termios()
523 ctl |= (0 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios()
526 ctl |= (1 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios()
529 ctl |= (2 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios()
532 ctl |= (3 << UART_CTL_BITSPERSYM_SHIFT); in bcm_uart_set_termios()
536 ctl &= ~UART_CTL_STOPBITS_MASK; in bcm_uart_set_termios()
538 ctl |= UART_CTL_STOPBITS_2; in bcm_uart_set_termios()
540 ctl |= UART_CTL_STOPBITS_1; in bcm_uart_set_termios()
542 ctl &= ~(UART_CTL_RXPAREN_MASK | UART_CTL_TXPAREN_MASK); in bcm_uart_set_termios()
544 ctl |= (UART_CTL_RXPAREN_MASK | UART_CTL_TXPAREN_MASK); in bcm_uart_set_termios()
545 ctl &= ~(UART_CTL_RXPAREVEN_MASK | UART_CTL_TXPAREVEN_MASK); in bcm_uart_set_termios()
547 ctl |= (UART_CTL_RXPAREVEN_MASK | UART_CTL_TXPAREVEN_MASK); in bcm_uart_set_termios()
548 bcm_uart_writel(port, ctl, UART_CTL_REG); in bcm_uart_set_termios()