Home
last modified time | relevance | path

Searched refs:UART_LSR (Results 1 – 25 of 46) sorted by relevance

12

/openbmc/linux/arch/powerpc/boot/
H A Dns16550.c25 #define UART_LSR 5 /* In: Line Status Register */ macro
42 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_THRE) == 0); in ns16550_putc()
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/linux/arch/arm/include/debug/
H A Dpalmchip.S5 #undef UART_LSR
9 #define UART_LSR 7 macro
H A Domap2plus.S47 mov \rp, #(UART_LSR << ZOOM_PORT_SHIFT)
72 1001: ldrb \rd, [\rx] @ rx contains UART_LSR address
H A D8250.S42 1002: load \rd, [\rx, #UART_LSR << UART_SHIFT]
/openbmc/linux/arch/mips/ath25/
H A Dearly_printk.c40 while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar()
43 while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar()
/openbmc/linux/arch/powerpc/platforms/embedded6xx/
H A Dls_uart.c37 char lsr = in_8(avr_addr + UART_LSR); in wd_stop()
47 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) in wd_stop()
105 (void) in_8(avr_addr + UART_LSR); in ls_uart_init()
/openbmc/linux/drivers/accessibility/speakup/
H A Dserialio.c99 if (inb(ser->port + UART_LSR) == 0xff) { in spk_serial_init()
120 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler()
146 inb(speakup_info.port_tts + UART_LSR); in start_serial_interrupt()
258 while (!(inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR)) { in spk_serial_in()
272 lsr = inb_p(speakup_info.port_tts + UART_LSR); in spk_serial_in_nowait()
H A Dserialio.h38 (!uart_lsr_tx_empty(inb(speakup_info.port_tts + UART_LSR)))
/openbmc/linux/arch/powerpc/kernel/
H A Dudbg_16550.c23 #define UART_LSR 5 macro
52 while ((udbg_uart_in(UART_LSR) & LSR_THRE) == 0) in udbg_uart_flush()
72 if (!(udbg_uart_in(UART_LSR) & LSR_DR)) in udbg_uart_getc_poll()
83 while (!(udbg_uart_in(UART_LSR) & LSR_DR)) in udbg_uart_getc()
/openbmc/linux/arch/mips/ath79/
H A Dearly_printk.c37 prom_putchar_wait(base + UART_LSR * 4, UART_LSR_BOTH_EMPTY); in prom_putchar_ar71xx()
39 prom_putchar_wait(base + UART_LSR * 4, UART_LSR_BOTH_EMPTY); in prom_putchar_ar71xx()
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_rt288x.c24 [UART_LSR] = 7,
109 status = au_serial_in(port, UART_LSR); in au_putc()
H A D8250_early.c86 status = serial8250_early_in(port, UART_LSR); in serial_putc()
112 status = serial8250_early_in(port, UART_LSR); in early_serial8250_read()
/openbmc/linux/drivers/tty/serial/
H A Dpxa.c160 *status = serial_in(up, UART_LSR); in receive_chars()
229 lsr = serial_in(up, UART_LSR); in serial_pxa_irq()
246 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_pxa_tx_empty()
339 (void) serial_in(up, UART_LSR); in serial_pxa_startup()
365 (void) serial_in(up, UART_LSR); in serial_pxa_startup()
565 status = serial_in(up, UART_LSR); in wait_for_xmitr()
646 unsigned char lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char()
649 lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char()
H A Dsunsu.c390 *status = serial_inp(up, UART_LSR); in receive_chars()
462 status = serial_inp(up, UART_LSR); in sunsu_serial_interrupt()
524 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars()
532 unsigned char status = serial_inp(up, UART_LSR); in sunsu_kbd_ms_interrupt()
549 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in sunsu_tx_empty()
653 (void) serial_inp(up, UART_LSR); in sunsu_startup()
664 (serial_inp(up, UART_LSR) == 0xff)) { in sunsu_startup()
714 (void) serial_inp(up, UART_LSR); in sunsu_startup()
989 lsr = serial_in(up, UART_LSR); in sunsu_serio_write()
1260 status = serial_in(up, UART_LSR); in wait_for_xmitr()
H A Domap-serial.c538 lsr = serial_in(up, UART_LSR); in serial_omap_irq()
583 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_omap_tx_empty()
694 (void) serial_in(up, UART_LSR); in serial_omap_startup()
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()
1084 status = serial_in(up, UART_LSR); in wait_for_xmitr()
1124 status = serial_in(up, UART_LSR); in serial_omap_poll_get_char()
1159 status = omap_serial_early_in(port, UART_LSR); in omap_serial_early_putc()
1699 while (UART_LSR_THRE != (serial_in(up, UART_LSR) & in serial_omap_mdr1_errataset()
1705 serial_in(up, UART_LSR)); in serial_omap_mdr1_errataset()
H A Dserial-tegra.c339 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_fifo_reset()
493 unsigned long lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_fill_tx_fifo()
603 unsigned long lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_tx_empty()
647 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_handle_rx_pio()
896 tegra_uart_read(tup, UART_LSR)); in tegra_uart_isr()
946 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_hw_deinit()
968 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_hw_deinit()
/openbmc/linux/arch/mips/kernel/
H A Dearly_printk_8250.c46 status = serial_in(UART_LSR); in prom_putchar()
/openbmc/linux/drivers/media/rc/
H A Dserial_ir.c196 while (!(sinp(UART_LSR) & UART_LSR_THRE)) in send_pulse_irdeo()
204 while (!(sinp(UART_LSR) & UART_LSR_TEMT)) in send_pulse_irdeo()
429 sinp(UART_LSR); in hardware_init_port()
438 sinp(UART_LSR); in hardware_init_port()
696 sinp(UART_LSR); in serial_ir_suspend()
/openbmc/linux/arch/mips/boot/compressed/
H A Duart-16550.c48 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
/openbmc/linux/drivers/bluetooth/
H A Ddtl1_cs.c115 if (!(inb(iobase + UART_LSR) & UART_LSR_THRE)) in dtl1_write()
285 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in dtl1_receive()
311 lsr = inb(iobase + UART_LSR); in dtl1_interrupt()
/openbmc/u-boot/arch/arm/include/debug/
H A D8250.S39 1002: load \rd, [\rx, #UART_LSR << UART_SHIFT]
/openbmc/linux/arch/sh/include/asm/
H A Dsmc37c93x.h64 #define UART_LSR 0xa /* Line Status Register */ macro
/openbmc/linux/arch/x86/platform/ce4100/
H A Dce4100.c64 lsr = mem_serial_in(p, UART_LSR); in ce4100_mem_serial_in()
/openbmc/linux/drivers/tty/
H A Dmxser.c756 if (inb(info->ioaddr + UART_LSR) == 0xff) { in mxser_activate()
770 (void) inb(info->ioaddr + UART_LSR); in mxser_activate()
794 (void) inb(info->ioaddr + UART_LSR); in mxser_activate()
1091 status = inb(info->ioaddr + UART_LSR); in mxser_get_lsr_info()
1388 lsr = inb(info->ioaddr + UART_LSR); in mxser_tx_empty()
1552 status = inb(port->ioaddr + UART_LSR); in mxser_receive_chars_old()
1617 status = inb(port->ioaddr + UART_LSR); in mxser_port_isr()
1626 status = inb(port->ioaddr + UART_LSR); in mxser_port_isr()
/openbmc/u-boot/include/linux/
H A Dserial_reg.h123 #define UART_LSR 5 /* In: Line Status Register */ macro

12