Home
last modified time | relevance | path

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

12345678910>>...34

/linux-6.1.9/sound/drivers/
Dserial-u16550.c157 static inline void snd_uart16550_add_timer(struct snd_uart16550 *uart) in snd_uart16550_add_timer() argument
159 if (!uart->timer_running) { in snd_uart16550_add_timer()
161 mod_timer(&uart->buffer_timer, jiffies + (HZ + 255) / 256); in snd_uart16550_add_timer()
162 uart->timer_running = 1; in snd_uart16550_add_timer()
166 static inline void snd_uart16550_del_timer(struct snd_uart16550 *uart) in snd_uart16550_del_timer() argument
168 if (uart->timer_running) { in snd_uart16550_del_timer()
169 del_timer(&uart->buffer_timer); in snd_uart16550_del_timer()
170 uart->timer_running = 0; in snd_uart16550_del_timer()
175 static inline void snd_uart16550_buffer_output(struct snd_uart16550 *uart) in snd_uart16550_buffer_output() argument
177 unsigned short buff_out = uart->buff_out; in snd_uart16550_buffer_output()
[all …]
/linux-6.1.9/drivers/tty/serial/
Dmen_z135_uart.c136 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 …]
Dtimbuart.c55 struct timbuart_port *uart = in timbuart_start_tx() local
59 tasklet_schedule(&uart->tasklet); in timbuart_start_tx()
119 struct timbuart_port *uart = in timbuart_handle_tx_port() local
138 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port()
175 struct timbuart_port *uart = from_tasklet(uart, t, tasklet); in timbuart_tasklet() local
178 spin_lock(&uart->port.lock); in timbuart_tasklet()
180 isr = ioread32(uart->port.membase + TIMBUART_ISR); in timbuart_tasklet()
181 dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr); in timbuart_tasklet()
183 if (!uart->usedma) in timbuart_tasklet()
184 timbuart_handle_tx_port(&uart->port, isr, &ier); in timbuart_tasklet()
[all …]
Dliteuart.c72 struct liteuart_port *uart = from_timer(uart, t, timer); in liteuart_timer() local
73 struct uart_port *port = &uart->port; in liteuart_timer()
93 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); in liteuart_timer()
151 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_stop_rx() local
154 del_timer(&uart->timer); in liteuart_stop_rx()
164 struct liteuart_port *uart = to_liteuart_port(port); in liteuart_startup() local
170 timer_setup(&uart->timer, liteuart_timer, 0); in liteuart_startup()
171 mod_timer(&uart->timer, jiffies + uart_poll_timeout(port)); in liteuart_startup()
248 struct liteuart_port *uart; in liteuart_probe() local
260 uart = devm_kzalloc(&pdev->dev, sizeof(struct liteuart_port), GFP_KERNEL); in liteuart_probe()
[all …]
Dvt8500_serial.c96 struct uart_port uart; member
126 uart); in vt8500_stop_tx()
136 uart); in vt8500_stop_rx()
146 uart); in vt8500_enable_ms()
232 uart); in vt8500_start_tx()
304 container_of(port, struct vt8500_port, uart); in vt8500_set_baud_rate()
328 container_of(port, struct vt8500_port, uart); in vt8500_startup()
347 container_of(port, struct vt8500_port, uart); in vt8500_shutdown()
352 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); in vt8500_shutdown()
353 vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); in vt8500_shutdown()
[all …]
Darc_uart.c76 #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
85 #define UART_ALL_IRQ_DISABLE(uart) UART_REG_CLR(uart, R_STS, RXIENB|TXIENB) 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
89 #define UART_ALL_IRQ_ENABLE(uart) UART_REG_OR(uart, R_STS, RXIENB|TXIENB) argument
[all …]
/linux-6.1.9/Documentation/devicetree/bindings/serial/
Dmediatek,uart.yaml4 $id: http://devicetree.org/schemas/serial/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
[all …]
Dfsl-imx-uart.yaml4 $id: http://devicetree.org/schemas/serial/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
28 - fsl,imx51-uart
29 - fsl,imx53-uart
[all …]
Dsnps-dw-apb-uart.yaml4 $id: http://devicetree.org/schemas/serial/snps-dw-apb-uart.yaml#
20 - renesas,r9a06g032-uart
21 - renesas,r9a06g033-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
[all …]
Dsamsung_uart.yaml22 - const: samsung,exynosautov9-uart
23 - const: samsung,exynos850-uart
25 - 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
32 - samsung,exynos4210-uart
[all …]
D8250_omap.yaml20 - 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
30 - ti,j721e-uart
31 - const: ti,am654-uart
[all …]
Dmvebu-uart.txt6 - "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";
D8250.yaml29 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: nuvoton,npcm845-uart
66 - const: nvidia,tegra20-uart
67 - const: nxp,lpc3220-uart
82 - nxp,lpc1850-uart
84 - ti,da830-uart
[all …]
Dsprd-uart.yaml5 $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-6.1.9/drivers/tty/serial/8250/
D8250_tegra.c45 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()
90 uart->rst = devm_reset_control_get_optional_shared(&pdev->dev, NULL); in tegra_uart_probe()
91 if (IS_ERR(uart->rst)) in tegra_uart_probe()
92 return PTR_ERR(uart->rst); in tegra_uart_probe()
96 uart->clk = devm_clk_get(&pdev->dev, NULL); in tegra_uart_probe()
97 if (IS_ERR(uart->clk)) { in tegra_uart_probe()
102 ret = clk_prepare_enable(uart->clk); in tegra_uart_probe()
106 port->uartclk = clk_get_rate(uart->clk); in tegra_uart_probe()
[all …]
D8250_core.c806 struct uart_8250_port uart; in serial8250_probe() local
809 memset(&uart, 0, sizeof(uart)); in serial8250_probe()
815 uart.port.iobase = p->iobase; in serial8250_probe()
816 uart.port.membase = p->membase; in serial8250_probe()
817 uart.port.irq = p->irq; in serial8250_probe()
818 uart.port.irqflags = p->irqflags; in serial8250_probe()
819 uart.port.uartclk = p->uartclk; in serial8250_probe()
820 uart.port.regshift = p->regshift; in serial8250_probe()
821 uart.port.iotype = p->iotype; in serial8250_probe()
822 uart.port.flags = p->flags; in serial8250_probe()
[all …]
D8250_pnp.c436 struct uart_8250_port uart, *port; in serial_pnp_probe() local
445 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe()
447 uart.port.irq = pnp_irq(dev, 0); in serial_pnp_probe()
449 uart.port.iobase = pnp_port_start(dev, 2); in serial_pnp_probe()
450 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
452 uart.port.iobase = pnp_port_start(dev, 0); in serial_pnp_probe()
453 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
455 uart.port.mapbase = pnp_mem_start(dev, 0); in serial_pnp_probe()
456 uart.port.iotype = UPIO_MEM; in serial_pnp_probe()
457 uart.port.flags = UPF_IOREMAP; in serial_pnp_probe()
[all …]
D8250_hp300.c160 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 …]
D8250_lpc18xx.c93 struct uart_8250_port uart; in lpc18xx_serial_probe() local
107 memset(&uart, 0, sizeof(uart)); in lpc18xx_serial_probe()
109 uart.port.membase = devm_ioremap(&pdev->dev, res->start, in lpc18xx_serial_probe()
111 if (!uart.port.membase) in lpc18xx_serial_probe()
144 uart.port.line = ret; in lpc18xx_serial_probe()
149 spin_lock_init(&uart.port.lock); 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()
153 uart.port.mapbase = res->start; in lpc18xx_serial_probe()
[all …]
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()
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(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 …]
D8250_pxa.c92 struct uart_8250_port uart = {}; in serial_pxa_probe() local
119 uart.port.line = ret; in serial_pxa_probe()
121 uart.port.type = PORT_XSCALE; in serial_pxa_probe()
122 uart.port.iotype = UPIO_MEM32; in serial_pxa_probe()
123 uart.port.mapbase = mmres->start; in serial_pxa_probe()
124 uart.port.regshift = 2; in serial_pxa_probe()
125 uart.port.irq = irq; in serial_pxa_probe()
126 uart.port.fifosize = 64; in serial_pxa_probe()
127 uart.port.flags = UPF_IOREMAP | UPF_SKIP_TEST | UPF_FIXED_TYPE; in serial_pxa_probe()
128 uart.port.dev = &pdev->dev; in serial_pxa_probe()
[all …]
D8250_men_mcb.c18 struct uart_8250_port uart; member
105 data[i].uart.port.dev = mdev->dma_dev; in serial_8250_men_mcb_probe()
106 spin_lock_init(&data[i].uart.port.lock); in serial_8250_men_mcb_probe()
108 data[i].uart.port.type = PORT_16550; in serial_8250_men_mcb_probe()
109 data[i].uart.port.flags = UPF_SKIP_TEST | UPF_SHARE_IRQ in serial_8250_men_mcb_probe()
111 data[i].uart.port.iotype = UPIO_MEM; in serial_8250_men_mcb_probe()
112 data[i].uart.port.uartclk = men_lookup_uartclk(mdev); in serial_8250_men_mcb_probe()
113 data[i].uart.port.regshift = 0; in serial_8250_men_mcb_probe()
114 data[i].uart.port.irq = mcb_get_irq(mdev); in serial_8250_men_mcb_probe()
115 data[i].uart.port.membase = membase; in serial_8250_men_mcb_probe()
[all …]
D8250_pericom.c89 struct uart_8250_port uart; in pericom8250_probe() local
113 memset(&uart, 0, sizeof(uart)); in pericom8250_probe()
115 uart.port.dev = &pdev->dev; in pericom8250_probe()
116 uart.port.irq = pdev->irq; in pericom8250_probe()
117 uart.port.private_data = pericom; in pericom8250_probe()
118 uart.port.iotype = UPIO_PORT; in pericom8250_probe()
119 uart.port.uartclk = 921600 * 16; in pericom8250_probe()
120 uart.port.flags = UPF_SKIP_TEST | UPF_BOOT_AUTOCONF | UPF_SHARE_IRQ; in pericom8250_probe()
121 uart.port.set_divisor = pericom_do_set_divisor; in pericom8250_probe()
125 uart.port.iobase = pci_resource_start(pdev, bar) + offset; in pericom8250_probe()
[all …]
/linux-6.1.9/drivers/firmware/
Dpcdp.c20 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()
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()
[all …]
/linux-6.1.9/drivers/misc/ibmasm/
Duart.c22 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()

12345678910>>...34