| /linux-6.15/sound/drivers/ |
| H A D | serial-u16550.c | 179 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() 384 uart->old_divisor_lsb = inb(uart->base + UART_DLL); in snd_uart16550_do_open() 385 uart->old_divisor_msb = inb(uart->base + UART_DLM); in snd_uart16550_do_open() 612 if (uart->fifo_count < uart->fifo_limit) { in snd_uart16550_output_byte() 625 uart->rmidi->name, uart->base); in snd_uart16550_output_byte() 702 snd_uart16550_output_byte(uart, substream, uart->prev_status[uart->prev_out]); in snd_uart16550_output_write() 714 uart->prev_status[uart->prev_out] = midi_byte; in snd_uart16550_output_write() [all …]
|
| /linux-6.15/drivers/tty/serial/ |
| H A D | men_z135_uart.c | 434 "men_z135_intr", uart); in men_z135_request_irq() 569 if (uart->automode) in men_z135_start_tx() 572 men_z135_handle_tx(uart); in men_z135_start_tx() 636 free_irq(uart->port.irq, uart); in men_z135_shutdown() 687 uart->automode = true; in men_z135_set_termios() 691 uart->automode = false; in men_z135_set_termios() 742 uart->mem = mem; in men_z135_request_port() 811 if (!uart) in men_z135_probe() 815 if (!uart->rxbuf) in men_z135_probe() 829 uart->port.dev = dev; in men_z135_probe() [all …]
|
| H A D | timbuart.c | 171 struct timbuart_port *uart = from_tasklet(uart, t, tasklet); in timbuart_tasklet() local 179 if (!uart->usedma) in timbuart_tasklet() 184 if (!uart->usedma) in timbuart_tasklet() 248 "timb-uart", uart); in timbuart_startup() 348 uart->last_ier = ioread32(uart->port.membase + TIMBUART_IER); in timbuart_handleinterrupt() 415 uart = kzalloc(sizeof(*uart), GFP_KERNEL); in timbuart_probe() 416 if (!uart) { in timbuart_probe() 421 uart->usedma = 0; in timbuart_probe() 428 uart->port.irq = 0; in timbuart_probe() 465 kfree(uart); in timbuart_probe() [all …]
|
| H A D | liteuart.c | 76 uart->irq_reg |= mask; in liteuart_update_irq_reg() 78 uart->irq_reg &= ~mask; in liteuart_update_irq_reg() 99 timer_delete(&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() 381 port = &uart->port; in liteuart_console_write() 398 if (!uart) in liteuart_console_setup() [all …]
|
| H A D | vt8500_serial.c | 96 struct uart_port uart; member 126 uart); in vt8500_stop_tx() 136 uart); in vt8500_stop_rx() 146 uart); in vt8500_enable_ms() 210 uart); in vt8500_start_tx() 490 wait_for_xmitr(&vt8500_port->uart); in vt8500_console_write() 668 vt8500_port->uart.iotype = UPIO_MEM; in vt8500_serial_probe() 670 vt8500_port->uart.irq = irq; in vt8500_serial_probe() 671 vt8500_port->uart.fifosize = 16; in vt8500_serial_probe() 673 vt8500_port->uart.line = port; in vt8500_serial_probe() [all …]
|
| /linux-6.15/Documentation/devicetree/bindings/serial/ |
| H A D | mediatek,uart.yaml | 23 - 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 89 - const: uart [all …]
|
| H A D | snps-dw-apb-uart.yaml | 23 - const: renesas,rzn1-uart 24 - const: snps,dw-apb-uart 51 - const: renesas,rzn1-uart 52 - const: snps,dw-apb-uart 57 - const: renesas,rzn1-uart 62 - rockchip,px30-uart 63 - rockchip,rk1808-uart 64 - rockchip,rk3036-uart 80 - sophgo,sg2044-uart 85 - const: snps,dw-apb-uart [all …]
|
| H A D | samsung_uart.yaml | 22 - apple,s5l-uart 23 - axis,artpec8-uart 24 - google,gs101-uart 25 - samsung,s3c6400-uart 26 - samsung,s5pv210-uart 29 - samsung,exynos850-uart 34 - tesla,fsd-uart 85 samsung,uart-fifosize: 114 - const: uart 123 - const: uart [all …]
|
| H A D | fsl-imx-uart.yaml | 15 - const: fsl,imx1-uart 16 - const: fsl,imx21-uart 19 - fsl,imx25-uart 20 - fsl,imx27-uart 21 - fsl,imx31-uart 22 - fsl,imx35-uart 23 - fsl,imx50-uart 24 - fsl,imx51-uart 78 Indicate the uart works in DTE mode. The uart works in DCE mode by default. 143 compatible = "fsl,imx51-uart", "fsl,imx21-uart"; [all …]
|
| H A D | amlogic,meson-uart.yaml | 31 - amlogic,meson6-uart 32 - amlogic,meson8-uart 33 - amlogic,meson8b-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 58 - amlogic,a4-uart [all …]
|
| H A D | sprd-uart.yaml | 20 - sprd,ums9632-uart 21 - const: sprd,sc9632-uart 24 - sprd,sc9860-uart 25 - sprd,sc9863a-uart 26 - sprd,ums512-uart 27 - sprd,ums9620-uart 28 - const: sprd,sc9836-uart 30 - sprd,sc9632-uart 31 - sprd,sc9836-uart 49 - const: uart [all …]
|
| H A D | 8250_omap.yaml | 20 - ti,am3352-uart 21 - ti,am4372-uart 22 - ti,am654-uart 23 - ti,dra742-uart 24 - ti,omap2-uart 25 - ti,omap3-uart 26 - ti,omap4-uart 29 - ti,am64-uart 93 - ti,omap2-uart 94 - ti,omap3-uart [all …]
|
| H A D | 8250.yaml | 30 const: mrvl,mmp-uart 62 - const: intel,xscale-uart 63 - const: mrvl,pxa-uart 64 - const: nuvoton,wpcm450-uart 65 - const: nuvoton,npcm750-uart 66 - const: nvidia,tegra20-uart 67 - const: nxp,lpc3220-uart 81 - nxp,lpc1850-uart 83 - ti,da830-uart 115 - mrvl,mmp-uart [all …]
|
| H A D | mvebu-uart.txt | 6 - "marvell,armada-3700-uart" for the standard variant of the UART 9 - "marvell,armada-3700-uart-ext" for the extended variant of the 14 is provided (possible only with the "marvell,armada-3700-uart" 23 (marvell,armada-3700-uart): "uart-sum", "uart-tx" and "uart-rx", 28 (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx", 38 compatible = "marvell,armada-3700-uart"; 45 interrupt-names = "uart-sum", "uart-tx", "uart-rx"; 49 compatible = "marvell,armada-3700-uart-ext"; 55 interrupt-names = "uart-tx", "uart-rx";
|
| /linux-6.15/drivers/tty/serial/8250/ |
| H A D | 8250_tegra.c | 46 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() 85 if (IS_ERR(uart->rst)) in tegra_uart_probe() 86 return PTR_ERR(uart->rst); in tegra_uart_probe() 90 if (IS_ERR(uart->clk)) { in tegra_uart_probe() 110 platform_set_drvdata(pdev, uart); in tegra_uart_probe() 111 uart->line = ret; in tegra_uart_probe() 116 reset_control_assert(uart->rst); in tegra_uart_probe() 128 reset_control_assert(uart->rst); in tegra_uart_remove() [all …]
|
| H A D | 8250_core.c | 706 if (!uart) { in serial8250_register_8250_port() 712 if (!uart) in serial8250_register_8250_port() 720 if (uart->port.dev) in serial8250_register_8250_port() 748 uart->dma = up->dma; in serial8250_register_8250_port() 751 if (uart->port.fifosize && !uart->tx_loadsz) in serial8250_register_8250_port() 752 uart->tx_loadsz = uart->port.fifosize; in serial8250_register_8250_port() 823 &uart->port); in serial8250_register_8250_port() 831 uart->port.iobase, in serial8250_register_8250_port() 833 uart->port.irq); in serial8250_register_8250_port() 858 uart->port.dev = NULL; in serial8250_register_8250_port() [all …]
|
| H A D | 8250_platform.c | 135 uart.port.uartclk = 1843200; in serial8250_probe_acpi() 137 uart.port.dev = &pdev->dev; in serial8250_probe_acpi() 156 struct uart_8250_port uart; in serial8250_probe_platform() local 159 memset(&uart, 0, sizeof(uart)); in serial8250_probe_platform() 167 uart.port.irq = p->irq; in serial8250_probe_platform() 175 uart.port.hub6 = p->hub6; in serial8250_probe_platform() 178 uart.port.type = p->type; in serial8250_probe_platform() 179 uart.bugs = p->bugs; in serial8250_probe_platform() 182 uart.dl_read = p->dl_read; in serial8250_probe_platform() 189 uart.port.pm = p->pm; in serial8250_probe_platform() [all …]
|
| H A D | 8250_pnp.c | 437 struct uart_8250_port uart, *port; in serial_pnp_probe() local 447 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe() 449 uart.port.iobase = pnp_port_start(dev, 2); in serial_pnp_probe() 451 uart.port.iobase = pnp_port_start(dev, 0); in serial_pnp_probe() 454 uart.port.mapsize = pnp_mem_len(dev, 0); in serial_pnp_probe() 455 uart.port.flags = UPF_IOREMAP; in serial_pnp_probe() 459 uart.port.uartclk = 1843200; in serial_pnp_probe() 460 uart.port.dev = &dev->dev; in serial_pnp_probe() 472 uart.port.type = PORT_8250_CIR; in serial_pnp_probe() 477 uart.port.iobase, (unsigned long long)uart.port.mapbase, in serial_pnp_probe() [all …]
|
| H A D | 8250_hp300.c | 160 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 D | 8250_lpc18xx.c | 93 struct uart_8250_port uart; in lpc18xx_serial_probe() local 103 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe() 107 if (!uart.port.membase) in lpc18xx_serial_probe() 141 spin_lock_init(&uart.port.lock); in lpc18xx_serial_probe() 142 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe() 143 uart.port.mapbase = res->start; in lpc18xx_serial_probe() 144 uart.port.type = PORT_16550A; in lpc18xx_serial_probe() 147 uart.port.private_data = data; in lpc18xx_serial_probe() 156 uart.port.iotype = UPIO_MEM32; in lpc18xx_serial_probe() 157 uart.port.regshift = 2; in lpc18xx_serial_probe() [all …]
|
| H A D | 8250_ni.c | 261 u8 value = serial_in(uart, reg); in ni16550_read_fifo_size() 281 struct uart_8250_port uart = {}; in ni16550_probe() local 294 spin_lock_init(&uart.port.lock); in ni16550_probe() 305 serial8250_set_defaults(&uart); in ni16550_probe() 309 uart.port.dev = dev; in ni16550_probe() 310 uart.port.irq = irq; in ni16550_probe() 326 uart.port.type = PORT_16550A; in ni16550_probe() 327 uart.port.fifosize = txfifosz; in ni16550_probe() 328 uart.tx_loadsz = txfifosz; in ni16550_probe() 340 &uart.port.uartclk)) { in ni16550_probe() [all …]
|
| H A D | 8250_parisc.c | 25 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 D | 8250_dfl.c | 63 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 …]
|
| H A D | 8250_pxa.c | 92 struct uart_8250_port uart = {}; in serial_pxa_probe() local 113 uart.port.type = PORT_XSCALE; in serial_pxa_probe() 114 uart.port.mapbase = mmres->start; in serial_pxa_probe() 116 uart.port.dev = &pdev->dev; in serial_pxa_probe() 118 uart.port.pm = serial_pxa_pm; in serial_pxa_probe() 119 uart.port.private_data = data; in serial_pxa_probe() 125 uart.port.iotype = UPIO_MEM32; in serial_pxa_probe() 126 uart.port.regshift = 2; in serial_pxa_probe() 127 uart.port.fifosize = 64; in serial_pxa_probe() 128 uart.tx_loadsz = 32; in serial_pxa_probe() [all …]
|
| /linux-6.15/drivers/misc/ibmasm/ |
| H A D | uart.c | 22 struct uart_8250_port uart; in ibmasm_register_uart() local 36 memset(&uart, 0, sizeof(uart)); in ibmasm_register_uart() 37 uart.port.irq = sp->irq; in ibmasm_register_uart() 38 uart.port.uartclk = 3686400; in ibmasm_register_uart() 39 uart.port.flags = UPF_SHARE_IRQ; in ibmasm_register_uart() 40 uart.port.iotype = UPIO_MEM; in ibmasm_register_uart() 41 uart.port.membase = iomem_base; in ibmasm_register_uart() 43 sp->serial_line = serial8250_register_8250_port(&uart); in ibmasm_register_uart()
|