Lines Matching defs:uart
96 struct uart_port uart;
126 uart);
136 uart);
146 uart);
210 uart);
282 container_of(port, struct vt8500_port, uart);
306 container_of(port, struct vt8500_port, uart);
325 container_of(port, struct vt8500_port, uart);
330 vt8500_write(&vt8500_port->uart, 0, VT8500_URIER);
331 vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR);
340 container_of(port, struct vt8500_port, uart);
354 lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR);
386 vt8500_write(&vt8500_port->uart, lcr, VT8500_URLCR);
396 vt8500_write(&vt8500_port->uart, 0x88c, VT8500_URFCR);
397 while ((vt8500_read(&vt8500_port->uart, VT8500_URFCR) & 0xc)
407 if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag))
410 vt8500_write(&vt8500_port->uart, 0x881, VT8500_URFCR);
411 vt8500_write(&vt8500_port->uart, vt8500_port->ier, VT8500_URIER);
419 container_of(port, struct vt8500_port, uart);
480 ier = vt8500_read(&vt8500_port->uart, VT8500_URIER);
481 vt8500_write(&vt8500_port->uart, VT8500_URIER, 0);
483 uart_console_write(&vt8500_port->uart, s, count,
490 wait_for_xmitr(&vt8500_port->uart);
491 vt8500_write(&vt8500_port->uart, VT8500_URIER, ier);
513 return uart_set_options(&vt8500_port->uart,
595 { .compatible = "via,vt8500-uart", .data = &vt8500_flags},
596 { .compatible = "wm,wm8880-uart", .data = &wm8880_flags},
646 vt8500_port->uart.membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mmres);
647 if (IS_ERR(vt8500_port->uart.membase))
648 return PTR_ERR(vt8500_port->uart.membase);
667 vt8500_port->uart.type = PORT_VT8500;
668 vt8500_port->uart.iotype = UPIO_MEM;
669 vt8500_port->uart.mapbase = mmres->start;
670 vt8500_port->uart.irq = irq;
671 vt8500_port->uart.fifosize = 16;
672 vt8500_port->uart.ops = &vt8500_uart_pops;
673 vt8500_port->uart.line = port;
674 vt8500_port->uart.dev = &pdev->dev;
675 vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
676 vt8500_port->uart.has_sysrq = IS_ENABLED(CONFIG_SERIAL_VT8500_CONSOLE);
679 vt8500_port->uart.uartclk = 16 * clk_get_rate(vt8500_port->clk) /
688 uart_add_one_port(&vt8500_uart_driver, &vt8500_port->uart);