/linux/drivers/tty/serial/ |
H A D | pxa.c | 52 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() function 107 ch = serial_in(up, UART_RX); in receive_chars() 160 *status = serial_in(up, UART_LSR); in receive_chars() 200 status = serial_in(up, UART_MSR); in check_modem_status() 225 iir = serial_in(up, UART_IIR); in serial_pxa_irq() 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() 258 status = serial_in(up, UART_MSR); in serial_pxa_get_mctrl() 339 (void) serial_in(up, UART_LSR); in serial_pxa_startup() 340 (void) serial_in(up, UART_RX); in serial_pxa_startup() [all …]
|
H A D | ma35d1_serial.c | 168 static u32 serial_in(struct uart_ma35d1_port *p, u32 offset) in serial_in() function 182 ier = serial_in(p, MA35_IER_REG); in __stop_tx() 204 serial_in(up, MA35_FSR_REG)); in transmit_chars() 206 !(serial_in(up, MA35_FSR_REG) & MA35_FSR_TX_FULL), in transmit_chars() 216 ier = serial_in(up, MA35_IER_REG); in ma35d1serial_start_tx() 227 ier = serial_in(up, MA35_IER_REG); in ma35d1serial_stop_rx() 238 fsr = serial_in(up, MA35_FSR_REG); in receive_chars() 268 ch = serial_in(up, MA35_RBR_REG); in receive_chars() 276 fsr = serial_in(up, MA35_FSR_REG); in receive_chars() 290 isr = serial_in(up, MA35_ISR_REG); in ma35d1serial_interrupt() [all …]
|
H A D | sprd_serial.c | 159 static inline unsigned int serial_in(struct uart_port *port, in serial_in() function 173 if (serial_in(port, SPRD_STS1) & SPRD_TX_FIFO_CNT_MASK) in sprd_tx_empty() 186 u32 val = serial_in(port, SPRD_CTL1); in sprd_set_mctrl() 205 iclr = serial_in(port, SPRD_ICLR); in sprd_stop_rx() 206 ien = serial_in(port, SPRD_IEN); in sprd_stop_rx() 217 u32 val = serial_in(port, SPRD_CTL1); in sprd_uart_dma_enable() 367 u32 val = serial_in(port, SPRD_CTL2); in sprd_rx_full_thld() 548 iclr = serial_in(port, SPRD_ICLR); in sprd_stop_tx() 549 ien = serial_in(port, SPRD_IEN); in sprd_stop_tx() 569 ien = serial_in(port, SPRD_IEN); in sprd_start_tx() [all …]
|
H A D | sunsu.c | 104 static unsigned int serial_in(struct uart_sunsu_port *up, int offset) in serial_in() function 159 #define serial_inp(up, offset) serial_in(up, offset) 179 value = serial_in(up, UART_ICR); 437 status = serial_in(up, UART_MSR); in check_modem_status() 472 } while (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)); in sunsu_serial_interrupt() 525 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars() 532 if (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)) { in sunsu_kbd_ms_interrupt() 550 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in sunsu_tx_empty() 563 status = serial_in(up, UART_MSR); in sunsu_get_mctrl() 765 (void) serial_in(up, UART_RX); in sunsu_shutdown() [all …]
|
H A D | omap-serial.c | 174 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) in serial_in() function 414 status = serial_in(up, UART_MSR); in check_modem_status() 447 serial_in(up, UART_RX); in serial_omap_rlsi() 501 ch = serial_in(up, UART_RX); in serial_omap_rdi() 533 iir = serial_in(up, UART_IIR); in serial_omap_irq() 538 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() 627 old_mcr = serial_in(up, UART_MCR); in serial_omap_set_mctrl() 634 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl() 694 (void) serial_in(up, UART_LSR); in serial_omap_startup() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_port.c | 328 unsigned char dll = serial_in(up, UART_DLL); in default_serial_dl_read() 329 unsigned char dlm = serial_in(up, UART_DLM); in default_serial_dl_read() 439 p->serial_in = hub6_serial_in; in set_io_from_upio() 445 p->serial_in = mem_serial_in; in set_io_from_upio() 450 p->serial_in = mem16_serial_in; in set_io_from_upio() 455 p->serial_in = mem32_serial_in; in set_io_from_upio() 460 p->serial_in = mem32be_serial_in; in set_io_from_upio() 465 p->serial_in = io_serial_in; in set_io_from_upio() 472 p->serial_in = no_serial_in; in set_io_from_upio() 490 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync() [all …]
|
H A D | 8250_dw.c | 123 lsr = p->serial_in(p, UART_LSR); in dw8250_force_idle() 128 (void)p->serial_in(p, UART_RX); in dw8250_force_idle() 142 unsigned int lcr = p->serial_in(p, offset); in dw8250_check_lcr() 263 unsigned int iir = p->serial_in(p, UART_IIR); in dw8250_handle_irq() 284 (void) p->serial_in(p, UART_RX); in dw8250_handle_irq() 306 (void)p->serial_in(p, d->pdata->usr_reg); in dw8250_handle_irq() 393 unsigned int mcr = p->serial_in(p, UART_MCR); in dw8250_set_ldisc() 470 p->serial_in = dw8250_serial_inq; in dw8250_quirks() 491 p->serial_in = dw8250_serial_in32; in dw8250_quirks() 558 p->serial_in = dw8250_serial_in; in dw8250_probe() [all …]
|
H A D | 8250_fsl.c | 35 iir = port->serial_in(port, UART_IIR); in fsl8250_handle_irq() 57 port->serial_in(port, UART_RX); in fsl8250_handle_irq() 62 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); in fsl8250_handle_irq() 74 up->ier = port->serial_in(port, UART_IER); in fsl8250_handle_irq()
|
H A D | 8250.h | 135 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in() function 137 return up->port.serial_in(&up->port, offset); in serial_in() 159 lsr |= serial_in(up, UART_LSR); in serial_lsr_in() 181 value = serial_in(up, UART_ICR); in serial_icr_read() 305 mctrl = serial_in(up, UART_MCR); in serial8250_in_MCR() 430 status = serial_in(up, 0x04); /* EXCR2 */ in ns16550a_goto_highspeed()
|
H A D | 8250_mtk.c | 159 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable() 232 serial_out(up, UART_IER, serial_in(up, UART_IER) & (~mask)); in mtk8250_disable_intrs() 240 serial_out(up, UART_IER, serial_in(up, UART_IER) | mask); in mtk8250_enable_intrs() 246 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 254 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl() 261 serial_out(up, MTK_UART_EFR, serial_in(up, MTK_UART_EFR) & in mtk8250_set_flow_ctrl() 276 (serial_in(up, MTK_UART_EFR) & in mtk8250_set_flow_ctrl() 291 (serial_in(up, MTK_UART_EFR) & in mtk8250_set_flow_ctrl() 436 (serial_in(up, MTK_UART_DEBUG0)); in mtk8250_runtime_suspend()
|
H A D | 8250_core.c | 228 ier = serial_in(up, UART_IER); in serial8250_backup_timeout() 232 iir = serial_in(up, UART_IIR); in serial8250_backup_timeout() 564 if (port->serial_in) in early_serial_setup() 565 p->serial_in = port->serial_in; in early_serial_setup() 590 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port() 782 if (up->port.serial_in) in serial8250_register_8250_port() 783 uart->port.serial_in = up->port.serial_in; in serial8250_register_8250_port()
|
H A D | 8250_em.c | 144 return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; in serial8250_em_serial_dl_read() 189 up.port.serial_in = serial8250_em_serial_in; in serial8250_em_probe()
|
H A D | 8250_rt288x.c | 69 p->serial_in = au_serial_in; in au_platform_setup() 88 p->serial_in = au_serial_in; in rt288x_setup()
|
H A D | 8250_omap.c | 189 lcr = serial_in(up, UART_LCR); in __omap8250_set_mctrl() 280 old_scr = serial_in(up, UART_OMAP_SCR); in omap8250_update_scr() 539 efr = serial_in(up, UART_EFR); in omap_8250_pm() 671 efr2 = serial_in(up, UART_OMAP_EFR2); in omap8250_irq() 672 timeout_h = serial_in(up, UART_OMAP_TO_H); in omap8250_irq() 673 timeout_l = serial_in(up, UART_OMAP_TO_L); in omap8250_irq() 677 serial_in(up, UART_IIR); in omap8250_irq() 689 up->ier = port->serial_in(port, UART_IER); in omap8250_irq() 941 reg = serial_in(p, UART_OMAP_IER2); in __dma_rx_do_complete() 1087 reg = serial_in(p, UART_OMAP_IER2); in omap_8250_rx_dma() [all …]
|
H A D | 8250_tegra.c | 31 status = p->serial_in(p, UART_LSR); in tegra_uart_handle_break() 35 p->serial_in(p, UART_RX); in tegra_uart_handle_break()
|
H A D | 8250_ingenic.c | 194 ier = p->serial_in(p, UART_IER); in ingenic_uart_serial_out() 260 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe()
|
H A D | 8250_ioc3.c | 68 up.port.serial_in = ioc3_serial_in; in serial8250_ioc3_probe()
|
H A D | 8250_platform.c | 189 uart.port.serial_in = p->serial_in; in serial8250_probe_platform()
|
H A D | 8250_pxa.c | 72 dll = serial_in(up, UART_DLL); in serial_pxa_dl_write()
|
/linux/arch/x86/kernel/ |
H A D | early_printk.c | 107 static unsigned int (*serial_in)(unsigned long addr, int offset) = io_serial_in; variable 114 while ((serial_in(early_serial_base, LSR) & XMTRDY) == 0 && --timeout) in early_serial_putc() 139 c = serial_in(early_serial_base, LCR); in early_serial_hw_init() 187 serial_in = io_serial_in; in early_serial_init() 281 serial_in = io_serial_in; in early_pci_serial_init() 288 serial_in = mem32_serial_in; in early_pci_serial_init()
|
/linux/arch/mips/boot/compressed/ |
H A D | uart-16550.c | 31 static inline unsigned int serial_in(int offset) in serial_in() function 45 while (((serial_in(UART_LSR) & UART_LSR_THRE) == 0) && (timeout-- > 0)) in putc()
|
/linux/arch/mips/kernel/ |
H A D | early_printk_8250.c | 24 static inline u8 serial_in(int offset) in serial_in() function 46 status = serial_in(UART_LSR); in prom_putchar()
|
/linux/drivers/fsi/ |
H A D | fsi-master-gpio.c | 112 static void serial_in(struct fsi_master_gpio *master, struct fsi_gpio_msg *msg, in serial_in() function 349 serial_in(master, &msg, 1); in read_one_response() 364 serial_in(master, &msg, 4); in read_one_response() 370 serial_in(master, &msg, data_size * 8); in read_one_response() 373 serial_in(master, &msg, FSI_CRC_SIZE); in read_one_response()
|
/linux/arch/x86/platform/ce4100/ |
H A D | ce4100.c | 107 up->serial_in = ce4100_mem_serial_in; in ce4100_serial_fixup()
|
/linux/include/linux/ |
H A D | serial_8250.h | 49 unsigned int (*serial_in)(struct uart_port *, int); member
|