Home
last modified time | relevance | path

Searched refs:uart (Results 1 – 25 of 1167) sorted by relevance

12345678910>>...47

/openbmc/linux/sound/drivers/
H A Dserial-u16550.c179 outb(uart->tx_buff[buff_out], uart->base + UART_TX); in snd_uart16550_buffer_output()
229 uart->rmidi->name, uart->base); in snd_uart16550_io_loop()
255 if (uart->irq < 0 && uart->buff_in_count > 0) in snd_uart16550_io_loop()
302 uart = from_timer(uart, t, buffer_timer); in snd_uart16550_buffer_timer()
383 uart->old_divisor_lsb = inb(uart->base + UART_DLL); in snd_uart16550_do_open()
384 uart->old_divisor_msb = inb(uart->base + UART_DLM); in snd_uart16550_do_open()
611 if (uart->fifo_count < uart->fifo_limit) { in snd_uart16550_output_byte()
624 uart->rmidi->name, uart->base); in snd_uart16550_output_byte()
701 snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); in snd_uart16550_output_write()
713 uart->prev_status[uart->prev_out] = midi_byte; in snd_uart16550_output_write()
[all …]
/openbmc/qemu/hw/char/
H A Dgrlib_apbuart.c101 return uart->current < uart->len; in uart_data_to_read()
113 ret = uart->buffer[uart->current++]; in uart_pop()
115 if (uart->current >= uart->len) { in uart_pop()
135 memcpy(uart->buffer + uart->len, buffer, length); in uart_add_to_fifo()
136 uart->len += length; in uart_add_to_fifo()
141 UART *uart = opaque; in grlib_apbuart_can_receive() local
148 UART *uart = opaque; in grlib_apbuart_receive() local
261 memory_region_init_io(&uart->iomem, OBJECT(uart), &grlib_apbuart_ops, uart, in grlib_apbuart_realize()
274 uart->control = 0; in grlib_apbuart_reset()
276 uart->len = 0; in grlib_apbuart_reset()
[all …]
/openbmc/u-boot/drivers/serial/
H A Dmcfuart.c34 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_init_common()
35 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_init_common()
37 writeb(UART_UCR_RESET_MR, &uart->ucr); in mcf_serial_init_common()
40 writeb(0, &uart->uimr); in mcf_serial_init_common()
75 writeb(UART_UCR_RESET_RX, &uart->ucr); in mcf_serial_setbrg_common()
76 writeb(UART_UCR_RESET_TX, &uart->ucr); in mcf_serial_setbrg_common()
105 writeb(c, &uart->utb); in mcf_serial_putc()
116 return readb(&uart->urb); in mcf_serial_getc()
169 uart_t *uart = (uart_t *)plat->base; in coldfire_serial_putc() local
175 writeb(ch, &uart->utb); in coldfire_serial_putc()
[all …]
H A Dserial_s5p.c65 writel(0x3, &uart->ufcon); in s5p_serial_init()
66 writel(0, &uart->umcon); in s5p_serial_init()
68 writel(0x3, &uart->ulcon); in s5p_serial_init()
70 writel(0x245, &uart->ucon); in s5p_serial_init()
80 writel(val / 16 - 1, &uart->ubrdiv); in s5p_serial_baud()
117 s5p_serial_init(uart); in s5p_serial_probe()
149 serial_err_check(uart, 0); in s5p_serial_getc()
161 writeb(ch, &uart->utxh); in s5p_serial_putc()
162 serial_err_check(uart, 1); in s5p_serial_putc()
225 s5p_serial_init(uart); in _debug_uart_init()
[all …]
H A Dserial_meson.c48 val = readl(&uart->control); in meson_serial_init()
50 writel(val, &uart->control); in meson_serial_init()
52 writel(val, &uart->control); in meson_serial_init()
54 writel(val, &uart->control); in meson_serial_init()
60 struct meson_uart *const uart = plat->reg; in meson_serial_probe() local
62 meson_serial_init(uart); in meson_serial_probe()
70 struct meson_uart *const uart = plat->reg; in meson_serial_getc() local
75 return readl(&uart->rfifo) & 0xff; in meson_serial_getc()
81 struct meson_uart *const uart = plat->reg; in meson_serial_putc() local
86 writel(ch, &uart->wfifo); in meson_serial_putc()
[all …]
H A Dserial_sti_asc.c70 struct sti_asc_uart *const uart = priv->regs; in sti_asc_pending() local
73 status = readl(&uart->status); in sti_asc_pending()
108 val = readl(&uart->control); in _sti_asc_serial_setbrg()
109 writel(val & ~RUN, &uart->control); in _sti_asc_serial_setbrg()
112 writel(t, &uart->baudrate); in _sti_asc_serial_setbrg()
114 writel(1, &uart->txreset); in _sti_asc_serial_setbrg()
115 writel(1, &uart->rxreset); in _sti_asc_serial_setbrg()
122 writel(val, &uart->control); in _sti_asc_serial_setbrg()
131 struct sti_asc_uart *const uart = priv->regs; in sti_asc_serial_setbrg() local
146 return readl(&uart->rxbuf); in sti_asc_serial_getc()
[all …]
/openbmc/u-boot/board/astro/mcf5373l/
H A Dmcf5373l.c90 uart_t *uart; in rs_serial_init() local
95 uart = (uart_t *)(MMAP_UART0); in rs_serial_init()
116 writeb(0, &uart->uimr); in rs_serial_init()
140 uart_t *uart; in astro_put_char() local
143 uart = (uart_t *)(MMAP_UART0); in astro_put_char()
153 writeb(ch, &uart->utb); in astro_put_char()
160 uart_t *uart; in astro_is_char() local
162 uart = (uart_t *)(MMAP_UART0); in astro_is_char()
168 uart_t *uart; in astro_get_char() local
170 uart = (uart_t *)(MMAP_UART0); in astro_get_char()
[all …]
/openbmc/linux/drivers/tty/serial/
H A Dmen_z135_uart.c440 "men_z135_intr", uart); in men_z135_request_irq()
575 if (uart->automode) in men_z135_start_tx()
578 men_z135_handle_tx(uart); in men_z135_start_tx()
642 free_irq(uart->port.irq, uart); in men_z135_shutdown()
693 uart->automode = true; in men_z135_set_termios()
697 uart->automode = false; in men_z135_set_termios()
748 uart->mem = mem; in men_z135_request_port()
817 if (!uart) in men_z135_probe()
821 if (!uart->rxbuf) in men_z135_probe()
835 uart->port.dev = dev; in men_z135_probe()
[all …]
H A Dtimbuart.c174 struct timbuart_port *uart = from_tasklet(uart, t, tasklet); in timbuart_tasklet() local
182 if (!uart->usedma) in timbuart_tasklet()
187 if (!uart->usedma) in timbuart_tasklet()
251 "timb-uart", uart); in timbuart_startup()
351 uart->last_ier = ioread32(uart->port.membase + TIMBUART_IER); in timbuart_handleinterrupt()
418 uart = kzalloc(sizeof(*uart), GFP_KERNEL); in timbuart_probe()
419 if (!uart) { in timbuart_probe()
424 uart->usedma = 0; in timbuart_probe()
431 uart->port.irq = 0; in timbuart_probe()
468 kfree(uart); in timbuart_probe()
[all …]
H A Dliteuart.c76 uart->irq_reg |= mask; in liteuart_update_irq_reg()
78 uart->irq_reg &= ~mask; in liteuart_update_irq_reg()
99 del_timer(&uart->timer); in liteuart_stop_rx()
155 struct liteuart_port *uart = from_timer(uart, t, timer); in liteuart_timer() local
189 KBUILD_MODNAME, uart); in liteuart_startup()
282 struct liteuart_port *uart; in liteuart_probe() local
288 if (!uart) in liteuart_probe()
291 port = &uart->port; in liteuart_probe()
383 port = &uart->port; in liteuart_console_write()
400 if (!uart) in liteuart_console_setup()
[all …]
/openbmc/linux/Documentation/devicetree/bindings/serial/
H A Dmediatek,uart.yaml23 - const: mediatek,mt6577-uart
26 - mediatek,mt2701-uart
27 - mediatek,mt2712-uart
28 - mediatek,mt6580-uart
29 - mediatek,mt6582-uart
30 - mediatek,mt6589-uart
31 - mediatek,mt6755-uart
32 - mediatek,mt6765-uart
33 - mediatek,mt6779-uart
87 - const: uart
[all …]
H A Dfsl-imx-uart.yaml19 - const: fsl,imx1-uart
20 - const: fsl,imx21-uart
23 - fsl,imx25-uart
24 - fsl,imx27-uart
25 - fsl,imx31-uart
26 - fsl,imx35-uart
27 - fsl,imx50-uart
28 - fsl,imx51-uart
76 Indicate the uart works in DTE mode. The uart works in DCE mode by default.
122 compatible = "fsl,imx51-uart", "fsl,imx21-uart";
[all …]
H A Dsnps-dw-apb-uart.yaml20 - renesas,r9a06g032-uart
22 - const: renesas,rzn1-uart
25 - rockchip,px30-uart
26 - rockchip,rk1808-uart
27 - rockchip,rk3036-uart
28 - rockchip,rk3066-uart
29 - rockchip,rk3128-uart
30 - rockchip,rk3188-uart
31 - rockchip,rk3288-uart
51 - const: snps,dw-apb-uart
[all …]
H A Dsamsung_uart.yaml25 - apple,s5l-uart
26 - axis,artpec8-uart
27 - samsung,s3c2410-uart
28 - samsung,s3c2412-uart
29 - samsung,s3c2440-uart
30 - samsung,s3c6400-uart
31 - samsung,s5pv210-uart
53 - const: uart
77 samsung,uart-fifosize:
109 - const: uart
[all …]
H A Damlogic,meson-uart.yaml31 - amlogic,meson6-uart
32 - amlogic,meson8-uart
33 - amlogic,meson8b-uart
34 - amlogic,meson-gx-uart
45 - amlogic,meson6-uart
46 - amlogic,meson8-uart
47 - amlogic,meson8b-uart
48 - amlogic,meson-gx-uart
49 - amlogic,meson-s4-uart
50 - amlogic,meson-a1-uart
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_tegra.c46 struct tegra_uart *uart; in tegra_uart_probe() local
51 uart = devm_kzalloc(&pdev->dev, sizeof(*uart), GFP_KERNEL); in tegra_uart_probe()
52 if (!uart) in tegra_uart_probe()
92 if (IS_ERR(uart->rst)) in tegra_uart_probe()
93 return PTR_ERR(uart->rst); in tegra_uart_probe()
98 if (IS_ERR(uart->clk)) { in tegra_uart_probe()
118 platform_set_drvdata(pdev, uart); in tegra_uart_probe()
119 uart->line = ret; in tegra_uart_probe()
124 reset_control_assert(uart->rst); in tegra_uart_probe()
136 reset_control_assert(uart->rst); in tegra_uart_remove()
[all …]
H A D8250_core.c839 memset(&uart, 0, sizeof(uart)); in serial8250_probe()
859 uart.bugs = p->bugs; in serial8250_probe()
1026 if (!uart) { in serial8250_register_8250_port()
1032 if (!uart) in serial8250_register_8250_port()
1040 if (uart->port.dev) in serial8250_register_8250_port()
1071 if (uart->port.fifosize && !uart->tx_loadsz) in serial8250_register_8250_port()
1072 uart->tx_loadsz = uart->port.fifosize; in serial8250_register_8250_port()
1140 &uart->port); in serial8250_register_8250_port()
1148 uart->port.iobase, in serial8250_register_8250_port()
1150 uart->port.irq); in serial8250_register_8250_port()
[all …]
H A D8250_pnp.c445 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe()
447 uart.port.irq = pnp_irq(dev, 0); in serial_pnp_probe()
450 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
453 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
456 uart.port.iotype = UPIO_MEM; in serial_pnp_probe()
457 uart.port.flags = UPF_IOREMAP; in serial_pnp_probe()
463 uart.port.iobase, (unsigned long long)uart.port.mapbase, in serial_pnp_probe()
464 uart.port.irq, uart.port.iotype); in serial_pnp_probe()
468 uart.port.type = PORT_8250_CIR; in serial_pnp_probe()
474 uart.port.uartclk = 1843200; in serial_pnp_probe()
[all …]
H A D8250_hp300.c160 struct uart_8250_port uart; in hpdca_init_one() local
169 memset(&uart, 0, sizeof(uart)); in hpdca_init_one()
174 uart.port.irq = d->ipl; in hpdca_init_one()
177 uart.port.membase = (char *)(uart.port.mapbase + DIO_VIRADDRBASE); in hpdca_init_one()
178 uart.port.regshift = 1; in hpdca_init_one()
179 uart.port.dev = &d->dev; in hpdca_init_one()
247 memset(&uart, 0, sizeof(uart)); in hp300_8250_init()
256 uart.port.irq = 0; in hp300_8250_init()
258 uart.port.mapbase = base; in hp300_8250_init()
260 uart.port.regshift = 2; in hp300_8250_init()
[all …]
H A D8250_lpc18xx.c93 struct uart_8250_port uart; in lpc18xx_serial_probe() local
107 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe()
111 if (!uart.port.membase) in lpc18xx_serial_probe()
144 uart.port.line = ret; in lpc18xx_serial_probe()
150 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe()
151 uart.port.irq = irq; in lpc18xx_serial_probe()
152 uart.port.iotype = UPIO_MEM32; in lpc18xx_serial_probe()
154 uart.port.regshift = 2; in lpc18xx_serial_probe()
155 uart.port.type = PORT_16550A; in lpc18xx_serial_probe()
158 uart.port.private_data = data; in lpc18xx_serial_probe()
[all …]
H A D8250_parisc.c25 struct uart_8250_port uart; in serial_init_chip() local
52 memset(&uart, 0, sizeof(uart)); in serial_init_chip()
53 uart.port.iotype = UPIO_MEM; in serial_init_chip()
57 uart.port.mapbase = address; in serial_init_chip()
58 uart.port.membase = ioremap(address, 16); in serial_init_chip()
59 if (!uart.port.membase) { in serial_init_chip()
63 uart.port.irq = dev->irq; in serial_init_chip()
64 uart.port.flags = UPF_BOOT_AUTOCONF; in serial_init_chip()
65 uart.port.dev = &dev->dev; in serial_init_chip()
67 err = serial8250_register_8250_port(&uart); in serial_init_chip()
[all …]
H A D8250_dfl.c63 uart->port.uartclk = clk_freq; in dfl_uart_get_params()
71 uart->port.type = PORT_ALTR_16550_F32; in dfl_uart_get_params()
75 uart->port.type = PORT_ALTR_16550_F64; in dfl_uart_get_params()
79 uart->port.type = PORT_ALTR_16550_F128; in dfl_uart_get_params()
94 uart->port.iotype = UPIO_MEM32; in dfl_uart_get_params()
98 uart->port.iotype = UPIO_MEM16; in dfl_uart_get_params()
112 struct uart_8250_port uart = { }; in dfl_uart_probe() local
116 uart.port.flags = UPF_IOREMAP; in dfl_uart_probe()
117 uart.port.mapbase = dfl_dev->mmio_res.start; in dfl_uart_probe()
120 ret = dfl_uart_get_params(dfl_dev, &uart); in dfl_uart_probe()
[all …]
/openbmc/linux/drivers/firmware/
H A Dpcdp.c20 setup_serial_console(struct pcdp_uart *uart) in setup_serial_console() argument
29 mmio ? "mmio" : "io", uart->addr.address); in setup_serial_console()
30 if (uart->baud) { in setup_serial_console()
31 p += sprintf(p, ",%llu", uart->baud); in setup_serial_console()
32 if (uart->bits) { in setup_serial_console()
33 switch (uart->parity) { in setup_serial_console()
38 p += sprintf(p, "%c%d", parity, uart->bits); in setup_serial_console()
89 struct pcdp_uart *uart; in efi_setup_pcdp_console() local
111 for (i = 0, uart = pcdp->uart; i < pcdp->num_uarts; i++, uart++) { in efi_setup_pcdp_console()
113 if (uart->type == PCDP_CONSOLE_UART) { in efi_setup_pcdp_console()
[all …]
/openbmc/openbmc/meta-bytedance/meta-g220a/recipes-phosphor/console/obmc-console/
H A Dobmc-console@.service7 …/bin/sh -c 'echo -n "uart3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
8 …/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
9 …e=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
10 …/bin/sh -c 'echo -n "uart4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
12 …t=/bin/sh -c 'echo -n "io1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
13 …t=/bin/sh -c 'echo -n "io3" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
14 …t=/bin/sh -c 'echo -n "io4" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
15 …/bin/sh -c 'echo -n "uart1" > /sys/bus/platform/drivers/aspeed-uart-routing/1e78909c.uart-routing/…
/openbmc/u-boot/arch/arm/mach-uniphier/debug-uart/
H A DMakefile4 obj-$(CONFIG_ARCH_UNIPHIER_LD4) += debug-uart-ld4.o
5 obj-$(CONFIG_ARCH_UNIPHIER_PRO4) += debug-uart-pro4.o
6 obj-$(CONFIG_ARCH_UNIPHIER_SLD8) += debug-uart-sld8.o
7 obj-$(CONFIG_ARCH_UNIPHIER_PRO5) += debug-uart-pro5.o
8 obj-$(CONFIG_ARCH_UNIPHIER_PXS2) += debug-uart-pxs2.o
9 obj-$(CONFIG_ARCH_UNIPHIER_LD6B) += debug-uart-ld6b.o
10 obj-$(CONFIG_ARCH_UNIPHIER_LD11) += debug-uart-ld20.o
11 obj-$(CONFIG_ARCH_UNIPHIER_LD20) += debug-uart-ld20.o
14 obj-y += debug-uart.o

12345678910>>...47