Home
last modified time | relevance | path

Searched refs:serial_out (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/drivers/tty/serial/
H A Domap-serial.c180 static inline void serial_out(struct uart_omap_port *up, int offset, int value) in serial_out() function
188 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO); in serial_omap_clear_fifos()
189 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | in serial_omap_clear_fifos()
191 serial_out(up, UART_FCR, 0); in serial_omap_clear_fifos()
276 serial_out(up, UART_IER, up->ier); in serial_omap_enable_ms()
295 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
314 serial_out(up, UART_OMAP_SCR, up->scr); in serial_omap_stop_tx()
321 serial_out(up, UART_IER, up->ier); in serial_omap_stop_tx()
331 serial_out(up, UART_IER, up->ier); in serial_omap_stop_rx()
336 serial_out(up, UART_TX, ch); in serial_omap_put_char()
[all …]
H A Dpxa.c58 static inline void serial_out(struct uart_pxa_port *up, int offset, int value) in serial_out() function
69 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
78 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_tx()
88 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_rx()
105 serial_out(up, UART_IER, up->ier); in receive_chars()
172 serial_out(up, UART_IER, up->ier); in receive_chars()
181 serial_out(up, UART_TX, ch), in transmit_chars()
191 serial_out(up, UART_IER, up->ier); in serial_pxa_start_tx()
290 serial_out(up, UART_MCR, mcr); in serial_pxa_set_mctrl()
303 serial_out(up, UART_LCR, up->lcr); in serial_pxa_break_ctl()
[all …]
H A Dma35d1_serial.c173 static void serial_out(struct uart_ma35d1_port *p, u32 offset, u32 value) in serial_out() function
184 serial_out(p, MA35_IER_REG, ier & ~MA35_IER_THRE_IEN); in __stop_tx()
207 serial_out(up, MA35_THR_REG, ch), in transmit_chars()
217 serial_out(up, MA35_IER_REG, ier & ~MA35_IER_THRE_IEN); in ma35d1serial_start_tx()
219 serial_out(up, MA35_IER_REG, ier | MA35_IER_THRE_IEN); in ma35d1serial_start_tx()
229 serial_out(up, MA35_IER_REG, ier); in ma35d1serial_stop_rx()
257 serial_out(up, MA35_FSR_REG, in receive_chars()
301 serial_out(up, MA35_FSR_REG, MA35_FSR_TX_OVER_IF); in ma35d1serial_interrupt()
346 serial_out(up, MA35_IER_REG, ier); in ma35d1serial_set_mctrl()
351 serial_out(up, MA35_IER_REG, ier); in ma35d1serial_set_mctrl()
[all …]
H A Dsprd_serial.c143 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() function
171 serial_out(port, SPRD_CTL1, val); in sprd_set_mctrl()
189 serial_out(port, SPRD_IEN, ien); in sprd_stop_rx()
190 serial_out(port, SPRD_ICLR, iclr); in sprd_stop_rx()
202 serial_out(port, SPRD_CTL1, val); in sprd_uart_dma_enable()
325 serial_out(port, SPRD_TXD, port->x_char); in sprd_start_tx_dma()
349 serial_out(port, SPRD_CTL2, val); in sprd_rx_full_thld()
532 serial_out(port, SPRD_IEN, ien); in sprd_stop_tx()
533 serial_out(port, SPRD_ICLR, iclr); in sprd_stop_tx()
550 serial_out(port, SPRD_IEN, ien); in sprd_start_tx()
[all …]
H A Dsunsu.c121 static void serial_out(struct uart_sunsu_port *up, int offset, int value) in serial_out() function
160 #define serial_outp(up, offset, value) serial_out(up, offset, value)
168 serial_out(up, UART_SCR, offset); in serial_icr_write()
169 serial_out(up, UART_ICR, value); in serial_icr_write()
178 serial_out(up, UART_SCR, offset);
259 serial_out(p, UART_IER, p->ier); in __stop_tx()
286 serial_out(up, UART_IER, up->ier); in sunsu_start_tx()
305 serial_out(up, UART_IER, up->ier); in sunsu_stop_rx()
316 serial_out(up, UART_IER, up->ier); in sunsu_enable_ms()
419 serial_out(up, UART_TX, xmit->buf[xmit->tail]); in transmit_chars()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dns16550.c26 #define serial_out(x, y) outb(x, (ulong)y) macro
29 #define serial_out(x, y) out_be32(y, x) macro
32 #define serial_out(x, y) out_le32(y, x) macro
35 #define serial_out(x, y) writeb(x, y) macro
129 #define serial_out(value, addr) \ macro
154 serial_out(UART_LCR_BKSE | lcr_val, &com_port->lcr); in NS16550_setbrg()
155 serial_out(baud_divisor & 0xff, &com_port->dll); in NS16550_setbrg()
156 serial_out((baud_divisor >> 8) & 0xff, &com_port->dlm); in NS16550_setbrg()
157 serial_out(lcr_val, &com_port->lcr); in NS16550_setbrg()
173 serial_out(0, &com_port->mdr1); in NS16550_init()
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_mtk.c170 serial_out(up, UART_FCR, UART_FCR_ENABLE_FIFO | UART_FCR_CLEAR_RCVR | in mtk8250_dma_enable()
172 serial_out(up, MTK_UART_DMA_EN, in mtk8250_dma_enable()
175 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_dma_enable()
176 serial_out(up, MTK_UART_EFR, UART_EFR_ECB); in mtk8250_dma_enable()
177 serial_out(up, UART_LCR, 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()
251 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in mtk8250_set_flow_ctrl()
252 serial_out(up, MTK_UART_EFR, UART_EFR_ECB); in mtk8250_set_flow_ctrl()
253 serial_out(up, UART_LCR, lcr); in mtk8250_set_flow_ctrl()
[all …]
H A D8250_omap.c190 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in __omap8250_set_mctrl()
195 serial_out(up, UART_EFR, priv->efr); in __omap8250_set_mctrl()
196 serial_out(up, UART_LCR, lcr); in __omap8250_set_mctrl()
226 serial_out(up, UART_OMAP_MDR1, priv->mdr1); in omap_8250_mdr1_errataset()
228 serial_out(up, UART_FCR, up->fcr | UART_FCR_CLEAR_XMIT | in omap_8250_mdr1_errataset()
290 serial_out(up, UART_OMAP_SCR, in omap8250_update_scr()
292 serial_out(up, UART_OMAP_SCR, priv->scr); in omap8250_update_scr()
301 serial_out(up, UART_OMAP_MDR1, priv->mdr1); in omap8250_update_mdr1()
324 serial_out(up, UART_LCR, UART_LCR_CONF_MODE_B); in omap8250_restore_regs()
325 serial_out(up, UART_EFR, UART_EFR_ECB); in omap8250_restore_regs()
[all …]
H A D8250_port.c348 serial_out(up, UART_DLL, value & 0xff); in default_serial_dl_write()
349 serial_out(up, UART_DLM, value >> 8 & 0xff); in default_serial_dl_write()
438 p->serial_out = hub6_serial_out; in set_io_from_upio()
443 p->serial_out = mem_serial_out; in set_io_from_upio()
448 p->serial_out = mem16_serial_out; in set_io_from_upio()
453 p->serial_out = mem32_serial_out; in set_io_from_upio()
458 p->serial_out = mem32be_serial_out; in set_io_from_upio()
463 p->serial_out = io_serial_out; in set_io_from_upio()
480 p->serial_out(p, offset, value); in serial_port_out_sync()
484 p->serial_out(p, offset, value); in serial_port_out_sync()
[all …]
H A D8250.h120 static inline void serial_out(struct uart_8250_port *up, int offset, int value) in serial_out() function
122 up->port.serial_out(&up->port, offset, value); in serial_out()
150 serial_out(up, UART_SCR, offset); in serial_icr_write()
151 serial_out(up, UART_ICR, value); in serial_icr_write()
160 serial_out(up, UART_SCR, offset); in serial_icr_read()
187 serial_out(up, UART_IER, up->ier); in serial8250_set_THRI()
199 serial_out(up, UART_IER, up->ier); in serial8250_clear_THRI()
274 serial_out(up, UART_MCR, value); in serial8250_out_MCR()
414 serial_out(up, 0x04, status); in ns16550a_goto_highspeed()
H A D8250_core.c270 serial_out(up, UART_IER, 0); in serial8250_backup_timeout()
293 serial_out(up, UART_IER, ier); in serial8250_backup_timeout()
770 if (port->serial_out) in early_serial_setup()
771 p->serial_out = port->serial_out; in early_serial_setup()
793 serial_out(up, UART_SCR, canary); in serial8250_suspend_port()
861 uart.port.serial_out = p->serial_out; in serial8250_probe()
998 serial_out(up, UART_IER, up->ier); in serial_8250_overrun_backoff_work()
1103 if (up->port.serial_out) in serial8250_register_8250_port()
[all...]
H A D8250_lpc18xx.c64 serial_out(up, LPC18XX_UART_RS485CTRL, rs485_ctrl_reg); in lpc18xx_rs485_config()
65 serial_out(up, LPC18XX_UART_RS485DLY, rs485_dly_reg); in lpc18xx_rs485_config()
161 uart.port.serial_out = lpc18xx_uart_serial_out; in lpc18xx_serial_probe()
H A D8250_em.c149 serial_out(up, UART_DLL_EM, value & 0xff); in serial8250_em_serial_dl_write()
150 serial_out(up, UART_DLM_EM, value >> 8 & 0xff); in serial8250_em_serial_dl_write()
190 up.port.serial_out = serial8250_em_serial_out; in serial8250_em_probe()
H A D8250_rt288x.c70 p->serial_out = au_serial_out; in au_platform_setup()
89 p->serial_out = au_serial_out; in rt288x_setup()
H A D8250_pxa.c67 serial_out(up, UART_DLL, value & 0xff); in serial_pxa_dl_write()
75 serial_out(up, UART_DLM, value >> 8 & 0xff); in serial_pxa_dl_write()
H A D8250_dw.c414 p->serial_out(p, UART_MCR, mcr); in dw8250_set_ldisc()
484 p->serial_out = dw8250_serial_outq; in dw8250_quirks()
492 p->serial_out = dw8250_serial_out38x; in dw8250_quirks()
577 p->serial_out = dw8250_serial_out; in dw8250_probe()
581 p->serial_out = dw8250_serial_out32; in dw8250_probe()
585 p->serial_out = dw8250_serial_out32be; in dw8250_probe()
H A D8250_bcm2835aux.c58 serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl); in bcm2835aux_rs485_start_tx()
82 serial_out(up, BCM2835_AUX_UART_CNTL, data->cntl); in bcm2835aux_rs485_stop_tx()
H A D8250_ioc3.c69 up.port.serial_out = ioc3_serial_out; in serial8250_ioc3_probe()
/openbmc/linux/arch/x86/kernel/
H A Dearly_printk.c108 static void (*serial_out)(unsigned long addr, int offset, int value) = io_serial_out; variable
116 serial_out(early_serial_base, TXR, ch); in early_serial_putc()
134 serial_out(early_serial_base, LCR, 0x3); /* 8n1 */ in early_serial_hw_init()
135 serial_out(early_serial_base, IER, 0); /* no interrupt */ in early_serial_hw_init()
136 serial_out(early_serial_base, FCR, 0); /* no fifo */ in early_serial_hw_init()
137 serial_out(early_serial_base, MCR, 0x3); /* DTR + RTS */ in early_serial_hw_init()
140 serial_out(early_serial_base, LCR, c | DLAB); in early_serial_hw_init()
141 serial_out(early_serial_base, DLL, divisor & 0xff); in early_serial_hw_init()
142 serial_out(early_serial_base, DLH, (divisor >> 8) & 0xff); in early_serial_hw_init()
143 serial_out(early_serial_base, LCR, c & ~DLAB); in early_serial_hw_init()
[all …]
/openbmc/linux/arch/mips/kernel/
H A Dearly_printk_8250.c29 static inline void serial_out(int offset, char value) in serial_out() function
53 serial_out(UART_TX, c); in prom_putchar()
/openbmc/linux/arch/mips/boot/compressed/
H A Duart-16550.c39 static inline void serial_out(int offset, int value) in serial_out() function
51 serial_out(UART_TX, c); in putc()
/openbmc/linux/arch/mips/ar7/
H A Dprom.c246 static inline void serial_out(int offset, int value) in serial_out() function
255 serial_out(UART_TX, c); in prom_putchar()
/openbmc/linux/drivers/fsi/
H A Dfsi-master-gpio.c129 static void serial_out(struct fsi_master_gpio *master, in serial_out() function
407 serial_out(master, &cmd); in issue_term()
453 serial_out(master, &cmd); in poll_for_response()
484 serial_out(master, &cmd); in poll_for_response()
532 serial_out(master, cmd); in send_request()
/openbmc/linux/arch/x86/platform/ce4100/
H A Dce4100.c108 up->serial_out = ce4100_mem_serial_out; in ce4100_serial_fixup()
/openbmc/linux/include/linux/
H A Dserial_8250.h50 void (*serial_out)(struct uart_port *, int, int); member

12