Home
last modified time | relevance | path

Searched refs:UART_LSR_DR (Results 1 – 25 of 34) sorted by relevance

12

/openbmc/linux/arch/powerpc/boot/
H A Dns16550.c27 #define UART_LSR_DR 0x01 /* Receiver data ready */ macro
48 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) == 0); in ns16550_getc()
54 return ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) != 0); in ns16550_tstc()
/openbmc/qemu/hw/char/
H A Dserial.c88 #define UART_LSR_DR 0x01 /* Receiver data ready */ macro
129 } else if ((s->ier & UART_IER_RDI) && (s->lsr & UART_LSR_DR) && in serial_update_irq()
416 s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); in serial_ioport_write()
485 s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); in serial_ioport_read()
492 s->lsr &= ~(UART_LSR_DR | UART_LSR_BI); in serial_ioport_read()
572 return !(s->lsr & UART_LSR_DR); in serial_can_receive()
581 s->lsr |= UART_LSR_BI | UART_LSR_DR; in serial_receive_break()
612 s->lsr |= UART_LSR_DR; in serial_receive1()
616 if (s->lsr & UART_LSR_DR) in serial_receive1()
619 s->lsr |= UART_LSR_DR; in serial_receive1()
/openbmc/u-boot/drivers/serial/
H A Dserial_mtk.c47 #define UART_LSR_DR 0x01 /* Data ready */ macro
155 if (!(readl(&priv->regs->lsr) & UART_LSR_DR)) in mtk_serial_getc()
166 return (readl(&priv->regs->lsr) & UART_LSR_DR) ? 1 : 0; in mtk_serial_pending()
H A Dserial_uniphier.c63 if (!(readl(&port->lsr) & UART_LSR_DR)) in uniphier_serial_getc()
86 return readl(&port->lsr) & UART_LSR_DR; in uniphier_serial_pending()
H A Dns16550.c231 while ((serial_in(&com_port->lsr) & UART_LSR_DR) == 0) { in NS16550_getc()
243 return (serial_in(&com_port->lsr) & UART_LSR_DR) != 0; in NS16550_tstc()
330 return (serial_in(&com_port->lsr) & UART_LSR_DR) ? 1 : 0; in ns16550_serial_pending()
339 if (!(serial_in(&com_port->lsr) & UART_LSR_DR)) in ns16550_serial_getc()
/openbmc/linux/drivers/accessibility/speakup/
H A Dserialio.c120 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler()
258 while (!(inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR)) { in spk_serial_in()
273 if (!(lsr & UART_LSR_DR)) in spk_serial_in_nowait()
/openbmc/linux/drivers/tty/serial/
H A Dpxa.c87 up->port.read_status_mask &= ~UART_LSR_DR; in serial_pxa_stop_rx()
161 } while ((*status & UART_LSR_DR) && (max_count-- > 0)); in receive_chars()
230 if (lsr & UART_LSR_DR) in serial_pxa_irq()
450 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial_pxa_set_termios()
476 up->port.ignore_status_mask |= UART_LSR_DR; in serial_pxa_set_termios()
648 while (!(lsr & UART_LSR_DR)) in serial_pxa_get_poll_char()
H A Domap-serial.c330 up->port.read_status_mask &= ~UART_LSR_DR; in serial_omap_stop_rx()
446 if (likely(lsr & UART_LSR_DR)) { in serial_omap_rlsi()
498 if (!(lsr & UART_LSR_DR)) in serial_omap_rdi()
695 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_startup()
759 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_shutdown()
825 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial_omap_set_termios()
851 up->port.ignore_status_mask |= UART_LSR_DR; in serial_omap_set_termios()
1125 if (!(status & UART_LSR_DR)) { in serial_omap_poll_get_char()
1700 (UART_LSR_THRE | UART_LSR_DR))) { in serial_omap_mdr1_errataset()
H A Dsunsu.c304 up->port.read_status_mask &= ~UART_LSR_DR; in sunsu_stop_rx()
391 } while ((*status & UART_LSR_DR) && (max_count-- > 0)); in receive_chars()
463 if (status & UART_LSR_DR) in sunsu_serial_interrupt()
524 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars()
534 if ((status & UART_LSR_DR) || (status & UART_LSR_BI)) in sunsu_kbd_ms_interrupt()
836 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sunsu_change_speed()
862 up->port.ignore_status_mask |= UART_LSR_DR; in sunsu_change_speed()
H A Dserial-tegra.c340 if ((lsr & UART_LSR_TEMT) && !(lsr & UART_LSR_DR)) in tegra_uart_fifo_reset()
461 if (!(lsr & UART_LSR_DR) && (lsr & UART_LSR_FIFOE)) in tegra_uart_decode_rx_error()
648 if (!(lsr & UART_LSR_DR)) in tegra_uart_handle_rx_pio()
661 if (tup->uport.ignore_status_mask & UART_LSR_DR) in tegra_uart_handle_rx_pio()
680 if (tup->uport.ignore_status_mask & UART_LSR_DR) in tegra_uart_copy_rx_to_tty()
1381 tup->uport.ignore_status_mask |= UART_LSR_DR; in tegra_uart_set_termios()
/openbmc/linux/drivers/mmc/core/
H A Dsdio_uart.c287 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sdio_uart_change_speed()
313 port->ignore_status_mask |= UART_LSR_DR; in sdio_uart_change_speed()
353 port->read_status_mask &= ~UART_LSR_DR; in sdio_uart_stop_rx()
406 } while ((*status & UART_LSR_DR) && (max_count-- > 0)); in sdio_uart_receive_chars()
521 if (lsr & UART_LSR_DR) in sdio_uart_irq()
/openbmc/u-boot/include/
H A Dns16550.h166 #define UART_LSR_DR 0x01 /* Data ready */ macro
/openbmc/linux/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c47 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) in wd_stop()
/openbmc/u-boot/include/linux/
H A Dserial_reg.h131 #define UART_LSR_DR 0x01 /* Receiver data ready */ macro
/openbmc/linux/include/uapi/linux/
H A Dserial_reg.h146 #define UART_LSR_DR 0x01 /* Receiver data ready */ macro
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_fsl.c64 if ((lsr & (UART_LSR_DR | UART_LSR_BI)) && in fsl8250_handle_irq()
H A D8250_early.c113 if (!(status & UART_LSR_DR)) in early_serial8250_read()
H A D8250_dw.c124 if (!(lsr & UART_LSR_DR)) in dw8250_force_idle()
296 if (!(status & (UART_LSR_DR | UART_LSR_BI))) in dw8250_handle_irq()
308 if (status & (UART_LSR_DR | UART_LSR_BI)) { in dw8250_handle_irq()
H A D8250_aspeed_vuart.c347 if (lsr & (UART_LSR_DR | UART_LSR_BI)) { in aspeed_vuart_handle_irq()
367 } while (lsr & (UART_LSR_DR | UART_LSR_BI)); in aspeed_vuart_handle_irq()
H A D8250_port.c813 for (count = 0; (serial_in(up, UART_LSR) & UART_LSR_DR) && in size_fifo()
1392 up->port.read_status_mask &= ~UART_LSR_DR; in serial8250_stop_rx()
1710 if (likely(lsr & UART_LSR_DR)) in serial8250_read_char()
1783 } while (lsr & (UART_LSR_DR | UART_LSR_BI)); in serial8250_rx_chars()
1929 !(port->read_status_mask & UART_LSR_DR)) in serial8250_handle_irq()
1932 if (status & (UART_LSR_DR | UART_LSR_BI) && !skip_rx) { in serial8250_handle_irq()
2132 if (!(lsr & UART_LSR_DR)) { in serial8250_get_poll_char()
2822 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial8250_do_set_termios()
2848 port->ignore_status_mask |= UART_LSR_DR; in serial8250_do_set_termios()
H A D8250_omap.c415 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in omap_8250_set_termios()
441 up->port.ignore_status_mask |= UART_LSR_DR; in omap_8250_set_termios()
831 port->read_status_mask |= UART_LSR_DR; in omap_8250_unthrottle()
1237 if ((status & (UART_LSR_DR | UART_LSR_BI)) && in omap_8250_handle_rx_dma()
1257 if ((status & (UART_LSR_DR | UART_LSR_BI)) && in am654_8250_handle_rx_dma()
/openbmc/linux/arch/arm/mach-orion5x/
H A Dterastation_pro2-setup.c169 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in tsp2_miconread()
H A Dkurobox_pro-setup.c191 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in kurobox_pro_miconread()
/openbmc/linux/drivers/tty/
H A Damiserial.c187 status = UART_LSR_DR; /* We obviously have a character! */ in receive_chars()
653 info->read_status_mask = UART_LSR_OE | UART_LSR_DR; in change_speed()
678 info->ignore_status_mask |= UART_LSR_DR; in change_speed()
1240 state->read_status_mask &= ~UART_LSR_DR; in rs_close()
/openbmc/linux/drivers/tty/serial/jsm/
H A Djsm_neo.c405 if (!(linestatus & UART_LSR_DR)) { in neo_copy_data_from_uart_to_queue()
411 linestatus &= ~UART_LSR_DR; in neo_copy_data_from_uart_to_queue()
848 if (ch->ch_cached_lsr & UART_LSR_DR) { in neo_parse_lsr()

12