/Linux-v5.4/sound/drivers/ |
D | serial-u16550.c | 159 static inline void snd_uart16550_add_timer(struct snd_uart16550 *uart) in snd_uart16550_add_timer() argument 161 if (!uart->timer_running) { in snd_uart16550_add_timer() 163 mod_timer(&uart->buffer_timer, jiffies + (HZ + 255) / 256); in snd_uart16550_add_timer() 164 uart->timer_running = 1; in snd_uart16550_add_timer() 168 static inline void snd_uart16550_del_timer(struct snd_uart16550 *uart) in snd_uart16550_del_timer() argument 170 if (uart->timer_running) { in snd_uart16550_del_timer() 171 del_timer(&uart->buffer_timer); in snd_uart16550_del_timer() 172 uart->timer_running = 0; in snd_uart16550_del_timer() 177 static inline void snd_uart16550_buffer_output(struct snd_uart16550 *uart) in snd_uart16550_buffer_output() argument 179 unsigned short buff_out = uart->buff_out; in snd_uart16550_buffer_output() [all …]
|
/Linux-v5.4/drivers/tty/serial/ |
D | men_z135_uart.c | 136 static inline void men_z135_reg_set(struct men_z135_port *uart, in men_z135_reg_set() argument 139 struct uart_port *port = &uart->port; in men_z135_reg_set() 143 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_set() 149 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_set() 158 static void men_z135_reg_clr(struct men_z135_port *uart, in men_z135_reg_clr() argument 161 struct uart_port *port = &uart->port; in men_z135_reg_clr() 165 spin_lock_irqsave(&uart->lock, flags); in men_z135_reg_clr() 171 spin_unlock_irqrestore(&uart->lock, flags); in men_z135_reg_clr() 181 static void men_z135_handle_modem_status(struct men_z135_port *uart) in men_z135_handle_modem_status() argument 185 msr = (uart->stat_reg >> 8) & 0xff; in men_z135_handle_modem_status() [all …]
|
D | timbuart.c | 55 struct timbuart_port *uart = in timbuart_start_tx() local 59 tasklet_schedule(&uart->tasklet); in timbuart_start_tx() 121 struct timbuart_port *uart = in timbuart_handle_tx_port() local 140 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port() 177 struct timbuart_port *uart = (struct timbuart_port *)arg; in timbuart_tasklet() local 180 spin_lock(&uart->port.lock); in timbuart_tasklet() 182 isr = ioread32(uart->port.membase + TIMBUART_ISR); in timbuart_tasklet() 183 dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr); in timbuart_tasklet() 185 if (!uart->usedma) in timbuart_tasklet() 186 timbuart_handle_tx_port(&uart->port, isr, &ier); in timbuart_tasklet() [all …]
|
D | vt8500_serial.c | 100 struct uart_port uart; member 130 uart); in vt8500_stop_tx() 140 uart); in vt8500_stop_rx() 150 uart); in vt8500_enable_ms() 231 uart); in vt8500_start_tx() 309 container_of(port, struct vt8500_port, uart); in vt8500_set_baud_rate() 333 container_of(port, struct vt8500_port, uart); in vt8500_startup() 352 container_of(port, struct vt8500_port, uart); in vt8500_shutdown() 357 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); in vt8500_shutdown() 358 vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); in vt8500_shutdown() [all …]
|
D | arc_uart.c | 80 #define UART_SET_DATA(uart, val) UART_REG_SET(uart, R_DATA, val) argument 81 #define UART_GET_DATA(uart) UART_REG_GET(uart, R_DATA) argument 83 #define UART_SET_BAUDH(uart, val) UART_REG_SET(uart, R_BAUDH, val) argument 84 #define UART_SET_BAUDL(uart, val) UART_REG_SET(uart, R_BAUDL, val) argument 86 #define UART_CLR_STATUS(uart, val) UART_REG_CLR(uart, R_STS, val) argument 87 #define UART_GET_STATUS(uart) UART_REG_GET(uart, R_STS) argument 89 #define UART_ALL_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB|TXIENB) argument 90 #define UART_RX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB) argument 91 #define UART_TX_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, TXIENB) argument 93 #define UART_ALL_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB|TXIENB) argument [all …]
|
/Linux-v5.4/drivers/tty/serial/8250/ |
D | 8250_pnp.c | 439 struct uart_8250_port uart, *port; in serial_pnp_probe() local 448 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe() 450 uart.port.irq = pnp_irq(dev, 0); in serial_pnp_probe() 452 uart.port.iobase = pnp_port_start(dev, 2); in serial_pnp_probe() 453 uart.port.iotype = UPIO_PORT; in serial_pnp_probe() 455 uart.port.iobase = pnp_port_start(dev, 0); in serial_pnp_probe() 456 uart.port.iotype = UPIO_PORT; in serial_pnp_probe() 458 uart.port.mapbase = pnp_mem_start(dev, 0); in serial_pnp_probe() 459 uart.port.iotype = UPIO_MEM; in serial_pnp_probe() 460 uart.port.flags = UPF_IOREMAP; in serial_pnp_probe() [all …]
|
D | 8250_core.c | 800 struct uart_8250_port uart; in serial8250_probe() local 803 memset(&uart, 0, sizeof(uart)); in serial8250_probe() 809 uart.port.iobase = p->iobase; in serial8250_probe() 810 uart.port.membase = p->membase; in serial8250_probe() 811 uart.port.irq = p->irq; in serial8250_probe() 812 uart.port.irqflags = p->irqflags; in serial8250_probe() 813 uart.port.uartclk = p->uartclk; in serial8250_probe() 814 uart.port.regshift = p->regshift; in serial8250_probe() 815 uart.port.iotype = p->iotype; in serial8250_probe() 816 uart.port.flags = p->flags; in serial8250_probe() [all …]
|
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() 172 uart.port.iotype = UPIO_MEM; in hpdca_init_one() 173 uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF; in hpdca_init_one() 174 uart.port.irq = d->ipl; in hpdca_init_one() 175 uart.port.uartclk = HPDCA_BAUD_BASE * 16; in hpdca_init_one() 176 uart.port.mapbase = (d->resource.start + UART_OFFSET); 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() [all …]
|
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() 120 uart.port.membase = devm_ioremap(&pdev->dev, res->start, in lpc18xx_serial_probe() 122 if (!uart.port.membase) in lpc18xx_serial_probe() 155 uart.port.line = ret; in lpc18xx_serial_probe() 160 spin_lock_init(&uart.port.lock); 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() 164 uart.port.mapbase = res->start; in lpc18xx_serial_probe() [all …]
|
D | 8250_bcm2835aux.c | 20 struct uart_8250_port uart; member 37 spin_lock_init(&data->uart.port.lock); in bcm2835aux_serial_probe() 38 data->uart.capabilities = UART_CAP_FIFO | UART_CAP_MINI; in bcm2835aux_serial_probe() 39 data->uart.port.dev = &pdev->dev; in bcm2835aux_serial_probe() 40 data->uart.port.regshift = 2; in bcm2835aux_serial_probe() 41 data->uart.port.type = PORT_16550; in bcm2835aux_serial_probe() 42 data->uart.port.iotype = UPIO_MEM; in bcm2835aux_serial_probe() 43 data->uart.port.fifosize = 8; in bcm2835aux_serial_probe() 44 data->uart.port.flags = UPF_SHARE_IRQ | in bcm2835aux_serial_probe() 61 data->uart.port.irq = ret; in bcm2835aux_serial_probe() [all …]
|
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() 55 uart.port.uartclk = (dev->id.sversion != 0xad) ? in serial_init_chip() 57 uart.port.mapbase = address; in serial_init_chip() 58 uart.port.membase = ioremap_nocache(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() [all …]
|
D | 8250_pxa.c | 94 struct uart_8250_port uart = {}; in serial_pxa_probe() local 118 uart.port.line = ret; in serial_pxa_probe() 120 uart.port.type = PORT_XSCALE; in serial_pxa_probe() 121 uart.port.iotype = UPIO_MEM32; in serial_pxa_probe() 122 uart.port.mapbase = mmres->start; in serial_pxa_probe() 123 uart.port.regshift = 2; in serial_pxa_probe() 124 uart.port.irq = irqres->start; in serial_pxa_probe() 125 uart.port.fifosize = 64; in serial_pxa_probe() 126 uart.port.flags = UPF_IOREMAP | UPF_SKIP_TEST; in serial_pxa_probe() 127 uart.port.dev = &pdev->dev; in serial_pxa_probe() [all …]
|
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() 110 data[i].uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ 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() [all …]
|
D | 8250_acorn.c | 43 struct uart_8250_port uart; in serial_card_probe() local 62 memset(&uart, 0, sizeof(struct uart_8250_port)); in serial_card_probe() 63 uart.port.irq = ec->irq; in serial_card_probe() 64 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in serial_card_probe() 65 uart.port.uartclk = type->uartclk; in serial_card_probe() 66 uart.port.iotype = UPIO_MEM; in serial_card_probe() 67 uart.port.regshift = 2; in serial_card_probe() 68 uart.port.dev = &ec->dev; in serial_card_probe() 71 uart.port.membase = info->vaddr + type->offset[i]; in serial_card_probe() 72 uart.port.mapbase = bus_addr + type->offset[i]; in serial_card_probe() [all …]
|
D | 8250_ingenic.c | 209 struct uart_8250_port uart = {}; in ingenic_uart_probe() local 233 spin_lock_init(&uart.port.lock); in ingenic_uart_probe() 234 uart.port.type = PORT_16550A; in ingenic_uart_probe() 235 uart.port.flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE; in ingenic_uart_probe() 236 uart.port.iotype = UPIO_MEM; in ingenic_uart_probe() 237 uart.port.mapbase = regs->start; in ingenic_uart_probe() 238 uart.port.regshift = 2; in ingenic_uart_probe() 239 uart.port.serial_out = ingenic_uart_serial_out; in ingenic_uart_probe() 240 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe() 241 uart.port.irq = irq->start; in ingenic_uart_probe() [all …]
|
/Linux-v5.4/Documentation/devicetree/bindings/serial/ |
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 11 * "mediatek,mt6765-uart" for MT6765 compatible UARTS 12 * "mediatek,mt6779-uart" for MT6779 compatible UARTS 13 * "mediatek,mt6795-uart" for MT6795 compatible UARTS 14 * "mediatek,mt6797-uart" for MT6797 compatible UARTS [all …]
|
D | sirf-uart.txt | 4 - compatible : Should be "sirf,prima2-uart", "sirf, prima2-usp-uart", 5 "sirf,atlas7-uart" or "sirf,atlas7-usp-uart". 7 - interrupts : Should contain uart interrupt 9 - clocks : Should contain uart clock number 12 - uart-has-rtscts: we have hardware flow controller pins in hardware 13 - rts-gpios: RTS pin for USP-based UART if uart-has-rtscts is true 14 - cts-gpios: CTS pin for USP-based UART if uart-has-rtscts is true 18 uart0: uart@b0050000 { 20 compatible = "sirf,prima2-uart"; 30 compatible = "sirf,prima2-usp-uart"; [all …]
|
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";
|
D | omap_serial.txt | 4 - compatible : should be "ti,j721e-uart", "ti,am654-uart" for J721E controllers 5 - compatible : should be "ti,am654-uart" for AM654 controllers 6 - compatible : should be "ti,omap2-uart" for OMAP2 controllers 7 - compatible : should be "ti,omap3-uart" for OMAP3 controllers 8 - compatible : should be "ti,omap4-uart" for OMAP4 controllers 9 - compatible : should be "ti,am4372-uart" for AM437x controllers 10 - compatible : should be "ti,am3352-uart" for AM335x controllers 11 - compatible : should be "ti,dra742-uart" for DRA7x controllers 13 - interrupts or interrupts-extended : Should contain the uart interrupt 17 - ti,hwmods : Must be "uart<n>", n being the instance number (1-based) [all …]
|
D | ingenic,uart.txt | 5 - "ingenic,jz4740-uart", 6 - "ingenic,jz4760-uart", 7 - "ingenic,jz4770-uart", 8 - "ingenic,jz4775-uart", 9 - "ingenic,jz4780-uart", 10 - "ingenic,x1000-uart". 12 - interrupts : should contain uart interrupt. 20 compatible = "ingenic,jz4740-uart";
|
D | fsl-imx-uart.txt | 4 - compatible : Should be "fsl,<soc>-uart" 6 - interrupts : Should contain uart interrupt 9 - fsl,dte-mode : Indicate the uart works in DTE mode. The uart works 13 you must enable either the "uart-has-rtscts" or the "rts-gpios" 14 properties. In case you use "uart-has-rtscts" the signal that controls 21 Note: Each uart controller should have an alias correctly numbered 31 compatible = "fsl,imx51-uart", "fsl,imx21-uart"; 34 uart-has-rtscts;
|
/Linux-v5.4/drivers/firmware/ |
D | pcdp.c | 20 setup_serial_console(struct pcdp_uart *uart) in setup_serial_console() argument 27 mmio = (uart->addr.space_id == ACPI_ADR_SPACE_SYSTEM_MEMORY); in setup_serial_console() 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() 87 struct pcdp_uart *uart; in efi_setup_pcdp_console() local 109 for (i = 0, uart = pcdp->uart; i < pcdp->num_uarts; i++, uart++) { in efi_setup_pcdp_console() [all …]
|
/Linux-v5.4/drivers/misc/ibmasm/ |
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-v5.4/arch/arm/boot/dts/ |
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";
|
/Linux-v5.4/arch/arm/mach-davinci/include/mach/ |
D | uncompress.h | 30 u32 *uart; variable 35 if (!uart) in putc() 38 while (!(uart[UART_LSR] & UART_LSR_THRE)) in putc() 40 uart[UART_TX] = c; in putc() 45 if (!uart) in flush() 48 while (!(uart[UART_LSR] & UART_LSR_THRE)) in flush() 54 uart = (u32 *)phys; in set_uart_info()
|