lsr 334 arch/arc/include/asm/entry-compact.h lsr \reg, \reg, 8 lsr 203 arch/arc/plat-eznps/include/plat/ctop.h lsr \reg, \reg, 4 lsr 33 arch/arm/include/asm/assembler.h #define lspull lsr lsr 36 arch/arm/include/asm/assembler.h #define get_byte_1 lsr #8 lsr 37 arch/arm/include/asm/assembler.h #define get_byte_2 lsr #16 lsr 38 arch/arm/include/asm/assembler.h #define get_byte_3 lsr #24 lsr 45 arch/arm/include/asm/assembler.h #define lspush lsr lsr 46 arch/arm/include/asm/assembler.h #define get_byte_0 lsr #24 lsr 47 arch/arm/include/asm/assembler.h #define get_byte_1 lsr #16 lsr 48 arch/arm/include/asm/assembler.h #define get_byte_2 lsr #8 lsr 206 arch/arm/include/asm/assembler.h ARM( mov \rd, sp, lsr #THREAD_SIZE_ORDER + PAGE_SHIFT ) lsr 208 arch/arm/include/asm/assembler.h THUMB( lsr \rd, \rd, #THREAD_SIZE_ORDER + PAGE_SHIFT ) lsr 13 arch/arm/lib/bitops.h mov r0, r0, lsr #5 lsr 38 arch/arm/lib/bitops.h mov r0, r0, lsr #5 lsr 67 arch/arm/lib/bitops.h mov r0, r0, lsr #5 lsr 94 arch/arm/lib/bitops.h mov r0, r0, lsr #5 lsr 113 arch/arm/mach-tegra/sleep.h mov \tmp1, \tmp1, lsr #8 lsr 567 arch/arm64/include/asm/assembler.h orr \ttbr, \phys, \phys, lsr #46 lsr 580 arch/arm64/include/asm/assembler.h orr \pte, \phys, \phys, lsr #36 lsr 123 arch/mips/include/asm/netlogic/xlp-hal/uart.h uint32_t lsr; lsr 126 arch/mips/include/asm/netlogic/xlp-hal/uart.h lsr = nlm_read_uart_reg(base, UART_LINE_STS); lsr 127 arch/mips/include/asm/netlogic/xlp-hal/uart.h if (lsr & 0x20) lsr 137 arch/mips/include/asm/netlogic/xlp-hal/uart.h int data, lsr; lsr 140 arch/mips/include/asm/netlogic/xlp-hal/uart.h lsr = nlm_read_uart_reg(base, UART_LINE_STS); lsr 141 arch/mips/include/asm/netlogic/xlp-hal/uart.h if (lsr & 0x80) { /* parity/frame/break-error - push a zero */ lsr 145 arch/mips/include/asm/netlogic/xlp-hal/uart.h if (lsr & 0x01) { /* Rx data */ lsr 36 arch/powerpc/platforms/embedded6xx/ls_uart.c char lsr = in_8(avr_addr + UART_LSR); lsr 38 arch/powerpc/platforms/embedded6xx/ls_uart.c if (lsr & (UART_LSR_THRE | UART_LSR_TEMT)) { lsr 77 arch/sh/include/asm/smc37c93x.h volatile __u16 lsr; lsr 54 arch/x86/platform/ce4100/ce4100.c unsigned int ret, ier, lsr; lsr 64 arch/x86/platform/ce4100/ce4100.c lsr = mem_serial_in(p, UART_LSR); lsr 67 arch/x86/platform/ce4100/ce4100.c if (lsr & (UART_LSR_THRE | UART_LSR_TEMT)) lsr 295 drivers/bluetooth/dtl1_cs.c int iir, lsr; lsr 311 drivers/bluetooth/dtl1_cs.c lsr = inb(iobase + UART_LSR); lsr 322 drivers/bluetooth/dtl1_cs.c if (lsr & UART_LSR_THRE) { lsr 158 drivers/media/rc/sir_ir.c int iir, lsr; lsr 230 drivers/media/rc/sir_ir.c lsr = inb(io + UART_LSR); lsr 231 drivers/media/rc/sir_ir.c } while (lsr & UART_LSR_DR); /* data ready */ lsr 515 drivers/mmc/core/sdio_uart.c unsigned int iir, lsr; lsr 533 drivers/mmc/core/sdio_uart.c lsr = sdio_in(port, UART_LSR); lsr 534 drivers/mmc/core/sdio_uart.c if (lsr & UART_LSR_DR) lsr 535 drivers/mmc/core/sdio_uart.c sdio_uart_receive_chars(port, &lsr); lsr 537 drivers/mmc/core/sdio_uart.c if (lsr & UART_LSR_THRE) lsr 746 drivers/net/hamradio/yam.c unsigned char lsr = inb(LSR(dev->base_addr)); lsr 751 drivers/net/hamradio/yam.c if (lsr & LSR_OE) lsr 765 drivers/net/hamradio/yam.c if (lsr & LSR_RXC) { lsr 531 drivers/staging/fwserial/fwserial.c unsigned int lsr; lsr 543 drivers/staging/fwserial/fwserial.c lsr = (port->mstatus >> 24) & ~UART_LSR_BI; lsr 546 drivers/staging/fwserial/fwserial.c lsr |= UART_LSR_OE; lsr 548 drivers/staging/fwserial/fwserial.c if (lsr & UART_LSR_OE) lsr 551 drivers/staging/fwserial/fwserial.c lsr &= port->status_mask; lsr 552 drivers/staging/fwserial/fwserial.c if (lsr & ~port->ignore_mask & UART_LSR_OE) { lsr 560 drivers/staging/fwserial/fwserial.c if (lsr & port->ignore_mask & ~UART_LSR_OE) { lsr 268 drivers/staging/speakup/serialio.c unsigned char lsr; lsr 270 drivers/staging/speakup/serialio.c lsr = inb_p(speakup_info.port_tts + UART_LSR); lsr 271 drivers/staging/speakup/serialio.c if (!(lsr & UART_LSR_DR)) lsr 1380 drivers/tty/amiserial.c int lsr; lsr 1419 drivers/tty/amiserial.c while(!((lsr = custom.serdatr) & SDR_TSRE)) { lsr 1421 drivers/tty/amiserial.c printk("serdatr = %d (jiff=%lu)...", lsr, jiffies); lsr 1432 drivers/tty/amiserial.c printk("lsr = %d (jiff=%lu)...done\n", lsr, jiffies); lsr 1753 drivers/tty/mxser.c int len, lsr; lsr 1757 drivers/tty/mxser.c lsr = inb(info->ioaddr + UART_LSR) & UART_LSR_THRE; lsr 1759 drivers/tty/mxser.c len += (lsr ? 0 : 1); lsr 1978 drivers/tty/mxser.c int lsr; lsr 2014 drivers/tty/mxser.c while (!((lsr = inb(info->ioaddr + UART_LSR)) & UART_LSR_TEMT)) { lsr 255 drivers/tty/serial/8250/8250_aspeed_vuart.c unsigned int iir, lsr; lsr 266 drivers/tty/serial/8250/8250_aspeed_vuart.c lsr = serial_port_in(port, UART_LSR); lsr 268 drivers/tty/serial/8250/8250_aspeed_vuart.c if (lsr & (UART_LSR_DR | UART_LSR_BI)) { lsr 286 drivers/tty/serial/8250/8250_aspeed_vuart.c serial8250_read_char(up, lsr); lsr 287 drivers/tty/serial/8250/8250_aspeed_vuart.c lsr = serial_in(up, UART_LSR); lsr 290 drivers/tty/serial/8250/8250_aspeed_vuart.c } while (lsr & (UART_LSR_DR | UART_LSR_BI)); lsr 297 drivers/tty/serial/8250/8250_aspeed_vuart.c if (lsr & UART_LSR_THRE) lsr 268 drivers/tty/serial/8250/8250_core.c unsigned int iir, ier = 0, lsr; lsr 290 drivers/tty/serial/8250/8250_core.c lsr = serial_in(up, UART_LSR); lsr 291 drivers/tty/serial/8250/8250_core.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; lsr 294 drivers/tty/serial/8250/8250_core.c (lsr & UART_LSR_THRE)) { lsr 115 drivers/tty/serial/8250/8250_dw.c unsigned int lsr; lsr 118 drivers/tty/serial/8250/8250_dw.c lsr = readb (p->membase + (UART_LSR << p->regshift)); lsr 119 drivers/tty/serial/8250/8250_dw.c if (lsr & UART_LSR_TEMT) lsr 179 drivers/tty/serial/8250/8250_exar.c unsigned char lsr; lsr 186 drivers/tty/serial/8250/8250_exar.c lsr = serial_in(up, UART_LSR); lsr 187 drivers/tty/serial/8250/8250_exar.c if (lsr & (UART_LSR_TEMT | UART_LSR_THRE)) lsr 29 drivers/tty/serial/8250/8250_fsl.c unsigned char lsr, orig_lsr; lsr 50 drivers/tty/serial/8250/8250_fsl.c lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); lsr 53 drivers/tty/serial/8250/8250_fsl.c if ((lsr & (UART_LSR_DR | UART_LSR_BI)) && lsr 55 drivers/tty/serial/8250/8250_fsl.c lsr = serial8250_rx_chars(up, lsr); lsr 78 drivers/tty/serial/8250/8250_fsl.c if (lsr & UART_LSR_THRE) lsr 57 drivers/tty/serial/8250/8250_ingenic.c uint8_t lsr; lsr 60 drivers/tty/serial/8250/8250_ingenic.c lsr = early_in(port, UART_LSR); lsr 61 drivers/tty/serial/8250/8250_ingenic.c } while ((lsr & UART_LSR_TEMT) == 0); lsr 1471 drivers/tty/serial/8250/8250_port.c unsigned char lsr = serial_in(p, UART_LSR); lsr 1478 drivers/tty/serial/8250/8250_port.c if ((lsr & BOTH_EMPTY) != BOTH_EMPTY) lsr 1514 drivers/tty/serial/8250/8250_port.c unsigned char lsr; lsr 1516 drivers/tty/serial/8250/8250_port.c lsr = serial_in(up, UART_LSR); lsr 1517 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; lsr 1518 drivers/tty/serial/8250/8250_port.c if (lsr & UART_LSR_THRE) lsr 1639 drivers/tty/serial/8250/8250_port.c void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr) lsr 1645 drivers/tty/serial/8250/8250_port.c if (likely(lsr & UART_LSR_DR)) lsr 1659 drivers/tty/serial/8250/8250_port.c lsr |= up->lsr_saved_flags; lsr 1662 drivers/tty/serial/8250/8250_port.c if (unlikely(lsr & UART_LSR_BRK_ERROR_BITS)) { lsr 1663 drivers/tty/serial/8250/8250_port.c if (lsr & UART_LSR_BI) { lsr 1664 drivers/tty/serial/8250/8250_port.c lsr &= ~(UART_LSR_FE | UART_LSR_PE); lsr 1674 drivers/tty/serial/8250/8250_port.c } else if (lsr & UART_LSR_PE) lsr 1676 drivers/tty/serial/8250/8250_port.c else if (lsr & UART_LSR_FE) lsr 1678 drivers/tty/serial/8250/8250_port.c if (lsr & UART_LSR_OE) lsr 1684 drivers/tty/serial/8250/8250_port.c lsr &= port->read_status_mask; lsr 1686 drivers/tty/serial/8250/8250_port.c if (lsr & UART_LSR_BI) { lsr 1689 drivers/tty/serial/8250/8250_port.c } else if (lsr & UART_LSR_PE) lsr 1691 drivers/tty/serial/8250/8250_port.c else if (lsr & UART_LSR_FE) lsr 1697 drivers/tty/serial/8250/8250_port.c uart_insert_char(port, lsr, UART_LSR_OE, ch, flag); lsr 1706 drivers/tty/serial/8250/8250_port.c unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr) lsr 1712 drivers/tty/serial/8250/8250_port.c serial8250_read_char(up, lsr); lsr 1715 drivers/tty/serial/8250/8250_port.c lsr = serial_in(up, UART_LSR); lsr 1716 drivers/tty/serial/8250/8250_port.c } while (lsr & (UART_LSR_DR | UART_LSR_BI)); lsr 1719 drivers/tty/serial/8250/8250_port.c return lsr; lsr 1884 drivers/tty/serial/8250/8250_port.c unsigned int lsr; lsr 1889 drivers/tty/serial/8250/8250_port.c lsr = serial_port_in(port, UART_LSR); lsr 1890 drivers/tty/serial/8250/8250_port.c up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; lsr 1895 drivers/tty/serial/8250/8250_port.c return (lsr & BOTH_EMPTY) == BOTH_EMPTY ? TIOCSER_TEMT : 0; lsr 2003 drivers/tty/serial/8250/8250_port.c unsigned char lsr; lsr 2008 drivers/tty/serial/8250/8250_port.c lsr = serial_port_in(port, UART_LSR); lsr 2010 drivers/tty/serial/8250/8250_port.c if (!(lsr & UART_LSR_DR)) { lsr 2059 drivers/tty/serial/8250/8250_port.c unsigned char lsr, iir; lsr 2279 drivers/tty/serial/8250/8250_port.c lsr = serial_port_in(port, UART_LSR); lsr 2283 drivers/tty/serial/8250/8250_port.c if (lsr & UART_LSR_TEMT && iir & UART_IIR_NO_INT) { lsr 265 drivers/tty/serial/jsm/jsm.h u8 lsr; /* WR LSR - Line Status Reg */ lsr 320 drivers/tty/serial/jsm/jsm.h u8 lsr; /* WR LSR - Line Status Reg */ lsr 115 drivers/tty/serial/jsm/jsm_cls.c writeb(0, &ch->ch_cls_uart->lsr); lsr 241 drivers/tty/serial/jsm/jsm_cls.c writeb(0, &ch->ch_cls_uart->lsr); lsr 389 drivers/tty/serial/jsm/jsm_cls.c linestatus = readb(&ch->ch_cls_uart->lsr); lsr 891 drivers/tty/serial/jsm/jsm_cls.c readb(&ch->ch_cls_uart->lsr); lsr 913 drivers/tty/serial/jsm/jsm_cls.c u8 lsr = readb(&ch->ch_cls_uart->lsr); lsr 916 drivers/tty/serial/jsm/jsm_cls.c if (!(lsr & UART_LSR_TEMT)) lsr 333 drivers/tty/serial/jsm/jsm_neo.c linestatus = readb(&ch->ch_neo_uart->lsr); lsr 397 drivers/tty/serial/jsm/jsm_neo.c linestatus |= readb(&ch->ch_neo_uart->lsr); lsr 500 drivers/tty/serial/jsm/jsm_neo.c u8 lsrbits = readb(&ch->ch_neo_uart->lsr); lsr 838 drivers/tty/serial/jsm/jsm_neo.c linestatus = readb(&ch->ch_neo_uart->lsr); lsr 1308 drivers/tty/serial/jsm/jsm_neo.c readb(&ch->ch_neo_uart->lsr); lsr 1332 drivers/tty/serial/jsm/jsm_neo.c u8 lsr = readb(&ch->ch_neo_uart->lsr); lsr 1335 drivers/tty/serial/jsm/jsm_neo.c ch->ch_cached_lsr |= lsr; lsr 1338 drivers/tty/serial/jsm/jsm_neo.c if (!(lsr & UART_LSR_TEMT)) lsr 803 drivers/tty/serial/max310x.c unsigned int ists, lsr, rxlen; lsr 814 drivers/tty/serial/max310x.c lsr = max310x_port_read(port, MAX310X_LSR_IRQSTS_REG); lsr 816 drivers/tty/serial/max310x.c !!(lsr & MAX310X_LSR_CTS_BIT)); lsr 198 drivers/tty/serial/men_z135_uart.c u8 lsr; lsr 200 drivers/tty/serial/men_z135_uart.c lsr = (uart->stat_reg >> 16) & 0xff; lsr 202 drivers/tty/serial/men_z135_uart.c if (lsr & MEN_Z135_LSR_OE) lsr 204 drivers/tty/serial/men_z135_uart.c if (lsr & MEN_Z135_LSR_PE) lsr 206 drivers/tty/serial/men_z135_uart.c if (lsr & MEN_Z135_LSR_FE) lsr 208 drivers/tty/serial/men_z135_uart.c if (lsr & MEN_Z135_LSR_BI) { lsr 367 drivers/tty/serial/omap-serial.c static void transmit_chars(struct uart_omap_port *up, unsigned int lsr) lsr 493 drivers/tty/serial/omap-serial.c static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr) lsr 498 drivers/tty/serial/omap-serial.c if (likely(lsr & UART_LSR_DR)) lsr 504 drivers/tty/serial/omap-serial.c if (lsr & UART_LSR_BI) { lsr 506 drivers/tty/serial/omap-serial.c lsr &= ~(UART_LSR_FE | UART_LSR_PE); lsr 519 drivers/tty/serial/omap-serial.c if (lsr & UART_LSR_PE) { lsr 524 drivers/tty/serial/omap-serial.c if (lsr & UART_LSR_FE) { lsr 529 drivers/tty/serial/omap-serial.c if (lsr & UART_LSR_OE) lsr 535 drivers/tty/serial/omap-serial.c lsr |= up->lsr_break_flag; lsr 538 drivers/tty/serial/omap-serial.c uart_insert_char(&up->port, lsr, UART_LSR_OE, 0, flag); lsr 541 drivers/tty/serial/omap-serial.c static void serial_omap_rdi(struct uart_omap_port *up, unsigned int lsr) lsr 546 drivers/tty/serial/omap-serial.c if (!(lsr & UART_LSR_DR)) lsr 556 drivers/tty/serial/omap-serial.c uart_insert_char(&up->port, lsr, UART_LSR_OE, ch, flag); lsr 567 drivers/tty/serial/omap-serial.c unsigned int iir, lsr; lsr 581 drivers/tty/serial/omap-serial.c lsr = serial_in(up, UART_LSR); lsr 591 drivers/tty/serial/omap-serial.c transmit_chars(up, lsr); lsr 596 drivers/tty/serial/omap-serial.c serial_omap_rdi(up, lsr); lsr 599 drivers/tty/serial/omap-serial.c serial_omap_rlsi(up, lsr); lsr 576 drivers/tty/serial/pch_uart.c u8 rbr, lsr; lsr 579 drivers/tty/serial/pch_uart.c lsr = ioread8(priv->membase + UART_LSR); lsr 580 drivers/tty/serial/pch_uart.c for (i = 0, lsr = ioread8(priv->membase + UART_LSR); lsr 581 drivers/tty/serial/pch_uart.c i < rx_size && lsr & (UART_LSR_DR | UART_LSR_BI); lsr 582 drivers/tty/serial/pch_uart.c lsr = ioread8(priv->membase + UART_LSR)) { lsr 585 drivers/tty/serial/pch_uart.c if (lsr & UART_LSR_BI) { lsr 1049 drivers/tty/serial/pch_uart.c static void pch_uart_err_ir(struct eg20t_port *priv, unsigned int lsr) lsr 1056 drivers/tty/serial/pch_uart.c if (lsr & PCH_UART_LSR_ERR) lsr 1059 drivers/tty/serial/pch_uart.c if (lsr & UART_LSR_FE) { lsr 1064 drivers/tty/serial/pch_uart.c if (lsr & UART_LSR_PE) { lsr 1069 drivers/tty/serial/pch_uart.c if (lsr & UART_LSR_OE) { lsr 1086 drivers/tty/serial/pch_uart.c u8 lsr; lsr 1101 drivers/tty/serial/pch_uart.c lsr = pch_uart_hal_get_line_status(priv); lsr 1102 drivers/tty/serial/pch_uart.c if (lsr & (PCH_UART_LSR_ERR | UART_LSR_FE | lsr 1104 drivers/tty/serial/pch_uart.c pch_uart_err_ir(priv, lsr); lsr 1551 drivers/tty/serial/pch_uart.c u8 lsr = ioread8(priv->membase + UART_LSR); lsr 1553 drivers/tty/serial/pch_uart.c if (!(lsr & UART_LSR_DR)) lsr 249 drivers/tty/serial/pxa.c unsigned int iir, lsr; lsr 255 drivers/tty/serial/pxa.c lsr = serial_in(up, UART_LSR); lsr 256 drivers/tty/serial/pxa.c if (lsr & UART_LSR_DR) lsr 257 drivers/tty/serial/pxa.c receive_chars(up, &lsr); lsr 259 drivers/tty/serial/pxa.c if (lsr & UART_LSR_THRE) lsr 688 drivers/tty/serial/pxa.c unsigned char lsr = serial_in(up, UART_LSR); lsr 690 drivers/tty/serial/pxa.c while (!(lsr & UART_LSR_DR)) lsr 691 drivers/tty/serial/pxa.c lsr = serial_in(up, UART_LSR); lsr 559 drivers/tty/serial/sc16is7xx.c unsigned int lsr = 0, ch, flag, bytes_read, i; lsr 574 drivers/tty/serial/sc16is7xx.c lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); lsr 575 drivers/tty/serial/sc16is7xx.c if (!(lsr & SC16IS7XX_LSR_FIFOE_BIT)) lsr 578 drivers/tty/serial/sc16is7xx.c lsr = 0; lsr 588 drivers/tty/serial/sc16is7xx.c lsr &= SC16IS7XX_LSR_BRK_ERROR_MASK; lsr 593 drivers/tty/serial/sc16is7xx.c if (unlikely(lsr)) { lsr 594 drivers/tty/serial/sc16is7xx.c if (lsr & SC16IS7XX_LSR_BI_BIT) { lsr 598 drivers/tty/serial/sc16is7xx.c } else if (lsr & SC16IS7XX_LSR_PE_BIT) lsr 600 drivers/tty/serial/sc16is7xx.c else if (lsr & SC16IS7XX_LSR_FE_BIT) lsr 602 drivers/tty/serial/sc16is7xx.c else if (lsr & SC16IS7XX_LSR_OE_BIT) lsr 605 drivers/tty/serial/sc16is7xx.c lsr &= port->read_status_mask; lsr 606 drivers/tty/serial/sc16is7xx.c if (lsr & SC16IS7XX_LSR_BI_BIT) lsr 608 drivers/tty/serial/sc16is7xx.c else if (lsr & SC16IS7XX_LSR_PE_BIT) lsr 610 drivers/tty/serial/sc16is7xx.c else if (lsr & SC16IS7XX_LSR_FE_BIT) lsr 612 drivers/tty/serial/sc16is7xx.c else if (lsr & SC16IS7XX_LSR_OE_BIT) lsr 621 drivers/tty/serial/sc16is7xx.c if (lsr & port->ignore_status_mask) lsr 624 drivers/tty/serial/sc16is7xx.c uart_insert_char(port, lsr, SC16IS7XX_LSR_OE_BIT, ch, lsr 835 drivers/tty/serial/sc16is7xx.c unsigned int lsr; lsr 837 drivers/tty/serial/sc16is7xx.c lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); lsr 839 drivers/tty/serial/sc16is7xx.c return (lsr & SC16IS7XX_LSR_TEMT_BIT) ? TIOCSER_TEMT : 0; lsr 303 drivers/tty/serial/serial-tegra.c unsigned int lsr, tmout = 10000; lsr 334 drivers/tty/serial/serial-tegra.c lsr = tegra_uart_read(tup, UART_LSR); lsr 335 drivers/tty/serial/serial-tegra.c if ((lsr | UART_LSR_TEMT) && !(lsr & UART_LSR_DR)) lsr 432 drivers/tty/serial/serial-tegra.c unsigned long lsr) lsr 436 drivers/tty/serial/serial-tegra.c if (unlikely(lsr & TEGRA_UART_LSR_ANY)) { lsr 437 drivers/tty/serial/serial-tegra.c if (lsr & UART_LSR_OE) { lsr 442 drivers/tty/serial/serial-tegra.c } else if (lsr & UART_LSR_PE) { lsr 447 drivers/tty/serial/serial-tegra.c } else if (lsr & UART_LSR_FE) { lsr 451 drivers/tty/serial/serial-tegra.c } else if (lsr & UART_LSR_BI) { lsr 456 drivers/tty/serial/serial-tegra.c if (!(lsr & UART_LSR_DR) && (lsr & UART_LSR_FIFOE)) lsr 464 drivers/tty/serial/serial-tegra.c uart_insert_char(&tup->uport, lsr, UART_LSR_OE, 0, flag); lsr 488 drivers/tty/serial/serial-tegra.c unsigned long lsr = tegra_uart_read(tup, UART_LSR); lsr 489 drivers/tty/serial/serial-tegra.c if ((lsr & TEGRA_UART_LSR_TXFIFO_FULL)) lsr 598 drivers/tty/serial/serial-tegra.c unsigned long lsr = tegra_uart_read(tup, UART_LSR); lsr 599 drivers/tty/serial/serial-tegra.c if ((lsr & TX_EMPTY_STATUS) == TX_EMPTY_STATUS) lsr 640 drivers/tty/serial/serial-tegra.c unsigned long lsr = 0; lsr 643 drivers/tty/serial/serial-tegra.c lsr = tegra_uart_read(tup, UART_LSR); lsr 644 drivers/tty/serial/serial-tegra.c if (!(lsr & UART_LSR_DR)) lsr 647 drivers/tty/serial/serial-tegra.c flag = tegra_uart_decode_rx_error(tup, lsr); lsr 921 drivers/tty/serial/serial-tegra.c unsigned long lsr; lsr 928 drivers/tty/serial/serial-tegra.c lsr = tegra_uart_read(tup, UART_LSR); lsr 929 drivers/tty/serial/serial-tegra.c if ((lsr & UART_LSR_TEMT) != UART_LSR_TEMT) { lsr 937 drivers/tty/serial/serial-tegra.c while ((lsr & UART_LSR_TEMT) != UART_LSR_TEMT) { lsr 950 drivers/tty/serial/serial-tegra.c lsr = tegra_uart_read(tup, UART_LSR); lsr 569 drivers/tty/serial/sprd_serial.c unsigned int *lsr) lsr 574 drivers/tty/serial/sprd_serial.c if (*lsr & SPRD_LSR_BI) { lsr 575 drivers/tty/serial/sprd_serial.c *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); lsr 580 drivers/tty/serial/sprd_serial.c } else if (*lsr & SPRD_LSR_PE) lsr 582 drivers/tty/serial/sprd_serial.c else if (*lsr & SPRD_LSR_FE) lsr 584 drivers/tty/serial/sprd_serial.c if (*lsr & SPRD_LSR_OE) lsr 588 drivers/tty/serial/sprd_serial.c *lsr &= port->read_status_mask; lsr 589 drivers/tty/serial/sprd_serial.c if (*lsr & SPRD_LSR_BI) lsr 591 drivers/tty/serial/sprd_serial.c else if (*lsr & SPRD_LSR_PE) lsr 593 drivers/tty/serial/sprd_serial.c else if (*lsr & SPRD_LSR_FE) lsr 604 drivers/tty/serial/sprd_serial.c unsigned int ch, flag, lsr, max_count = SPRD_TIMEOUT; lsr 613 drivers/tty/serial/sprd_serial.c lsr = serial_in(port, SPRD_LSR); lsr 618 drivers/tty/serial/sprd_serial.c if (lsr & (SPRD_LSR_BI | SPRD_LSR_PE | lsr 620 drivers/tty/serial/sprd_serial.c if (handle_lsr_errors(port, &flag, &lsr)) lsr 625 drivers/tty/serial/sprd_serial.c uart_insert_char(port, lsr, SPRD_LSR_OE, ch, flag); lsr 994 drivers/tty/serial/sunsu.c int lsr; lsr 999 drivers/tty/serial/sunsu.c lsr = serial_in(up, UART_LSR); lsr 1000 drivers/tty/serial/sunsu.c } while (!(lsr & UART_LSR_THRE)); lsr 181 drivers/tty/serial/vr41xx_siu.c uint8_t lsr; lsr 183 drivers/tty/serial/vr41xx_siu.c lsr = siu_read(port, UART_LSR); lsr 184 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_TEMT) lsr 303 drivers/tty/serial/vr41xx_siu.c uint8_t lsr, ch; lsr 307 drivers/tty/serial/vr41xx_siu.c lsr = *status; lsr 315 drivers/tty/serial/vr41xx_siu.c lsr |= lsr_break_flag[port->line]; lsr 318 drivers/tty/serial/vr41xx_siu.c if (unlikely(lsr & (UART_LSR_BI | UART_LSR_FE | lsr 320 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_BI) { lsr 321 drivers/tty/serial/vr41xx_siu.c lsr &= ~(UART_LSR_FE | UART_LSR_PE); lsr 328 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_FE) lsr 330 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_PE) lsr 332 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_OE) lsr 335 drivers/tty/serial/vr41xx_siu.c lsr &= port->read_status_mask; lsr 336 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_BI) lsr 338 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_FE) lsr 340 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_PE) lsr 347 drivers/tty/serial/vr41xx_siu.c uart_insert_char(port, lsr, UART_LSR_OE, ch, flag); lsr 350 drivers/tty/serial/vr41xx_siu.c lsr = siu_read(port, UART_LSR); lsr 351 drivers/tty/serial/vr41xx_siu.c } while ((lsr & UART_LSR_DR) && (max_count-- > 0)); lsr 355 drivers/tty/serial/vr41xx_siu.c *status = lsr; lsr 414 drivers/tty/serial/vr41xx_siu.c uint8_t iir, lsr; lsr 422 drivers/tty/serial/vr41xx_siu.c lsr = siu_read(port, UART_LSR); lsr 423 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_DR) lsr 424 drivers/tty/serial/vr41xx_siu.c receive_chars(port, &lsr); lsr 428 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_THRE) lsr 728 drivers/tty/serial/vr41xx_siu.c uint8_t lsr, msr; lsr 731 drivers/tty/serial/vr41xx_siu.c lsr = siu_read(port, UART_LSR); lsr 732 drivers/tty/serial/vr41xx_siu.c if (lsr & UART_LSR_BI) lsr 735 drivers/tty/serial/vr41xx_siu.c if ((lsr & BOTH_EMPTY) == BOTH_EMPTY) lsr 74 drivers/usb/serial/ark3116.c __u32 lsr; /* line status register value */ lsr 359 drivers/usb/serial/ark3116.c priv->lsr = *buf; lsr 505 drivers/usb/serial/ark3116.c static void ark3116_update_lsr(struct usb_serial_port *port, __u8 lsr) lsr 512 drivers/usb/serial/ark3116.c priv->lsr |= lsr; lsr 515 drivers/usb/serial/ark3116.c if (lsr&UART_LSR_BRK_ERROR_BITS) { lsr 516 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_BI) lsr 518 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_FE) lsr 520 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_PE) lsr 522 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_OE) lsr 597 drivers/usb/serial/ark3116.c __u32 lsr; lsr 601 drivers/usb/serial/ark3116.c lsr = priv->lsr; lsr 602 drivers/usb/serial/ark3116.c priv->lsr &= ~UART_LSR_BRK_ERROR_BITS; lsr 608 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_BRK_ERROR_BITS) { lsr 609 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_BI) lsr 611 drivers/usb/serial/ark3116.c else if (lsr & UART_LSR_PE) lsr 613 drivers/usb/serial/ark3116.c else if (lsr & UART_LSR_FE) lsr 617 drivers/usb/serial/ark3116.c if (lsr & UART_LSR_OE) lsr 332 drivers/usb/serial/f81232.c u8 lsr; lsr 345 drivers/usb/serial/f81232.c lsr = data[i]; lsr 347 drivers/usb/serial/f81232.c if (lsr & UART_LSR_BRK_ERROR_BITS) { lsr 348 drivers/usb/serial/f81232.c if (lsr & UART_LSR_BI) { lsr 352 drivers/usb/serial/f81232.c } else if (lsr & UART_LSR_PE) { lsr 355 drivers/usb/serial/f81232.c } else if (lsr & UART_LSR_FE) { lsr 360 drivers/usb/serial/f81232.c if (lsr & UART_LSR_OE) { lsr 765 drivers/usb/serial/f81534.c u8 lsr; lsr 802 drivers/usb/serial/f81534.c F81534_LINE_STATUS_REG, &lsr); lsr 811 drivers/usb/serial/f81534.c if ((lsr & UART_LSR_BI) == UART_LSR_BI) lsr 1169 drivers/usb/serial/f81534.c u8 lsr; lsr 1217 drivers/usb/serial/f81534.c lsr = data[i + 1]; lsr 1219 drivers/usb/serial/f81534.c if (lsr & UART_LSR_BRK_ERROR_BITS) { lsr 1220 drivers/usb/serial/f81534.c if (lsr & UART_LSR_BI) { lsr 1224 drivers/usb/serial/f81534.c } else if (lsr & UART_LSR_PE) { lsr 1227 drivers/usb/serial/f81534.c } else if (lsr & UART_LSR_FE) { lsr 1232 drivers/usb/serial/f81534.c if (lsr & UART_LSR_OE) { lsr 308 drivers/usb/serial/io_edgeport.c __u8 lsr, __u8 data); lsr 2036 drivers/usb/serial/io_edgeport.c __u8 lsr, __u8 data) lsr 2038 drivers/usb/serial/io_edgeport.c __u8 newLsr = (__u8) (lsr & (__u8) lsr 2042 drivers/usb/serial/io_edgeport.c edge_port->shadowLSR = lsr; lsr 529 drivers/usb/serial/io_ti.c __u8 *lsr; lsr 540 drivers/usb/serial/io_ti.c lsr = kmalloc(1, GFP_KERNEL); lsr 541 drivers/usb/serial/io_ti.c if (!lsr) { lsr 555 drivers/usb/serial/io_ti.c port->uart_base + UMPMEM_OFFS_UART_LSR, 1, lsr); lsr 559 drivers/usb/serial/io_ti.c dev_dbg(&port->port->dev, "%s - LSR = 0x%X\n", __func__, *lsr); lsr 565 drivers/usb/serial/io_ti.c if ((*lsr & UMP_UART_LSR_TX_MASK) == 0) lsr 572 drivers/usb/serial/io_ti.c kfree(lsr); lsr 1537 drivers/usb/serial/io_ti.c __u8 lsr = 0; lsr 1541 drivers/usb/serial/io_ti.c lsr |= flagUart; lsr 1552 drivers/usb/serial/io_ti.c return lsr; lsr 1591 drivers/usb/serial/io_ti.c __u8 lsr, __u8 data) lsr 1594 drivers/usb/serial/io_ti.c __u8 new_lsr = (__u8)(lsr & (__u8)(LSR_OVER_ERR | LSR_PAR_ERR | lsr 1599 drivers/usb/serial/io_ti.c edge_port->shadow_lsr = lsr; lsr 1635 drivers/usb/serial/io_ti.c __u8 lsr; lsr 1687 drivers/usb/serial/io_ti.c lsr = map_line_status(data[1]); lsr 1688 drivers/usb/serial/io_ti.c if (lsr & UMP_UART_LSR_DATA_MASK) { lsr 1693 drivers/usb/serial/io_ti.c __func__, port_number, lsr); lsr 1695 drivers/usb/serial/io_ti.c edge_port->lsr_mask = lsr; lsr 1698 drivers/usb/serial/io_ti.c __func__, port_number, lsr); lsr 1699 drivers/usb/serial/io_ti.c handle_new_lsr(edge_port, 0, lsr, 0); lsr 458 drivers/usb/serial/ssu100.c static void ssu100_update_lsr(struct usb_serial_port *port, u8 lsr, lsr 465 drivers/usb/serial/ssu100.c priv->shadowLSR = lsr; lsr 469 drivers/usb/serial/ssu100.c if (lsr & UART_LSR_BRK_ERROR_BITS) { lsr 472 drivers/usb/serial/ssu100.c if (lsr & UART_LSR_BI) { lsr 477 drivers/usb/serial/ssu100.c if (lsr & UART_LSR_PE) { lsr 482 drivers/usb/serial/ssu100.c if (lsr & UART_LSR_FE) { lsr 487 drivers/usb/serial/ssu100.c if (lsr & UART_LSR_OE) { lsr 330 drivers/usb/serial/ti_usb_3410_5052.c static int ti_get_lsr(struct ti_port *tport, u8 *lsr); lsr 867 drivers/usb/serial/ti_usb_3410_5052.c u8 lsr; lsr 869 drivers/usb/serial/ti_usb_3410_5052.c ret = ti_get_lsr(tport, &lsr); lsr 870 drivers/usb/serial/ti_usb_3410_5052.c if (!ret && !(lsr & TI_LSR_TX_EMPTY)) lsr 1366 drivers/usb/serial/ti_usb_3410_5052.c static int ti_get_lsr(struct ti_port *tport, u8 *lsr) lsr 1390 drivers/usb/serial/ti_usb_3410_5052.c *lsr = data->bLSR; lsr 169 include/linux/serial_8250.h unsigned char serial8250_rx_chars(struct uart_8250_port *up, unsigned char lsr); lsr 170 include/linux/serial_8250.h void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr); lsr 551 samples/vfio-mdev/mtty.c u8 lsr = 0; lsr 557 samples/vfio-mdev/mtty.c lsr |= UART_LSR_DR; lsr 561 samples/vfio-mdev/mtty.c lsr |= UART_LSR_OE; lsr 566 samples/vfio-mdev/mtty.c lsr |= UART_LSR_TEMT | UART_LSR_THRE; lsr 569 samples/vfio-mdev/mtty.c *buf = lsr;