/linux-4.1.27/arch/powerpc/boot/ |
D | ns16550.c | 23 #define UART_LSR 5 /* In: Line Status Register */ macro 40 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_THRE) == 0); in ns16550_putc() 46 while ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) == 0); in ns16550_getc() 52 return ((in_8(reg_base + (UART_LSR << reg_shift)) & UART_LSR_DR) != 0); in ns16550_tstc()
|
/linux-4.1.27/drivers/staging/speakup/ |
D | serialio.c | 76 if (inb(ser->port + UART_LSR) == 0xff) { in spk_serial_init() 99 while (inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR) { in synth_readbuf_handler() 128 inb(speakup_info.port_tts+UART_LSR); in start_serial_interrupt() 191 while (!(inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR)) { in spk_serial_in() 206 lsr = inb_p(speakup_info.port_tts + UART_LSR); in spk_serial_in_nowait()
|
D | serialio.h | 38 ((inb(speakup_info.port_tts + UART_LSR) & BOTH_EMPTY) != BOTH_EMPTY)
|
D | speakup_decext.c | 41 u_char avail = inb_p(speakup_info.port_tts + UART_LSR) & UART_LSR_DR; in get_last_char()
|
/linux-4.1.27/arch/arm/mach-dove/include/mach/ |
D | uncompress.h | 12 #define UART_LSR ((volatile unsigned char *)(DOVE_UART0_PHYS_BASE + 0x14)) macro 22 if (*UART_LSR & LSR_THRE) in putc()
|
/linux-4.1.27/arch/arm/mach-ebsa110/include/mach/ |
D | uncompress.h | 23 v = base[UART_LSR << 2]; in putc() 35 v = base[UART_LSR << 2]; in flush()
|
/linux-4.1.27/arch/arm/mach-orion5x/include/mach/ |
D | uncompress.h | 22 if (base[UART_LSR << 2] & UART_LSR_THRE) in putc() 39 if ((base[UART_LSR << 2] & mask) == mask) in flush()
|
/linux-4.1.27/arch/arm/mach-mv78xx0/include/mach/ |
D | uncompress.h | 20 if (base[UART_LSR << 2] & UART_LSR_THRE) in putc() 37 if ((base[UART_LSR << 2] & mask) == mask) in flush()
|
/linux-4.1.27/arch/mips/ath25/ |
D | early_printk.c | 39 while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar() 42 while ((prom_uart_rr(base, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar()
|
/linux-4.1.27/arch/frv/kernel/ |
D | gdb-io.h | 26 #undef UART_LSR 39 #define UART_LSR 5*8 /* In: Line Status Register */ macro
|
/linux-4.1.27/arch/frv/include/asm/ |
D | serial-regs.h | 27 #define __get_UART0_LSR() ({ __get_UART0(UART_LSR); }) 28 #define __get_UART1_LSR() ({ __get_UART1(UART_LSR); })
|
/linux-4.1.27/arch/powerpc/platforms/embedded6xx/ |
D | ls_uart.c | 36 char lsr = in_8(avr_addr + UART_LSR); in wd_stop() 46 while (in_8(avr_addr + UART_LSR) & UART_LSR_DR) in wd_stop() 104 (void) in_8(avr_addr + UART_LSR); in ls_uart_init()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | udbg_16550.c | 26 #define UART_LSR 5 macro 55 while ((udbg_uart_in(UART_LSR) & LSR_THRE) == 0) in udbg_uart_flush() 75 if (!(udbg_uart_in(UART_LSR) & LSR_DR)) in udbg_uart_getc_poll() 86 while (!(udbg_uart_in(UART_LSR) & LSR_DR)) in udbg_uart_getc()
|
/linux-4.1.27/arch/arm/mach-davinci/include/mach/ |
D | uncompress.h | 38 while (!(uart[UART_LSR] & UART_LSR_THRE)) in putc() 48 while (!(uart[UART_LSR] & UART_LSR_THRE)) in flush()
|
/linux-4.1.27/drivers/tty/serial/ |
D | m32r_sio_reg.h | 54 #define UART_LSR ((unsigned long) PLD_ESIO0STS) macro 94 #define UART_LSR M32R_SIO0_STS_PORTL /* In: Line Status Register */ macro
|
D | pxa.c | 168 *status = serial_in(up, UART_LSR); in receive_chars() 260 lsr = serial_in(up, UART_LSR); in serial_pxa_irq() 277 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_pxa_tx_empty() 370 (void) serial_in(up, UART_LSR); in serial_pxa_startup() 396 (void) serial_in(up, UART_LSR); in serial_pxa_startup() 612 status = serial_in(up, UART_LSR); in wait_for_xmitr() 693 unsigned char lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char() 696 lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char()
|
D | nwpserial.c | 50 status = dcr_read(up->dcr_host, UART_LSR); in wait_for_bits() 88 while ((dcr_read(up->dcr_host, UART_LSR) & UART_LSR_THRE) == 0) in nwpserial_console_write() 151 } while (dcr_read(up->dcr_host, UART_LSR) & UART_LSR_DR); in nwpserial_interrupt() 301 ret = dcr_read(up->dcr_host, UART_LSR); in nwpserial_tx_empty()
|
D | vr41xx_siu.c | 196 lsr = siu_read(port, UART_LSR); in siu_tx_empty() 363 lsr = siu_read(port, UART_LSR); in receive_chars() 435 lsr = siu_read(port, UART_LSR); in siu_interrupt() 456 (void)siu_read(port, UART_LSR); in siu_startup() 461 if (siu_read(port, UART_LSR) == 0xff) in siu_startup() 479 (void)siu_read(port, UART_LSR); in siu_startup() 744 lsr = siu_read(port, UART_LSR); in wait_for_xmitr()
|
D | sunsu.c | 392 *status = serial_inp(up, UART_LSR); in receive_chars() 465 status = serial_inp(up, UART_LSR); in sunsu_serial_interrupt() 531 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars() 539 unsigned char status = serial_inp(up, UART_LSR); in sunsu_kbd_ms_interrupt() 556 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in sunsu_tx_empty() 660 (void) serial_inp(up, UART_LSR); in sunsu_startup() 671 (serial_inp(up, UART_LSR) == 0xff)) { in sunsu_startup() 721 (void) serial_inp(up, UART_LSR); in sunsu_startup() 998 lsr = serial_in(up, UART_LSR); in sunsu_serio_write() 1271 status = serial_in(up, UART_LSR); in wait_for_xmitr()
|
D | omap-serial.c | 600 lsr = serial_in(up, UART_LSR); in serial_omap_irq() 650 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_omap_tx_empty() 774 (void) serial_in(up, UART_LSR); in serial_omap_startup() 775 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_startup() 842 if (serial_in(up, UART_LSR) & UART_LSR_DR) in serial_omap_shutdown() 1199 status = serial_in(up, UART_LSR); in wait_for_xmitr() 1243 status = serial_in(up, UART_LSR); in serial_omap_poll_get_char() 1783 while (UART_LSR_THRE != (serial_in(up, UART_LSR) & in serial_omap_mdr1_errataset() 1789 serial_in(up, UART_LSR)); in serial_omap_mdr1_errataset()
|
D | serial-tegra.c | 363 unsigned long lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_fill_tx_fifo() 470 unsigned long lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_tx_empty() 517 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_handle_rx_pio() 725 tegra_uart_read(tup, UART_LSR)); in tegra_uart_isr() 790 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_hw_deinit() 812 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_hw_deinit()
|
D | m32r_sio.c | 277 while((serial_in(up, UART_LSR) & UART_EMPTY) != UART_EMPTY); in m32r_sio_start_tx() 376 *status = serial_in(up, UART_LSR); in receive_chars() 409 while (!(serial_in(up, UART_LSR) & UART_LSR_THRE)); in transmit_chars() 595 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in m32r_sio_tx_empty()
|
D | pch_uart.c | 347 "LSR: \t0x%02x\n", ioread8(priv->membase + UART_LSR)); in port_show_regs() 595 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read() 596 for (i = 0, lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read() 598 lsr = ioread8(priv->membase + UART_LSR)) { in pch_uart_hal_read() 626 return ioread8(priv->membase + UART_LSR); in pch_uart_hal_get_line_status() 1537 status = ioread8(up->membase + UART_LSR); in wait_for_xmitr() 1569 u8 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_get_poll_char()
|
D | of_serial.c | 38 status = p->serial_in(p, UART_LSR); in tegra_serial_handle_break()
|
/linux-4.1.27/arch/arm/include/debug/ |
D | omap2plus.S | 136 mov \rp, #(UART_LSR << ZOOM_PORT_SHIFT) 147 mov \rp, #(UART_LSR << OMAP_PORT_SHIFT) 158 mov \rp, #(UART_LSR << OMAP_PORT_SHIFT) 183 1001: ldrb \rd, [\rx] @ rx contains UART_LSR address
|
D | 8250.S | 42 1002: load \rd, [\rx, #UART_LSR << UART_SHIFT]
|
D | tegra.S | 183 1001: ldrb \rd, [\rx, #UART_LSR << UART_SHIFT]
|
/linux-4.1.27/arch/mips/ath79/ |
D | early_printk.c | 40 prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY); in prom_putchar_ar71xx() 42 prom_putchar_wait(base + UART_LSR * 4, BOTH_EMPTY, BOTH_EMPTY); in prom_putchar_ar71xx()
|
/linux-4.1.27/arch/mn10300/unit-asb2305/include/unit/ |
D | serial.h | 65 #define GDBPORT_SERIAL_LSR __SYSREG(SERIAL_PORT0_BASE_ADDRESS + UART_LSR * 4, u8) 78 #define TTYS0_LSR __SYSREG(SERIAL_PORT0_BASE_ADDRESS + UART_LSR * 4, u8)
|
/linux-4.1.27/arch/mn10300/unit-asb2303/include/unit/ |
D | serial.h | 74 #define GDBPORT_SERIAL_LSR __SYSREG(SERIAL_PORT0_BASE_ADDRESS + UART_LSR * 4, u8) 89 #define GDBPORT_SERIAL_LSR __SYSREG(SERIAL_PORT1_BASE_ADDRESS + UART_LSR * 4, u8)
|
/linux-4.1.27/arch/arm/mach-gemini/include/mach/ |
D | uncompress.h | 28 while (!(UART[UART_LSR] & UART_LSR_THRE)) in putc()
|
/linux-4.1.27/arch/arm/mach-iop13xx/include/mach/ |
D | uncompress.h | 10 while ((UART_BASE[UART_LSR] & TX_DONE) != TX_DONE) in putc()
|
/linux-4.1.27/arch/arm/mach-w90x900/include/mach/ |
D | uncompress.h | 34 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) in putc()
|
/linux-4.1.27/arch/mips/netlogic/common/ |
D | earlycons.c | 59 while ((nlm_read_reg(uartbase, UART_LSR) & UART_LSR_THRE) == 0) in prom_putchar()
|
/linux-4.1.27/arch/arm/mach-mmp/include/mach/ |
D | uncompress.h | 25 while (!(UART[UART_LSR] & UART_LSR_THRE)) in putc()
|
/linux-4.1.27/arch/arm/mach-iop33x/include/mach/ |
D | uncompress.h | 16 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) in putc()
|
/linux-4.1.27/arch/arm/mach-iop32x/include/mach/ |
D | uncompress.h | 16 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) in putc()
|
/linux-4.1.27/arch/arm/mach-ixp4xx/include/mach/ |
D | uncompress.h | 28 while ((uart_base[UART_LSR] & TX_DONE) != TX_DONE) in putc()
|
/linux-4.1.27/arch/mips/loongson/common/ |
D | early_printk.c | 36 while (((serial_in(uart_base, UART_LSR) & UART_LSR_THRE) == 0) && in prom_putchar()
|
/linux-4.1.27/arch/mips/mti-sead3/ |
D | sead3-console.c | 40 while ((serial_in(UART_LSR, base_addr) & UART_LSR_THRE) == 0) in prom_putchar()
|
/linux-4.1.27/arch/arm/mach-pxa/include/mach/ |
D | uncompress.h | 44 while (!(uart_read(UART_LSR) & UART_LSR_THRE)) in putc()
|
/linux-4.1.27/arch/mips/kernel/ |
D | early_printk_8250.c | 58 status = serial_in(UART_LSR); in prom_putchar()
|
/linux-4.1.27/arch/mips/jz4740/ |
D | prom.c | 64 lsr = readb(UART_REG(UART_LSR)); in prom_putchar()
|
/linux-4.1.27/arch/mips/boot/compressed/ |
D | uart-16550.c | 59 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
|
/linux-4.1.27/drivers/tty/serial/8250/ |
D | 8250_fsl.c | 49 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); in fsl8250_handle_irq()
|
D | 8250_early.c | 79 status = serial8250_early_in(port, UART_LSR); in wait_for_xmitr()
|
D | 8250_core.c | 775 for (count = 0; (serial_in(up, UART_LSR) & UART_LSR_DR) && in size_fifo() 1344 serial_in(up, UART_LSR); in autoconfig_irq() 1402 lsr = serial_in(up, UART_LSR); in serial8250_start_tx() 1539 lsr = serial_in(up, UART_LSR); in serial8250_rx_chars() 1577 if ((serial_port_in(port, UART_LSR) & BOTH_EMPTY) != in serial8250_tx_chars() 1639 status = serial_port_in(port, UART_LSR); in serial8250_handle_irq() 1901 lsr = serial_in(up, UART_LSR); in serial8250_backup_timeout() 1974 lsr = serial_port_in(port, UART_LSR); in serial8250_tx_empty() 2059 status = serial_in(up, UART_LSR); in wait_for_xmitr() 2098 lsr = serial_port_in(port, UART_LSR); in serial8250_get_poll_char() [all …]
|
D | 8250_em.c | 66 case UART_LSR: /* LSR @ 0x18 (+1) */ in serial8250_em_serial_in()
|
D | 8250_omap.c | 157 while (UART_LSR_THRE != (serial_in(up, UART_LSR) & in omap_8250_mdr1_errataset() 163 serial_in(up, UART_LSR)); in omap_8250_mdr1_errataset() 989 status = serial_port_in(port, UART_LSR); in omap_8250_dma_handle_irq()
|
/linux-4.1.27/drivers/staging/media/lirc/ |
D | lirc_serial.c | 414 while (!(sinp(UART_LSR) & UART_LSR_THRE)) in send_pulse_irdeo() 422 while (!(sinp(UART_LSR) & UART_LSR_TEMT)) in send_pulse_irdeo() 745 sinp(UART_LSR); in hardware_init_port() 754 sinp(UART_LSR); in hardware_init_port() 1024 sinp(UART_LSR); in lirc_serial_suspend()
|
D | lirc_sir.c | 460 (void) inb(io + UART_LSR); in sir_interrupt() 527 lsr = inb(io + UART_LSR); in sir_interrupt() 553 while (!(inb(io + UART_LSR) & UART_LSR_THRE)) in send_pulse()
|
/linux-4.1.27/arch/arm/mach-omap1/include/mach/ |
D | uncompress.h | 57 while (!(uart_base[UART_LSR << uart_shift] & UART_LSR_THRE)) in putc()
|
/linux-4.1.27/drivers/bluetooth/ |
D | dtl1_cs.c | 115 if (!(inb(iobase + UART_LSR) & UART_LSR_THRE)) in dtl1_write() 284 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in dtl1_receive() 310 lsr = inb(iobase + UART_LSR); in dtl1_interrupt()
|
D | btuart_cs.c | 116 if (!(inb(iobase + UART_LSR) & UART_LSR_THRE)) in btuart_write() 283 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in btuart_receive() 308 lsr = inb(iobase + UART_LSR); in btuart_interrupt()
|
/linux-4.1.27/arch/sh/include/asm/ |
D | smc37c93x.h | 63 #define UART_LSR 0xa /* Line Status Register */ macro
|
/linux-4.1.27/arch/x86/platform/ce4100/ |
D | ce4100.c | 75 lsr = mem_serial_in(p, UART_LSR); in ce4100_mem_serial_in()
|
/linux-4.1.27/arch/mn10300/unit-asb2364/include/unit/ |
D | serial.h | 71 #define GDBPORT_SERIAL_LSR __SYSREG(SERIAL_PORT0_BASE_ADDRESS + UART_LSR * 2, u8)
|
/linux-4.1.27/drivers/isdn/hisax/ |
D | elsa_ser.c | 157 if (serial_inp(cs, UART_LSR) == 0xff) { in mstartup() 187 (void)serial_inp(cs, UART_LSR); in mstartup() 330 *status = serial_inp(cs, UART_LSR); in receive_chars() 397 status = serial_inp(cs, UART_LSR); in rs_interrupt_elsa()
|
/linux-4.1.27/include/uapi/linux/ |
D | serial_reg.h | 131 #define UART_LSR 5 /* In: Line Status Register */ macro
|
/linux-4.1.27/drivers/net/irda/ |
D | ali-ircc.c | 819 lsr = inb(iobase+UART_LSR); in ali_ircc_sir_interrupt() 881 } while (inb(iobase+UART_LSR) & UART_LSR_DR); in ali_ircc_sir_receive() 916 while(!(inb(iobase+UART_LSR) & UART_LSR_TEMT)) in ali_ircc_sir_write_wakeup() 1058 inb(iobase+UART_LSR); in ali_ircc_sir_change_speed() 1289 if (!(inb(iobase+UART_LSR) & UART_LSR_THRE)) { in ali_ircc_sir_write() 2205 val = inb(iobase+UART_LSR); in FIR2SIR()
|
D | smsc-ircc2.c | 1500 } while (inb(iobase + UART_LSR) & UART_LSR_DR); in smsc_ircc_sir_receive() 1587 lsr = inb(iobase + UART_LSR); in smsc_ircc_interrupt_sir() 2024 if (!(inb(iobase + UART_LSR) & UART_LSR_THRE)) { in smsc_ircc_sir_write() 2122 while (count-- > 0 && !(inb(iobase + UART_LSR) & UART_LSR_TEMT)) in smsc_ircc_sir_wait_hw_transmitter_finish()
|
/linux-4.1.27/arch/mips/ar7/ |
D | prom.c | 266 while ((serial_in(UART_LSR) & UART_LSR_TEMT) == 0) in prom_putchar()
|
/linux-4.1.27/drivers/tty/ |
D | mxser.c | 899 if (inb(info->ioaddr + UART_LSR) == 0xff) { in mxser_activate() 911 (void) inb(info->ioaddr + UART_LSR); in mxser_activate() 935 (void) inb(info->ioaddr + UART_LSR); in mxser_activate() 1062 while (!(inb(info->ioaddr + UART_LSR) & UART_LSR_TEMT)) { in mxser_close_port() 1319 status = inb(info->ioaddr + UART_LSR); in mxser_get_lsr_info() 1759 lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_THRE; in mxser_ioctl() 2018 while (!((lsr = inb(info->ioaddr + UART_LSR)) & UART_LSR_TEMT)) { in mxser_wait_until_sent() 2145 *status = inb(port->ioaddr + UART_LSR); in mxser_receive_chars() 2262 status = inb(port->ioaddr + UART_LSR); in mxser_interrupt() 2269 status = inb(port->ioaddr + UART_LSR); in mxser_interrupt()
|
/linux-4.1.27/sound/drivers/ |
D | serial-u16550.c | 216 while ((status = inb(uart->base + UART_LSR)) & UART_LSR_DR) { in snd_uart16550_io_loop() 459 inb(uart->base + UART_LSR); /* Clear any pre-existing overrun indication */ in snd_uart16550_do_open() 622 if ((inb(uart->base + UART_LSR) & UART_LSR_THRE) != 0) { in snd_uart16550_output_byte()
|
/linux-4.1.27/drivers/mmc/card/ |
D | sdio_uart.c | 424 *status = sdio_in(port, UART_LSR); in sdio_uart_receive_chars() 539 lsr = sdio_in(port, UART_LSR); in sdio_uart_irq() 636 (void) sdio_in(port, UART_LSR); in sdio_uart_activate()
|
/linux-4.1.27/drivers/usb/serial/ |
D | ark3116.c | 378 priv->lsr = ark3116_read_reg(serial, UART_LSR, buf); in ark3116_open()
|
/linux-4.1.27/arch/blackfin/mach-bf533/include/mach/ |
D | cdefBF532.h | 500 #define bfin_read_UART_LSR() bfin_read16(UART_LSR) 501 #define bfin_write_UART_LSR(val) bfin_write16(UART_LSR,val)
|
/linux-4.1.27/arch/blackfin/mach-bf561/include/mach/ |
D | cdefBF561.h | 129 #define bfin_read_UART_LSR() bfin_read16(UART_LSR) 130 #define bfin_write_UART_LSR(val) bfin_write16(UART_LSR,val)
|