Lines Matching refs:ch
312 unsigned int ch, fifotaken;
323 ch = pl011_read(uap, REG_DR) | UART_DUMMY_DR_RX;
327 if (unlikely(ch & UART_DR_ERROR)) {
328 if (ch & UART011_DR_BE) {
329 ch &= ~(UART011_DR_FE | UART011_DR_PE);
333 } else if (ch & UART011_DR_PE) {
335 } else if (ch & UART011_DR_FE) {
338 if (ch & UART011_DR_OE)
341 ch &= uap->port.read_status_mask;
343 if (ch & UART011_DR_BE)
345 else if (ch & UART011_DR_PE)
347 else if (ch & UART011_DR_FE)
351 sysrq = uart_prepare_sysrq_char(&uap->port, ch & 255);
353 uart_insert_char(&uap->port, ch, UART011_DR_OE, ch, flag);
1693 static void pl011_put_poll_char(struct uart_port *port, unsigned char ch)
1701 pl011_write(ch, uap, REG_DR);
2293 static void pl011_console_putchar(struct uart_port *port, unsigned char ch)
2300 pl011_write(ch, uap, REG_DR);
2554 int ch, num_read = 0;
2557 ch = pl011_getc(&dev->port);
2558 if (ch == NO_POLL_CHAR)
2561 s[num_read++] = ch;