Home
last modified time | relevance | path

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

123

/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()
225 uart); in vt8500_start_tx()
303 container_of(port, struct vt8500_port, uart); in vt8500_set_baud_rate()
327 container_of(port, struct vt8500_port, uart); in vt8500_startup()
346 container_of(port, struct vt8500_port, uart); in vt8500_shutdown()
351 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); in vt8500_shutdown()
352 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 …]
Dserial_txx9.c1017 struct uart_txx9_port *uart; in serial_txx9_register_port() local
1022 uart = &serial_txx9_ports[i]; in serial_txx9_register_port()
1023 if (uart_match_port(&uart->port, port)) { in serial_txx9_register_port()
1024 uart_remove_one_port(&serial_txx9_reg, &uart->port); in serial_txx9_register_port()
1031 uart = &serial_txx9_ports[i]; in serial_txx9_register_port()
1032 if (!(uart->port.iobase || uart->port.mapbase)) in serial_txx9_register_port()
1037 uart->port.iobase = port->iobase; in serial_txx9_register_port()
1038 uart->port.membase = port->membase; in serial_txx9_register_port()
1039 uart->port.irq = port->irq; in serial_txx9_register_port()
1040 uart->port.uartclk = port->uartclk; in serial_txx9_register_port()
[all …]
Dmsm_serial.c171 struct uart_port uart; member
183 #define UART_TO_MSM(uart_port) container_of(uart_port, struct msm_port, uart)
273 msm_stop_dma(&msm_port->uart, dma); in msm_release_dma()
281 msm_stop_dma(&msm_port->uart, dma); in msm_release_dma()
291 struct device *dev = msm_port->uart.dev; in msm_request_tx_dma()
334 struct device *dev = msm_port->uart.dev; in msm_request_rx_dma()
425 struct uart_port *port = &msm_port->uart; in msm_complete_tx_dma()
473 struct circ_buf *xmit = &msm_port->uart.state->xmit; in msm_handle_tx_dma()
474 struct uart_port *port = &msm_port->uart; in msm_handle_tx_dma()
534 struct uart_port *port = &msm_port->uart; in msm_complete_rx_dma()
[all …]
Dsccnxp.c112 struct uart_driver uart; member
490 for (i = 0; i < s->uart.nr; i++) { in sccnxp_handle_events()
965 s->uart.owner = THIS_MODULE; in sccnxp_probe()
966 s->uart.dev_name = "ttySC"; in sccnxp_probe()
967 s->uart.major = SCCNXP_MAJOR; in sccnxp_probe()
968 s->uart.minor = SCCNXP_MINOR; in sccnxp_probe()
969 s->uart.nr = s->chip->nr; in sccnxp_probe()
971 s->uart.cons = &s->console; in sccnxp_probe()
972 s->uart.cons->device = uart_console_device; in sccnxp_probe()
973 s->uart.cons->write = sccnxp_console_write; in sccnxp_probe()
[all …]
/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.c803 struct uart_8250_port uart; in serial8250_probe() local
806 memset(&uart, 0, sizeof(uart)); in serial8250_probe()
812 uart.port.iobase = p->iobase; in serial8250_probe()
813 uart.port.membase = p->membase; in serial8250_probe()
814 uart.port.irq = p->irq; in serial8250_probe()
815 uart.port.irqflags = p->irqflags; in serial8250_probe()
816 uart.port.uartclk = p->uartclk; in serial8250_probe()
817 uart.port.regshift = p->regshift; in serial8250_probe()
818 uart.port.iotype = p->iotype; in serial8250_probe()
819 uart.port.flags = p->flags; in serial8250_probe()
[all …]
D8250_pnp.c440 struct uart_8250_port uart, *port; in serial_pnp_probe() local
449 memset(&uart, 0, sizeof(uart)); in serial_pnp_probe()
451 uart.port.irq = pnp_irq(dev, 0); in serial_pnp_probe()
453 uart.port.iobase = pnp_port_start(dev, 2); in serial_pnp_probe()
454 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
456 uart.port.iobase = pnp_port_start(dev, 0); in serial_pnp_probe()
457 uart.port.iotype = UPIO_PORT; in serial_pnp_probe()
459 uart.port.mapbase = pnp_mem_start(dev, 0); in serial_pnp_probe()
460 uart.port.iotype = UPIO_MEM; in serial_pnp_probe()
461 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.c104 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 …]
D8250_gsc.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_men_mcb.c19 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 …]
D8250_pxa.c93 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()
128 uart.port.flags = UPF_IOREMAP | UPF_SKIP_TEST | UPF_FIXED_TYPE; in serial_pxa_probe()
129 uart.port.dev = &pdev->dev; in serial_pxa_probe()
[all …]
D8250_ingenic.c209 struct uart_8250_port uart = {}; in ingenic_uart_probe() local
235 spin_lock_init(&uart.port.lock); in ingenic_uart_probe()
236 uart.port.type = PORT_16550A; in ingenic_uart_probe()
237 uart.port.flags = UPF_SKIP_TEST | UPF_IOREMAP | UPF_FIXED_TYPE; in ingenic_uart_probe()
238 uart.port.iotype = UPIO_MEM; in ingenic_uart_probe()
239 uart.port.mapbase = regs->start; in ingenic_uart_probe()
240 uart.port.regshift = 2; in ingenic_uart_probe()
241 uart.port.serial_out = ingenic_uart_serial_out; in ingenic_uart_probe()
242 uart.port.serial_in = ingenic_uart_serial_in; in ingenic_uart_probe()
243 uart.port.irq = irq; in ingenic_uart_probe()
[all …]
D8250_acorn.c43 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 …]
D8250_lpss.c318 struct uart_8250_port uart; in lpss8250_probe() local
338 memset(&uart, 0, sizeof(struct uart_8250_port)); in lpss8250_probe()
340 uart.port.dev = &pdev->dev; in lpss8250_probe()
341 uart.port.irq = pci_irq_vector(pdev, 0); in lpss8250_probe()
342 uart.port.private_data = &lpss->data; in lpss8250_probe()
343 uart.port.type = PORT_16550A; in lpss8250_probe()
344 uart.port.iotype = UPIO_MEM; in lpss8250_probe()
345 uart.port.regshift = 2; in lpss8250_probe()
346 uart.port.uartclk = lpss->board->base_baud * 16; in lpss8250_probe()
347 uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; in lpss8250_probe()
[all …]
D8250_fintek.c358 static void fintek_8250_set_termios_handler(struct uart_8250_port *uart) in fintek_8250_set_termios_handler() argument
360 struct fintek_8250 *pdata = uart->port.private_data; in fintek_8250_set_termios_handler()
366 uart->port.set_termios = fintek_8250_set_termios; in fintek_8250_set_termios_handler()
375 struct uart_8250_port *uart) in probe_setup_port() argument
402 if (aux != uart->port.iobase) in probe_setup_port()
407 irq_data = irq_get_irq_data(uart->port.irq); in probe_setup_port()
427 static void fintek_8250_set_rs485_handler(struct uart_8250_port *uart) in fintek_8250_set_rs485_handler() argument
429 struct fintek_8250 *pdata = uart->port.private_data; in fintek_8250_set_rs485_handler()
437 uart->port.rs485_config = fintek_8250_rs485_config; in fintek_8250_set_rs485_handler()
445 int fintek_8250_probe(struct uart_8250_port *uart) in fintek_8250_probe() argument
[all …]
D8250_mid.c293 struct uart_8250_port uart; in mid8250_probe() local
309 memset(&uart, 0, sizeof(struct uart_8250_port)); in mid8250_probe()
311 uart.port.dev = &pdev->dev; in mid8250_probe()
312 uart.port.irq = pdev->irq; in mid8250_probe()
313 uart.port.private_data = mid; in mid8250_probe()
314 uart.port.type = PORT_16750; in mid8250_probe()
315 uart.port.iotype = UPIO_MEM; in mid8250_probe()
316 uart.port.uartclk = mid->board->base_baud * 16; in mid8250_probe()
317 uart.port.flags = UPF_SHARE_IRQ | UPF_FIXED_PORT | UPF_FIXED_TYPE; in mid8250_probe()
318 uart.port.set_termios = mid8250_set_termios; in mid8250_probe()
[all …]
D8250_mtk.c523 struct uart_8250_port uart = {}; in mtk8250_probe() local
538 uart.port.membase = devm_ioremap(&pdev->dev, regs->start, in mtk8250_probe()
540 if (!uart.port.membase) in mtk8250_probe()
550 err = mtk8250_probe_of(pdev, &uart.port, data); in mtk8250_probe()
556 spin_lock_init(&uart.port.lock); in mtk8250_probe()
557 uart.port.mapbase = regs->start; in mtk8250_probe()
558 uart.port.irq = irq; in mtk8250_probe()
559 uart.port.pm = mtk8250_do_pm; in mtk8250_probe()
560 uart.port.type = PORT_16550; in mtk8250_probe()
561 uart.port.flags = UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; in mtk8250_probe()
[all …]
/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 …]
/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()
/drivers/acpi/
Dspcr.c92 char *uart; in acpi_parse_spcr() local
135 uart = "pl011"; in acpi_parse_spcr()
140 uart = "uart"; in acpi_parse_spcr()
193 uart = "qdf2400_e44"; in acpi_parse_spcr()
207 snprintf(opts, sizeof(opts), "%s,%s,0x%llx", uart, iotype, in acpi_parse_spcr()
210 snprintf(opts, sizeof(opts), "%s,%s,0x%llx,%d", uart, iotype, in acpi_parse_spcr()
220 err = add_preferred_console(uart, 0, opts + strlen(uart) + 1); in acpi_parse_spcr()

123