/linux/sound/drivers/ |
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() 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 …]
|
/linux/drivers/tty/serial/ |
A D | men_z135_uart.c | 443 "men_z135_intr", uart); in men_z135_request_irq() 578 if (uart->automode) in men_z135_start_tx() 581 men_z135_handle_tx(uart); in men_z135_start_tx() 645 free_irq(uart->port.irq, uart); in men_z135_shutdown() 696 uart->automode = true; in men_z135_set_termios() 700 uart->automode = false; in men_z135_set_termios() 751 uart->mem = mem; in men_z135_request_port() 820 if (!uart) in men_z135_probe() 824 if (!uart->rxbuf) in men_z135_probe() 839 uart->port.dev = dev; in men_z135_probe() [all …]
|
A D | timbuart.c | 175 struct timbuart_port *uart = from_tasklet(uart, t, tasklet); in timbuart_tasklet() local 183 if (!uart->usedma) in timbuart_tasklet() 188 if (!uart->usedma) in timbuart_tasklet() 252 "timb-uart", uart); in timbuart_startup() 352 uart->last_ier = ioread32(uart->port.membase + TIMBUART_IER); in timbuart_handleinterrupt() 419 uart = kzalloc(sizeof(*uart), GFP_KERNEL); in timbuart_probe() 420 if (!uart) { in timbuart_probe() 425 uart->usedma = 0; in timbuart_probe() 432 uart->port.irq = 0; in timbuart_probe() 469 kfree(uart); in timbuart_probe() [all …]
|
A D | liteuart.c | 72 struct liteuart_port *uart = from_timer(uart, t, timer); in liteuart_timer() local 154 del_timer(&uart->timer); in liteuart_stop_rx() 248 struct liteuart_port *uart; in liteuart_probe() local 261 if (!uart) in liteuart_probe() 268 uart->id = dev_id; in liteuart_probe() 269 port = &uart->port; in liteuart_probe() 335 struct liteuart_port *uart; in liteuart_console_write() local 340 port = &uart->port; in liteuart_console_write() 349 struct liteuart_port *uart; in liteuart_console_setup() local 357 if (!uart) in liteuart_console_setup() [all …]
|
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() 225 uart); in vt8500_start_tx() 511 wait_for_xmitr(&vt8500_port->uart); in vt8500_console_write() 688 vt8500_port->uart.type = PORT_VT8500; in vt8500_serial_probe() 689 vt8500_port->uart.iotype = UPIO_MEM; in vt8500_serial_probe() 692 vt8500_port->uart.fifosize = 16; in vt8500_serial_probe() 694 vt8500_port->uart.line = port; in vt8500_serial_probe() [all …]
|
A D | arc_uart.c | 76 #define UART_SET_DATA(uart, val) UART_REG_SET(uart, R_DATA, val) argument 77 #define UART_GET_DATA(uart) UART_REG_GET(uart, R_DATA) argument 79 #define UART_SET_BAUDH(uart, val) UART_REG_SET(uart, R_BAUDH, val) argument 80 #define UART_SET_BAUDL(uart, val) UART_REG_SET(uart, R_BAUDL, val) argument 82 #define UART_CLR_STATUS(uart, val) UART_REG_CLR(uart, R_STS, val) argument 83 #define UART_GET_STATUS(uart) UART_REG_GET(uart, R_STS) argument 86 #define UART_RX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB) argument 87 #define UART_TX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, TXIENB) argument 90 #define UART_RX_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB) argument 91 #define UART_TX_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, TXIENB) argument [all …]
|
/linux/drivers/tty/serial/8250/ |
A D | 8250_core.c | 802 memset(&uart, 0, sizeof(uart)); in serial8250_probe() 985 if (uart && uart->port.type != PORT_8250_CIR) { in serial8250_register_8250_port() 988 if (uart->port.dev) in serial8250_register_8250_port() 1012 uart->dma = up->dma; in serial8250_register_8250_port() 1015 if (uart->port.fifosize && !uart->tx_loadsz) in serial8250_register_8250_port() 1016 uart->tx_loadsz = uart->port.fifosize; in serial8250_register_8250_port() 1084 &uart->port); in serial8250_register_8250_port() 1092 uart->port.iobase, in serial8250_register_8250_port() 1094 uart->port.irq); in serial8250_register_8250_port() 1115 uart->port.dev = NULL; in serial8250_register_8250_port() [all …]
|
A D | 8250_tegra.c | 45 struct tegra_uart *uart; in tegra_uart_probe() local 50 uart = devm_kzalloc(&pdev->dev, sizeof(*uart), GFP_KERNEL); in tegra_uart_probe() 51 if (!uart) in tegra_uart_probe() 91 if (IS_ERR(uart->rst)) in tegra_uart_probe() 92 return PTR_ERR(uart->rst); in tegra_uart_probe() 97 if (IS_ERR(uart->clk)) { in tegra_uart_probe() 117 platform_set_drvdata(pdev, uart); in tegra_uart_probe() 118 uart->line = ret; in tegra_uart_probe() 123 clk_disable_unprepare(uart->clk); in tegra_uart_probe() 133 reset_control_assert(uart->rst); in tegra_uart_remove() [all …]
|
A D | 8250_pnp.c | 445 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 …]
|
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 …]
|
A D | 8250_lpc18xx.c | 104 struct uart_8250_port uart; in lpc18xx_serial_probe() local 118 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe() 122 if (!uart.port.membase) in lpc18xx_serial_probe() 155 uart.port.line = ret; in lpc18xx_serial_probe() 161 uart.port.dev = &pdev->dev; in lpc18xx_serial_probe() 162 uart.port.irq = irq; in lpc18xx_serial_probe() 163 uart.port.iotype = UPIO_MEM32; in lpc18xx_serial_probe() 165 uart.port.regshift = 2; in lpc18xx_serial_probe() 166 uart.port.type = PORT_16550A; in lpc18xx_serial_probe() 169 uart.port.private_data = data; in lpc18xx_serial_probe() [all …]
|
A D | 8250_gsc.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 …]
|
A D | 8250_men_mcb.c | 19 struct uart_8250_port uart; member 106 data[i].uart.port.dev = mdev->dma_dev; in serial_8250_men_mcb_probe() 107 spin_lock_init(&data[i].uart.port.lock); in serial_8250_men_mcb_probe() 109 data[i].uart.port.type = PORT_16550; in serial_8250_men_mcb_probe() 112 data[i].uart.port.iotype = UPIO_MEM; in serial_8250_men_mcb_probe() 113 data[i].uart.port.uartclk = men_lookup_uartclk(mdev); in serial_8250_men_mcb_probe() 114 data[i].uart.port.regshift = 0; in serial_8250_men_mcb_probe() 115 data[i].uart.port.irq = mcb_get_irq(mdev); in serial_8250_men_mcb_probe() 116 data[i].uart.port.membase = membase; in serial_8250_men_mcb_probe() 117 data[i].uart.port.fifosize = 60; in serial_8250_men_mcb_probe() [all …]
|
A D | 8250_pxa.c | 93 struct uart_8250_port uart = {}; in serial_pxa_probe() local 120 uart.port.line = ret; in serial_pxa_probe() 122 uart.port.type = PORT_XSCALE; in serial_pxa_probe() 123 uart.port.iotype = UPIO_MEM32; in serial_pxa_probe() 124 uart.port.mapbase = mmres->start; in serial_pxa_probe() 125 uart.port.regshift = 2; in serial_pxa_probe() 126 uart.port.irq = irq; in serial_pxa_probe() 127 uart.port.fifosize = 64; in serial_pxa_probe() 129 uart.port.dev = &pdev->dev; in serial_pxa_probe() 131 uart.port.pm = serial_pxa_pm; in serial_pxa_probe() [all …]
|
/linux/Documentation/devicetree/bindings/serial/ |
A D | fsl-imx-uart.yaml | 19 - 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 58 Indicate the uart works in DTE mode. The uart works in DCE mode by default. 86 uart-has-rtscts: true 107 compatible = "fsl,imx51-uart", "fsl,imx21-uart"; [all …]
|
A D | mtk-uart.txt | 5 * "mediatek,mt2701-uart" for MT2701 compatible UARTS 6 * "mediatek,mt2712-uart" for MT2712 compatible UARTS 7 * "mediatek,mt6580-uart" for MT6580 compatible UARTS 8 * "mediatek,mt6582-uart" for MT6582 compatible UARTS 9 * "mediatek,mt6589-uart" for MT6589 compatible UARTS 10 * "mediatek,mt6755-uart" for MT6755 compatible UARTS 18 * "mediatek,mt7986-uart", "mediatek,mt6577-uart" for MT7986 compatible UARTS 22 * "mediatek,mt8183-uart", "mediatek,mt6577-uart" for MT8183 compatible UARTS 23 * "mediatek,mt8192-uart", "mediatek,mt6577-uart" for MT8192 compatible UARTS 24 * "mediatek,mt8195-uart", "mediatek,mt6577-uart" for MT8195 compatible UARTS [all …]
|
A D | snps-dw-apb-uart.yaml | 20 - 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,rk3188-uart 30 - rockchip,rk3288-uart 37 - const: snps,dw-apb-uart 43 - const: snps,dw-apb-uart [all …]
|
A D | samsung_uart.yaml | 22 - apple,s5l-uart 23 - samsung,s3c2410-uart 24 - samsung,s3c2412-uart 25 - samsung,s3c2440-uart 26 - samsung,s3c6400-uart 27 - samsung,s5pv210-uart 49 - const: uart 70 samsung,uart-fifosize: 103 - const: uart 112 - apple,s5l-uart [all …]
|
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" 20 (marvell,armada-3700-uart): "uart-sum", "uart-tx" and "uart-rx", 25 (marvell,armada-3700-uart-ext): "uart-tx" and "uart-rx", 35 compatible = "marvell,armada-3700-uart"; 42 interrupt-names = "uart-sum", "uart-tx", "uart-rx"; 46 compatible = "marvell,armada-3700-uart-ext"; 52 interrupt-names = "uart-tx", "uart-rx";
|
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 96 - ti,omap2-uart 97 - ti,omap3-uart [all …]
|
A D | 8250.yaml | 29 const: mrvl,mmp-uart 61 - const: intel,xscale-uart 62 - const: mrvl,pxa-uart 63 - const: nuvoton,wpcm450-uart 64 - const: nuvoton,npcm750-uart 65 - const: nvidia,tegra20-uart 66 - const: nxp,lpc3220-uart 81 - nxp,lpc1850-uart 83 - ti,da830-uart 90 - ralink,rt2880-uart [all …]
|
A D | sprd-uart.yaml | 5 $id: "http://devicetree.org/schemas/serial/sprd-uart.yaml#" 20 - sprd,sc9860-uart 21 - sprd,sc9863a-uart 22 - sprd,ums512-uart 23 - const: sprd,sc9836-uart 24 - const: sprd,sc9836-uart 38 "enable" for UART module enable clock, "uart" for UART clock, "source" 42 - const: uart 66 compatible = "sprd,sc9860-uart", "sprd,sc9836-uart"; 71 clock-names = "enable", "uart", "source";
|
/linux/drivers/firmware/ |
A D | pcdp.c | 20 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 …]
|
/linux/drivers/misc/ibmasm/ |
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()
|
/linux/arch/arm/boot/dts/ |
A D | r9a06g032.dtsi | 81 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart"; 92 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart"; 103 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart", "snps,dw-apb-uart"; 114 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart"; 125 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart"; 136 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart"; 147 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart"; 158 compatible = "renesas,r9a06g032-uart", "renesas,rzn1-uart";
|