Home
last modified time | relevance | path

Searched refs:serial_in (Results 1 – 23 of 23) sorted by relevance

/drivers/tty/serial/
Dpnx8xxx_uart.c65 static inline int serial_in(struct pnx8xxx_port *sport, int offset) in serial_in() function
130 ien = serial_in(sport, PNX8XXX_IEN); in pnx8xxx_stop_tx()
150 ien = serial_in(sport, PNX8XXX_IEN); in pnx8xxx_start_tx()
164 ien = serial_in(sport, PNX8XXX_IEN); in pnx8xxx_stop_rx()
186 status = FIFO_TO_SM(serial_in(sport, PNX8XXX_FIFO)) | in pnx8xxx_rx_chars()
187 ISTAT_TO_SM(serial_in(sport, PNX8XXX_ISTAT)); in pnx8xxx_rx_chars()
189 ch = serial_in(sport, PNX8XXX_FIFO) & 0xff; in pnx8xxx_rx_chars()
235 serial_out(sport, PNX8XXX_LCR, serial_in(sport, PNX8XXX_LCR) | in pnx8xxx_rx_chars()
237 status = FIFO_TO_SM(serial_in(sport, PNX8XXX_FIFO)) | in pnx8xxx_rx_chars()
238 ISTAT_TO_SM(serial_in(sport, PNX8XXX_ISTAT)); in pnx8xxx_rx_chars()
[all …]
Dpxa.c55 static inline unsigned int serial_in(struct uart_pxa_port *up, int offset) in serial_in() function
110 ch = serial_in(up, UART_RX); in receive_chars()
163 *status = serial_in(up, UART_LSR); in receive_chars()
226 status = serial_in(up, UART_MSR); in check_modem_status()
251 iir = serial_in(up, UART_IIR); in serial_pxa_irq()
255 lsr = serial_in(up, UART_LSR); in serial_pxa_irq()
272 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_pxa_tx_empty()
284 status = serial_in(up, UART_MSR); in serial_pxa_get_mctrl()
365 (void) serial_in(up, UART_LSR); in serial_pxa_startup()
366 (void) serial_in(up, UART_RX); in serial_pxa_startup()
[all …]
Dsunsu.c108 static unsigned int serial_in(struct uart_sunsu_port *up, int offset) in serial_in() function
162 #define serial_inp(up, offset) serial_in(up, offset)
182 value = serial_in(up, UART_ICR);
440 status = serial_in(up, UART_MSR); in check_modem_status()
479 } while (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)); in sunsu_serial_interrupt()
532 } while (serial_in(up, UART_LSR) & UART_LSR_DR); in receive_kbd_ms_chars()
539 if (!(serial_in(up, UART_IIR) & UART_IIR_NO_INT)) { in sunsu_kbd_ms_interrupt()
557 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in sunsu_tx_empty()
570 status = serial_in(up, UART_MSR); in sunsu_get_mctrl()
772 (void) serial_in(up, UART_RX); in sunsu_shutdown()
[all …]
Dsprd_serial.c141 static inline unsigned int serial_in(struct uart_port *port, in serial_in() function
155 if (serial_in(port, SPRD_STS1) & SPRD_TX_FIFO_CNT_MASK) in sprd_tx_empty()
168 u32 val = serial_in(port, SPRD_CTL1); in sprd_set_mctrl()
187 iclr = serial_in(port, SPRD_ICLR); in sprd_stop_rx()
188 ien = serial_in(port, SPRD_IEN); in sprd_stop_rx()
199 u32 val = serial_in(port, SPRD_CTL1); in sprd_uart_dma_enable()
352 u32 val = serial_in(port, SPRD_CTL2); in sprd_rx_full_thld()
533 iclr = serial_in(port, SPRD_ICLR); in sprd_stop_tx()
534 ien = serial_in(port, SPRD_IEN); in sprd_stop_tx()
554 ien = serial_in(port, SPRD_IEN); in sprd_start_tx()
[all …]
Domap-serial.c178 static inline unsigned int serial_in(struct uart_omap_port *up, int offset) in serial_in() function
469 status = serial_in(up, UART_MSR); in check_modem_status()
499 ch = serial_in(up, UART_RX); in serial_omap_rlsi()
549 ch = serial_in(up, UART_RX); in serial_omap_rdi()
576 iir = serial_in(up, UART_IIR); in serial_omap_irq()
581 lsr = serial_in(up, UART_LSR); in serial_omap_irq()
631 ret = serial_in(up, UART_LSR) & UART_LSR_TEMT ? TIOCSER_TEMT : 0; in serial_omap_tx_empty()
680 old_mcr = serial_in(up, UART_MCR); in serial_omap_set_mctrl()
687 lcr = serial_in(up, UART_LCR); in serial_omap_set_mctrl()
753 (void) serial_in(up, UART_LSR); in serial_omap_startup()
[all …]
Dsh-sci.c2986 port->serial_in = sci_serial_in; in sci_init_single()
3430 device->port.serial_in = sci_serial_in; in early_console_setup()
/drivers/tty/serial/8250/
D8250_port.c317 return serial_in(up, UART_DLL) | serial_in(up, UART_DLM) << 8; in default_serial_dl_read()
470 p->serial_in = hub6_serial_in; in set_io_from_upio()
475 p->serial_in = mem_serial_in; in set_io_from_upio()
480 p->serial_in = mem16_serial_in; in set_io_from_upio()
485 p->serial_in = mem32_serial_in; in set_io_from_upio()
490 p->serial_in = mem32be_serial_in; in set_io_from_upio()
496 p->serial_in = au_serial_in; in set_io_from_upio()
504 p->serial_in = io_serial_in; in set_io_from_upio()
523 p->serial_in(p, UART_LCR); /* safe, no side-effects */ in serial_port_out_sync()
545 value = serial_in(up, UART_ICR); in serial_icr_read()
[all …]
D8250_fsl.c36 iir = port->serial_in(port, UART_IIR); in fsl8250_handle_irq()
45 port->serial_in(port, UART_RX); in fsl8250_handle_irq()
50 lsr = orig_lsr = up->port.serial_in(&up->port, UART_LSR); in fsl8250_handle_irq()
62 up->ier = port->serial_in(port, UART_IER); in fsl8250_handle_irq()
D8250_dw.c75 (void)p->serial_in(p, UART_RX); in dw8250_force_idle()
85 unsigned int lcr = p->serial_in(p, UART_LCR); in dw8250_check_lcr()
226 unsigned int iir = p->serial_in(p, UART_IIR); in dw8250_handle_irq()
242 status = p->serial_in(p, UART_LSR); in dw8250_handle_irq()
245 (void) p->serial_in(p, UART_RX); in dw8250_handle_irq()
255 (void)p->serial_in(p, d->usr_reg); in dw8250_handle_irq()
310 unsigned int mcr = p->serial_in(p, UART_MCR); in dw8250_set_ldisc()
353 p->serial_in = dw8250_serial_inq; in dw8250_quirks()
363 p->serial_in = dw8250_serial_in32be; in dw8250_quirks()
372 p->serial_in = dw8250_serial_in32; in dw8250_quirks()
[all …]
D8250.h111 static inline int serial_in(struct uart_8250_port *up, int offset) in serial_in() function
113 return up->port.serial_in(&up->port, offset); in serial_in()
228 mctrl = serial_in(up, UART_MCR); in serial8250_in_MCR()
329 status = serial_in(up, 0x04); /* EXCR2 */ in ns16550a_goto_highspeed()
D8250_mtk.c149 int lcr = serial_in(up, UART_LCR); in mtk8250_dma_enable()
215 serial_out(up, UART_IER, serial_in(up, UART_IER) & (~mask)); in mtk8250_disable_intrs()
220 serial_out(up, UART_IER, serial_in(up, UART_IER) | mask); in mtk8250_enable_intrs()
226 int lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
231 lcr = serial_in(up, UART_LCR); in mtk8250_set_flow_ctrl()
238 serial_out(up, UART_EFR, serial_in(up, UART_EFR) & in mtk8250_set_flow_ctrl()
253 (serial_in(up, UART_EFR) & in mtk8250_set_flow_ctrl()
268 (serial_in(up, UART_EFR) & in mtk8250_set_flow_ctrl()
D8250_em.c70 return serial_in(up, UART_DLL_EM) | serial_in(up, UART_DLM_EM) << 8; in serial8250_em_serial_dl_read()
114 up.port.serial_in = serial8250_em_serial_in; in serial8250_em_probe()
D8250_core.c279 ier = serial_in(up, UART_IER); in serial8250_backup_timeout()
283 iir = serial_in(up, UART_IIR); in serial8250_backup_timeout()
291 lsr = serial_in(up, UART_LSR); in serial8250_backup_timeout()
733 if (port->serial_in) in early_serial_setup()
734 p->serial_in = port->serial_in; in early_serial_setup()
758 if (serial_in(up, UART_SCR) == canary) in serial8250_suspend_port()
821 uart.port.serial_in = p->serial_in; in serial8250_probe()
1039 if (up->port.serial_in) in serial8250_register_8250_port()
1040 uart->port.serial_in = up->port.serial_in; in serial8250_register_8250_port()
D8250_omap.c149 lcr = serial_in(up, UART_LCR); in omap8250_set_mctrl()
175 old_mdr1 = serial_in(up, UART_OMAP_MDR1); in omap_8250_mdr1_errataset()
187 while (UART_LSR_THRE != (serial_in(up, UART_LSR) & in omap_8250_mdr1_errataset()
193 serial_in(up, UART_LSR)); in omap_8250_mdr1_errataset()
248 old_scr = serial_in(up, UART_OMAP_SCR); in omap8250_update_scr()
506 efr = serial_in(up, UART_EFR); in omap_8250_pm()
987 tx_lvl = serial_in(p, UART_OMAP_TX_LVL); in omap_8250_tx_dma()
1361 val = serial_in(up, UART_OMAP_SCR); in omap8250_lost_context()
1394 sysc = serial_in(up, UART_OMAP_SYSC); in omap8250_soft_reset()
1403 syss = serial_in(up, UART_OMAP_SYSS); in omap8250_soft_reset()
D8250_early.c54 return port->serial_in(port, reg_offset); in serial8250_early_in()
189 dev->port.serial_in = au_serial_in; in early_au_setup()
D8250_ingenic.c170 ier = p->serial_in(p, UART_IER); in ingenic_uart_serial_out()
240 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe()
D8250_of.c35 status = p->serial_in(p, UART_LSR); in tegra_serial_handle_break()
37 status = p->serial_in(p, UART_RX); in tegra_serial_handle_break()
D8250_pxa.c74 dll = serial_in(up, UART_DLL); in serial_pxa_dl_write()
D8250_uniphier.c226 up.port.serial_in = uniphier_serial_in; in uniphier_uart_probe()
D8250_aspeed_vuart.c287 lsr = serial_in(up, UART_LSR); in aspeed_vuart_handle_irq()
D8250_exar.c178 lsr = serial_in(up, UART_LSR); in exar_shutdown()
D8250_pci.c1737 port->port.serial_in = kt_serial_in; in kt_serial_setup()
/drivers/fsi/
Dfsi-master-gpio.c112 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()