Home
last modified time | relevance | path

Searched refs:lsr (Results 1 – 25 of 38) sorted by relevance

12

/drivers/scsi/arm/
Dacornscsi-io.S67 mov r3, r3, lsr #8
83 orr r3, r3, r3, lsr #16
84 mov r4, r4, lsr #16
87 orr r5, r5, r5, lsr #16
88 mov r6, r6, lsr #16
92 orr r3, r3, r3, lsr #16
93 mov r4, ip, lsr #16
96 orr ip, ip, ip, lsr #16
97 mov lr, lr, lsr #16
107 orr r3, r3, r3, lsr #16
[all …]
/drivers/tty/serial/
Dvr41xx_siu.c177 uint8_t lsr; in siu_tx_empty() local
179 lsr = siu_read(port, UART_LSR); in siu_tx_empty()
180 if (lsr & UART_LSR_TEMT) in siu_tx_empty()
299 uint8_t lsr, ch; in receive_chars() local
303 lsr = *status; in receive_chars()
311 lsr |= lsr_break_flag[port->line]; in receive_chars()
314 if (unlikely(lsr & (UART_LSR_BI | UART_LSR_FE | in receive_chars()
316 if (lsr & UART_LSR_BI) { in receive_chars()
317 lsr &= ~(UART_LSR_FE | UART_LSR_PE); in receive_chars()
324 if (lsr & UART_LSR_FE) in receive_chars()
[all …]
Dserial-tegra.c309 unsigned int lsr, tmout = 10000; in tegra_uart_fifo_reset() local
340 lsr = tegra_uart_read(tup, UART_LSR); in tegra_uart_fifo_reset()
341 if ((lsr & UART_LSR_TEMT) && !(lsr & UART_LSR_DR)) in tegra_uart_fifo_reset()
438 unsigned long lsr) in tegra_uart_decode_rx_error() argument
442 if (unlikely(lsr & TEGRA_UART_LSR_ANY)) { in tegra_uart_decode_rx_error()
443 if (lsr & UART_LSR_OE) { in tegra_uart_decode_rx_error()
448 } else if (lsr & UART_LSR_PE) { in tegra_uart_decode_rx_error()
453 } else if (lsr & UART_LSR_FE) { in tegra_uart_decode_rx_error()
457 } else if (lsr & UART_LSR_BI) { in tegra_uart_decode_rx_error()
462 if (!(lsr & UART_LSR_DR) && (lsr & UART_LSR_FIFOE)) in tegra_uart_decode_rx_error()
[all …]
Dsc16is7xx.c560 unsigned int lsr = 0, ch, flag, bytes_read, i; in sc16is7xx_handle_rx() local
575 lsr = sc16is7xx_port_read(port, SC16IS7XX_LSR_REG); in sc16is7xx_handle_rx()
576 if (!(lsr & SC16IS7XX_LSR_FIFOE_BIT)) in sc16is7xx_handle_rx()
579 lsr = 0; in sc16is7xx_handle_rx()
589 lsr &= SC16IS7XX_LSR_BRK_ERROR_MASK; in sc16is7xx_handle_rx()
594 if (unlikely(lsr)) { in sc16is7xx_handle_rx()
595 if (lsr & SC16IS7XX_LSR_BI_BIT) { in sc16is7xx_handle_rx()
599 } else if (lsr & SC16IS7XX_LSR_PE_BIT) in sc16is7xx_handle_rx()
601 else if (lsr & SC16IS7XX_LSR_FE_BIT) in sc16is7xx_handle_rx()
603 else if (lsr & SC16IS7XX_LSR_OE_BIT) in sc16is7xx_handle_rx()
[all …]
Dsprd_serial.c565 unsigned int *lsr) in handle_lsr_errors() argument
570 if (*lsr & SPRD_LSR_BI) { in handle_lsr_errors()
571 *lsr &= ~(SPRD_LSR_FE | SPRD_LSR_PE); in handle_lsr_errors()
576 } else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
578 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
580 if (*lsr & SPRD_LSR_OE) in handle_lsr_errors()
584 *lsr &= port->read_status_mask; in handle_lsr_errors()
585 if (*lsr & SPRD_LSR_BI) in handle_lsr_errors()
587 else if (*lsr & SPRD_LSR_PE) in handle_lsr_errors()
589 else if (*lsr & SPRD_LSR_FE) in handle_lsr_errors()
[all …]
Domap-serial.c339 static void transmit_chars(struct uart_omap_port *up, unsigned int lsr) in transmit_chars() argument
463 static void serial_omap_rlsi(struct uart_omap_port *up, unsigned int lsr) in serial_omap_rlsi() argument
471 if (likely(lsr & UART_LSR_DR)) { in serial_omap_rlsi()
482 if (lsr & UART_LSR_BI) { in serial_omap_rlsi()
484 lsr &= ~(UART_LSR_FE | UART_LSR_PE); in serial_omap_rlsi()
497 if (lsr & UART_LSR_PE) { in serial_omap_rlsi()
502 if (lsr & UART_LSR_FE) { in serial_omap_rlsi()
507 if (lsr & UART_LSR_OE) in serial_omap_rlsi()
513 lsr |= up->lsr_break_flag; in serial_omap_rlsi()
516 uart_insert_char(&up->port, lsr, UART_LSR_OE, 0, flag); in serial_omap_rlsi()
[all …]
Dpch_uart.c569 u8 rbr, lsr; in pch_uart_hal_read() local
572 lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read()
573 for (i = 0, lsr = ioread8(priv->membase + UART_LSR); in pch_uart_hal_read()
574 i < rx_size && lsr & (UART_LSR_DR | UART_LSR_BI); in pch_uart_hal_read()
575 lsr = ioread8(priv->membase + UART_LSR)) { in pch_uart_hal_read()
578 if (lsr & UART_LSR_BI) { in pch_uart_hal_read()
1029 static void pch_uart_err_ir(struct eg20t_port *priv, unsigned int lsr) in pch_uart_err_ir() argument
1036 if (lsr & PCH_UART_LSR_ERR) in pch_uart_err_ir()
1039 if (lsr & UART_LSR_FE) { in pch_uart_err_ir()
1044 if (lsr & UART_LSR_PE) { in pch_uart_err_ir()
[all …]
Dpxa.c245 unsigned int iir, lsr; in serial_pxa_irq() local
251 lsr = serial_in(up, UART_LSR); in serial_pxa_irq()
252 if (lsr & UART_LSR_DR) in serial_pxa_irq()
253 receive_chars(up, &lsr); in serial_pxa_irq()
255 if (lsr & UART_LSR_THRE) in serial_pxa_irq()
684 unsigned char lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char() local
686 while (!(lsr & UART_LSR_DR)) in serial_pxa_get_poll_char()
687 lsr = serial_in(up, UART_LSR); in serial_pxa_get_poll_char()
Dmen_z135_uart.c198 u8 lsr; in men_z135_handle_lsr() local
200 lsr = (uart->stat_reg >> 16) & 0xff; in men_z135_handle_lsr()
202 if (lsr & MEN_Z135_LSR_OE) in men_z135_handle_lsr()
204 if (lsr & MEN_Z135_LSR_PE) in men_z135_handle_lsr()
206 if (lsr & MEN_Z135_LSR_FE) in men_z135_handle_lsr()
208 if (lsr & MEN_Z135_LSR_BI) { in men_z135_handle_lsr()
/drivers/usb/serial/
Dark3116.c74 __u32 lsr; /* line status register value */ member
357 priv->lsr = *buf; in ark3116_open()
491 static void ark3116_update_lsr(struct usb_serial_port *port, __u8 lsr) in ark3116_update_lsr() argument
498 priv->lsr |= lsr; in ark3116_update_lsr()
501 if (lsr&UART_LSR_BRK_ERROR_BITS) { in ark3116_update_lsr()
502 if (lsr & UART_LSR_BI) in ark3116_update_lsr()
504 if (lsr & UART_LSR_FE) in ark3116_update_lsr()
506 if (lsr & UART_LSR_PE) in ark3116_update_lsr()
508 if (lsr & UART_LSR_OE) in ark3116_update_lsr()
583 __u32 lsr; in ark3116_process_read_urb() local
[all …]
Df81232.c370 static char f81232_handle_lsr(struct usb_serial_port *port, u8 lsr) in f81232_handle_lsr() argument
375 if (!(lsr & UART_LSR_BRK_ERROR_BITS)) in f81232_handle_lsr()
378 if (lsr & UART_LSR_BI) { in f81232_handle_lsr()
382 } else if (lsr & UART_LSR_PE) { in f81232_handle_lsr()
385 } else if (lsr & UART_LSR_FE) { in f81232_handle_lsr()
390 if (lsr & UART_LSR_OE) { in f81232_handle_lsr()
405 u8 lsr; in f81232_process_read_urb() local
417 lsr = data[i]; in f81232_process_read_urb()
418 tty_flag = f81232_handle_lsr(port, lsr); in f81232_process_read_urb()
437 u8 lsr; in f81534a_process_read_urb() local
[all …]
Dssu100.c441 static void ssu100_update_lsr(struct usb_serial_port *port, u8 lsr, in ssu100_update_lsr() argument
448 priv->shadowLSR = lsr; in ssu100_update_lsr()
452 if (lsr & UART_LSR_BRK_ERROR_BITS) { in ssu100_update_lsr()
455 if (lsr & UART_LSR_BI) { in ssu100_update_lsr()
460 if (lsr & UART_LSR_PE) { in ssu100_update_lsr()
465 if (lsr & UART_LSR_FE) { in ssu100_update_lsr()
470 if (lsr & UART_LSR_OE) { in ssu100_update_lsr()
Dio_ti.c527 u8 *lsr; in tx_active() local
538 lsr = kmalloc(1, GFP_KERNEL); in tx_active()
539 if (!lsr) { in tx_active()
553 port->uart_base + UMPMEM_OFFS_UART_LSR, 1, lsr); in tx_active()
557 dev_dbg(&port->port->dev, "%s - LSR = 0x%X\n", __func__, *lsr); in tx_active()
563 if ((*lsr & UMP_UART_LSR_TX_MASK) == 0) in tx_active()
570 kfree(lsr); in tx_active()
1532 u8 lsr = 0; in map_line_status() local
1536 lsr |= flagUart; in map_line_status()
1547 return lsr; in map_line_status()
[all …]
Df81534.c765 u8 lsr; in f81534_check_port_hw_disabled() local
802 F81534_LINE_STATUS_REG, &lsr); in f81534_check_port_hw_disabled()
811 if ((lsr & UART_LSR_BI) == UART_LSR_BI) in f81534_check_port_hw_disabled()
1164 u8 lsr; in f81534_process_per_serial_block() local
1212 lsr = data[i + 1]; in f81534_process_per_serial_block()
1214 if (lsr & UART_LSR_BRK_ERROR_BITS) { in f81534_process_per_serial_block()
1215 if (lsr & UART_LSR_BI) { in f81534_process_per_serial_block()
1219 } else if (lsr & UART_LSR_PE) { in f81534_process_per_serial_block()
1222 } else if (lsr & UART_LSR_FE) { in f81534_process_per_serial_block()
1227 if (lsr & UART_LSR_OE) { in f81534_process_per_serial_block()
Dcp210x.c288 u8 lsr; member
853 static void cp210x_process_lsr(struct usb_serial_port *port, unsigned char lsr, char *flag) in cp210x_process_lsr() argument
855 if (lsr & CP210X_LSR_BREAK) { in cp210x_process_lsr()
858 } else if (lsr & CP210X_LSR_PARITY) { in cp210x_process_lsr()
861 } else if (lsr & CP210X_LSR_FRAME) { in cp210x_process_lsr()
866 if (lsr & CP210X_LSR_OVERRUN) { in cp210x_process_lsr()
906 port_priv->lsr = *ch; in cp210x_process_char()
911 __func__, port_priv->lsr, *ch); in cp210x_process_char()
912 cp210x_process_lsr(port, port_priv->lsr, flag); in cp210x_process_char()
917 port_priv->lsr = *ch; in cp210x_process_char()
[all …]
/drivers/tty/serial/8250/
D8250_fsl.c32 unsigned char lsr, orig_lsr; in fsl8250_handle_irq() local
53 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); in fsl8250_handle_irq()
56 if ((lsr & (UART_LSR_DR | UART_LSR_BI)) && in fsl8250_handle_irq()
58 lsr = serial8250_rx_chars(up, lsr); in fsl8250_handle_irq()
81 if ((lsr & UART_LSR_THRE) && (up->ier & UART_IER_THRI)) in fsl8250_handle_irq()
D8250_port.c1519 unsigned char lsr = serial_in(p, UART_LSR); in __stop_tx() local
1520 p->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; in __stop_tx()
1528 if ((lsr & BOTH_EMPTY) != BOTH_EMPTY) in __stop_tx()
1562 unsigned char lsr; in __start_tx() local
1564 lsr = serial_in(up, UART_LSR); in __start_tx()
1565 up->lsr_saved_flags |= lsr & LSR_SAVE_FLAGS; in __start_tx()
1566 if (lsr & UART_LSR_THRE) in __start_tx()
1715 void serial8250_read_char(struct uart_8250_port *up, unsigned char lsr) in serial8250_read_char() argument
1721 if (likely(lsr & UART_LSR_DR)) in serial8250_read_char()
1735 lsr |= up->lsr_saved_flags; in serial8250_read_char()
[all …]
D8250_aspeed_vuart.c331 unsigned int iir, lsr; in aspeed_vuart_handle_irq() local
342 lsr = serial_port_in(port, UART_LSR); in aspeed_vuart_handle_irq()
344 if (lsr & (UART_LSR_DR | UART_LSR_BI)) { in aspeed_vuart_handle_irq()
360 serial8250_read_char(up, lsr); in aspeed_vuart_handle_irq()
361 lsr = serial_in(up, UART_LSR); in aspeed_vuart_handle_irq()
364 } while (lsr & (UART_LSR_DR | UART_LSR_BI)); in aspeed_vuart_handle_irq()
371 if (lsr & UART_LSR_THRE) in aspeed_vuart_handle_irq()
D8250_ingenic.c57 uint8_t lsr; in ingenic_early_console_putc() local
60 lsr = early_in(port, UART_LSR); in ingenic_early_console_putc()
61 } while ((lsr & UART_LSR_TEMT) == 0); in ingenic_early_console_putc()
/drivers/tty/serial/jsm/
Djsm_cls.c115 writeb(0, &ch->ch_cls_uart->lsr); in cls_set_ixon_flow_control()
241 writeb(0, &ch->ch_cls_uart->lsr); in cls_set_ixoff_flow_control()
389 linestatus = readb(&ch->ch_cls_uart->lsr); in cls_copy_data_from_uart_to_queue()
889 readb(&ch->ch_cls_uart->lsr); in cls_uart_init()
911 u8 lsr = readb(&ch->ch_cls_uart->lsr); in cls_get_uart_bytes_left() local
914 if (!(lsr & UART_LSR_TEMT)) in cls_get_uart_bytes_left()
Djsm_neo.c333 linestatus = readb(&ch->ch_neo_uart->lsr); in neo_copy_data_from_uart_to_queue()
397 linestatus |= readb(&ch->ch_neo_uart->lsr); in neo_copy_data_from_uart_to_queue()
500 u8 lsrbits = readb(&ch->ch_neo_uart->lsr); in neo_copy_data_from_queue_to_uart()
840 linestatus = readb(&ch->ch_neo_uart->lsr); in neo_parse_lsr()
1310 readb(&ch->ch_neo_uart->lsr); in neo_uart_init()
1334 u8 lsr = readb(&ch->ch_neo_uart->lsr); in neo_get_uart_bytes_left() local
1337 ch->ch_cached_lsr |= lsr; in neo_get_uart_bytes_left()
1340 if (!(lsr & UART_LSR_TEMT)) in neo_get_uart_bytes_left()
Djsm.h265 u8 lsr; /* WR LSR - Line Status Reg */ member
320 u8 lsr; /* WR LSR - Line Status Reg */ member
/drivers/accessibility/speakup/
Dserialio.c270 unsigned char lsr; in spk_serial_in_nowait() local
272 lsr = inb_p(speakup_info.port_tts + UART_LSR); in spk_serial_in_nowait()
273 if (!(lsr & UART_LSR_DR)) in spk_serial_in_nowait()
/drivers/media/rc/
Dsir_ir.c158 int iir, lsr; in sir_interrupt() local
230 lsr = inb(io + UART_LSR); in sir_interrupt()
231 } while (lsr & UART_LSR_DR); /* data ready */ in sir_interrupt()
/drivers/bluetooth/
Ddtl1_cs.c295 int iir, lsr; in dtl1_interrupt() local
311 lsr = inb(iobase + UART_LSR); in dtl1_interrupt()
322 if (lsr & UART_LSR_THRE) { in dtl1_interrupt()

12