Lines Matching refs:uart

55 	struct timbuart_port *uart =
59 tasklet_schedule(&uart->tasklet);
121 struct timbuart_port *uart =
140 *ier |= uart->last_ier & TXFLAGS;
177 struct timbuart_port *uart = from_tasklet(uart, t, tasklet);
180 spin_lock(&uart->port.lock);
182 isr = ioread32(uart->port.membase + TIMBUART_ISR);
183 dev_dbg(uart->port.dev, "%s ISR: %x\n", __func__, isr);
185 if (!uart->usedma)
186 timbuart_handle_tx_port(&uart->port, isr, &ier);
188 timbuart_mctrl_check(&uart->port, isr, &ier);
190 if (!uart->usedma)
191 timbuart_handle_rx_port(&uart->port, isr, &ier);
193 iowrite32(ier, uart->port.membase + TIMBUART_IER);
195 spin_unlock(&uart->port.lock);
196 dev_dbg(uart->port.dev, "%s leaving\n", __func__);
242 struct timbuart_port *uart =
254 "timb-uart", uart);
259 struct timbuart_port *uart =
262 free_irq(port->irq, uart);
335 if (!request_mem_region(port->mapbase, size, "timb-uart"))
351 struct timbuart_port *uart = (struct timbuart_port *)devid;
353 if (ioread8(uart->port.membase + TIMBUART_IPR)) {
354 uart->last_ier = ioread32(uart->port.membase + TIMBUART_IER);
357 iowrite32(0, uart->port.membase + TIMBUART_IER);
360 tasklet_schedule(&uart->tasklet);
416 struct timbuart_port *uart;
421 uart = kzalloc(sizeof(*uart), GFP_KERNEL);
422 if (!uart) {
427 uart->usedma = 0;
429 uart->port.uartclk = 3250000 * 16;
430 uart->port.fifosize = TIMBUART_FIFO_SIZE;
431 uart->port.regshift = 2;
432 uart->port.iotype = UPIO_MEM;
433 uart->port.ops = &timbuart_ops;
434 uart->port.irq = 0;
435 uart->port.flags = UPF_BOOT_AUTOCONF | UPF_IOREMAP;
436 uart->port.line = 0;
437 uart->port.dev = &dev->dev;
444 uart->port.mapbase = iomem->start;
445 uart->port.membase = NULL;
452 uart->port.irq = irq;
454 tasklet_setup(&uart->tasklet, timbuart_tasklet);
460 err = uart_add_one_port(&timbuart_driver, &uart->port);
464 platform_set_drvdata(dev, uart);
471 kfree(uart);
481 struct timbuart_port *uart = platform_get_drvdata(dev);
483 tasklet_kill(&uart->tasklet);
484 uart_remove_one_port(&timbuart_driver, &uart->port);
486 kfree(uart);
493 .name = "timb-uart",
503 MODULE_ALIAS("platform:timb-uart");