Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/powerpc/boot/
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()
/linux-6.1.9/drivers/accessibility/speakup/
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()
/linux-6.1.9/drivers/tty/serial/
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()
253 if (lsr & UART_LSR_DR) in serial_pxa_irq()
473 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial_pxa_set_termios()
499 up->port.ignore_status_mask |= UART_LSR_DR; in serial_pxa_set_termios()
671 while (!(lsr & UART_LSR_DR)) in serial_pxa_get_poll_char()
Domap-serial.c335 up->port.read_status_mask &= ~UART_LSR_DR; in serial_omap_stop_rx()
473 if (likely(lsr & UART_LSR_DR)) { in serial_omap_rlsi()
526 if (!(lsr & UART_LSR_DR)) in serial_omap_rdi()
724 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_startup()
788 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_shutdown()
854 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial_omap_set_termios()
880 up->port.ignore_status_mask |= UART_LSR_DR; in serial_omap_set_termios()
1154 if (!(status & UART_LSR_DR)) { in serial_omap_poll_get_char()
1729 (UART_LSR_THRE | UART_LSR_DR))) { in serial_omap_mdr1_errataset()
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()
464 if (status & UART_LSR_DR) in sunsu_serial_interrupt()
525 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars()
535 if ((status & UART_LSR_DR) || (status & UART_LSR_BI)) in sunsu_kbd_ms_interrupt()
837 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in sunsu_change_speed()
863 up->port.ignore_status_mask |= UART_LSR_DR; in sunsu_change_speed()
Dserial-tegra.c341 if ((lsr & UART_LSR_TEMT) && !(lsr & UART_LSR_DR)) in tegra_uart_fifo_reset()
462 if (!(lsr & UART_LSR_DR) && (lsr & UART_LSR_FIFOE)) in tegra_uart_decode_rx_error()
651 if (!(lsr & UART_LSR_DR)) in tegra_uart_handle_rx_pio()
664 if (tup->uport.ignore_status_mask & UART_LSR_DR) in tegra_uart_handle_rx_pio()
683 if (tup->uport.ignore_status_mask & UART_LSR_DR) in tegra_uart_copy_rx_to_tty()
1375 tup->uport.ignore_status_mask |= UART_LSR_DR; in tegra_uart_set_termios()
Dpch_uart.c561 i < rx_size && lsr & (UART_LSR_DR | UART_LSR_BI); in pch_uart_hal_read()
1491 if (!(lsr & UART_LSR_DR)) in pch_uart_get_poll_char()
/linux-6.1.9/drivers/mmc/core/
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()
/linux-6.1.9/arch/powerpc/platforms/embedded6xx/
Dls_uart.c46 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) in wd_stop()
/linux-6.1.9/include/uapi/linux/
Dserial_reg.h141 #define UART_LSR_DR 0x01 /* Receiver data ready */ macro
/linux-6.1.9/drivers/tty/serial/8250/
D8250_dw.c97 if (!(lsr & UART_LSR_DR)) in dw8250_force_idle()
269 if (!(status & (UART_LSR_DR | UART_LSR_BI))) in dw8250_handle_irq()
281 if (status & (UART_LSR_DR | UART_LSR_BI)) { in dw8250_handle_irq()
D8250_fsl.c52 if ((lsr & (UART_LSR_DR | UART_LSR_BI)) && in fsl8250_handle_irq()
D8250_early.c121 if (!(status & UART_LSR_DR)) in early_serial8250_read()
D8250_port.c858 for (count = 0; (serial_in(up, UART_LSR) & UART_LSR_DR) && in size_fifo()
1425 up->port.read_status_mask &= ~UART_LSR_DR; in serial8250_stop_rx()
1731 if (likely(lsr & UART_LSR_DR)) in serial8250_read_char()
1804 } while (lsr & (UART_LSR_DR | UART_LSR_BI)); in serial8250_rx_chars()
1939 !(port->read_status_mask & UART_LSR_DR)) in serial8250_handle_irq()
1942 if (status & (UART_LSR_DR | UART_LSR_BI) && !skip_rx) { in serial8250_handle_irq()
2136 if (!(lsr & UART_LSR_DR)) { in serial8250_get_poll_char()
2804 port->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in serial8250_do_set_termios()
2830 port->ignore_status_mask |= UART_LSR_DR; in serial8250_do_set_termios()
D8250_aspeed_vuart.c344 if (lsr & (UART_LSR_DR | UART_LSR_BI)) { in aspeed_vuart_handle_irq()
364 } while (lsr & (UART_LSR_DR | UART_LSR_BI)); in aspeed_vuart_handle_irq()
D8250_omap.c397 up->port.read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in omap_8250_set_termios()
423 up->port.ignore_status_mask |= UART_LSR_DR; in omap_8250_set_termios()
789 port->read_status_mask |= UART_LSR_DR; in omap_8250_unthrottle()
1123 if ((status & (UART_LSR_DR | UART_LSR_BI)) && in omap_8250_handle_rx_dma()
1140 if ((status & (UART_LSR_DR | UART_LSR_BI)) && in am654_8250_handle_rx_dma()
D8250_bcm7271.c791 if ((status & UART_LSR_DR) == 0) { in brcmuart_handle_irq()
839 if ((status & UART_LSR_DR) == 0) { in brcmuart_hrtimer_func()
/linux-6.1.9/arch/arm/mach-orion5x/
Dterastation_pro2-setup.c169 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in tsp2_miconread()
Dkurobox_pro-setup.c191 while (!(readl(UART1_REG(LSR)) & UART_LSR_DR)) { in kurobox_pro_miconread()
/linux-6.1.9/drivers/tty/
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()
Dmxser.c647 info->read_status_mask = UART_LSR_OE | UART_LSR_THRE | UART_LSR_DR; in mxser_change_speed()
1552 } while (status & UART_LSR_DR); in mxser_receive_chars_old()
1635 if (status & UART_LSR_DR) in mxser_port_isr()
/linux-6.1.9/drivers/tty/serial/jsm/
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()
Djsm_cls.c390 if (!(linestatus & UART_LSR_DR)) in cls_copy_data_from_uart_to_queue()
/linux-6.1.9/drivers/bluetooth/
Ddtl1_cs.c285 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in dtl1_receive()
/linux-6.1.9/sound/drivers/
Dserial-u16550.c201 while ((status = inb(uart->base + UART_LSR)) & UART_LSR_DR) { in snd_uart16550_io_loop()

12