Home
last modified time | relevance | path

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

12

/linux-6.6.21/arch/powerpc/boot/
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()
/linux-6.6.21/arch/arm/include/debug/
Dpalmchip.S5 #undef UART_LSR
9 #define UART_LSR 7 macro
Domap2plus.S47 mov \rp, #(UART_LSR << ZOOM_PORT_SHIFT)
72 1001: ldrb \rd, [\rx] @ rx contains UART_LSR address
D8250.S42 1002: load \rd, [\rx, #UART_LSR << UART_SHIFT]
/linux-6.6.21/drivers/accessibility/speakup/
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()
Dserialio.h38 (!uart_lsr_tx_empty(inb(speakup_info.port_tts + UART_LSR)))
/linux-6.6.21/arch/mips/ath25/
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()
/linux-6.6.21/arch/powerpc/platforms/embedded6xx/
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()
/linux-6.6.21/arch/powerpc/kernel/
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()
/linux-6.6.21/arch/mips/ath79/
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()
/linux-6.6.21/drivers/tty/serial/
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()
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()
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()
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()
Dpch_uart.c323 "LSR: \t0x%02x\n", ioread8(priv->membase + UART_LSR)); in port_show_regs()
559 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read()
560 for (i = 0, lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read()
562 lsr = ioread8(priv->membase + UART_LSR)) { in pch_uart_hal_read()
586 return ioread8(priv->membase + UART_LSR); in pch_uart_hal_get_line_status()
1453 status = ioread8(up->membase + UART_LSR); in wait_for_xmitr()
1485 u8 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_get_poll_char()
/linux-6.6.21/drivers/tty/serial/8250/
D8250_rt288x.c24 [UART_LSR] = 7,
109 status = au_serial_in(port, UART_LSR); in au_putc()
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()
/linux-6.6.21/drivers/media/rc/
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()
/linux-6.6.21/arch/mips/kernel/
Dearly_printk_8250.c46 status = serial_in(UART_LSR); in prom_putchar()
/linux-6.6.21/arch/mips/boot/compressed/
Duart-16550.c48 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
/linux-6.6.21/drivers/bluetooth/
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()
/linux-6.6.21/arch/sh/include/asm/
Dsmc37c93x.h64 #define UART_LSR 0xa /* Line Status Register */ macro
/linux-6.6.21/arch/x86/platform/ce4100/
Dce4100.c64 lsr = mem_serial_in(p, UART_LSR); in ce4100_mem_serial_in()
/linux-6.6.21/drivers/tty/
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()
/linux-6.6.21/include/uapi/linux/
Dserial_reg.h138 #define UART_LSR 5 /* In: Line Status Register */ macro

12