vt8500_port 128 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = container_of(port, vt8500_port 129 drivers/tty/serial/vt8500_serial.c struct vt8500_port, vt8500_port 132 drivers/tty/serial/vt8500_serial.c vt8500_port->ier &= ~TX_FIFO_INTS; vt8500_port 133 drivers/tty/serial/vt8500_serial.c vt8500_write(port, vt8500_port->ier, VT8500_URIER); vt8500_port 138 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = container_of(port, vt8500_port 139 drivers/tty/serial/vt8500_serial.c struct vt8500_port, vt8500_port 142 drivers/tty/serial/vt8500_serial.c vt8500_port->ier &= ~RX_FIFO_INTS; vt8500_port 143 drivers/tty/serial/vt8500_serial.c vt8500_write(port, vt8500_port->ier, VT8500_URIER); vt8500_port 148 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = container_of(port, vt8500_port 149 drivers/tty/serial/vt8500_serial.c struct vt8500_port, vt8500_port 152 drivers/tty/serial/vt8500_serial.c vt8500_port->ier |= TCTS; vt8500_port 153 drivers/tty/serial/vt8500_serial.c vt8500_write(port, vt8500_port->ier, VT8500_URIER); vt8500_port 229 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = container_of(port, vt8500_port 230 drivers/tty/serial/vt8500_serial.c struct vt8500_port, vt8500_port 233 drivers/tty/serial/vt8500_serial.c vt8500_port->ier &= ~TX_FIFO_INTS; vt8500_port 234 drivers/tty/serial/vt8500_serial.c vt8500_write(port, vt8500_port->ier, VT8500_URIER); vt8500_port 236 drivers/tty/serial/vt8500_serial.c vt8500_port->ier |= TX_FIFO_INTS; vt8500_port 237 drivers/tty/serial/vt8500_serial.c vt8500_write(port, vt8500_port->ier, VT8500_URIER); vt8500_port 308 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_port 309 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); vt8500_port 313 drivers/tty/serial/vt8500_serial.c div = ((vt8500_port->clk_predivisor - 1) & 0xf) << 16; vt8500_port 332 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_port 333 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); vt8500_port 336 drivers/tty/serial/vt8500_serial.c snprintf(vt8500_port->name, sizeof(vt8500_port->name), vt8500_port 340 drivers/tty/serial/vt8500_serial.c vt8500_port->name, port); vt8500_port 351 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_port 352 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); vt8500_port 354 drivers/tty/serial/vt8500_serial.c vt8500_port->ier = 0; vt8500_port 357 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0, VT8500_URIER); vt8500_port 358 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR); vt8500_port 366 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_port 367 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); vt8500_port 381 drivers/tty/serial/vt8500_serial.c lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR); vt8500_port 409 drivers/tty/serial/vt8500_serial.c if (vt8500_port->vt8500_uart_flags & VT8500_HAS_SWRTSCTS_SWITCH) vt8500_port 413 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, lcr, VT8500_URLCR); vt8500_port 423 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x88c, VT8500_URFCR); vt8500_port 424 drivers/tty/serial/vt8500_serial.c while ((vt8500_read(&vt8500_port->uart, VT8500_URFCR) & 0xc) vt8500_port 429 drivers/tty/serial/vt8500_serial.c vt8500_port->ier = RX_FIFO_INTS | TX_FIFO_INTS; vt8500_port 434 drivers/tty/serial/vt8500_serial.c if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag)) vt8500_port 435 drivers/tty/serial/vt8500_serial.c vt8500_port->ier |= TCTS; vt8500_port 437 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, 0x881, VT8500_URFCR); vt8500_port 438 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, vt8500_port->ier, VT8500_URIER); vt8500_port 445 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_port 446 drivers/tty/serial/vt8500_serial.c container_of(port, struct vt8500_port, uart); vt8500_port 447 drivers/tty/serial/vt8500_serial.c return vt8500_port->name; vt8500_port 474 drivers/tty/serial/vt8500_serial.c static struct vt8500_port *vt8500_uart_ports[VT8500_MAX_PORTS]; vt8500_port 502 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port = vt8500_uart_ports[co->index]; vt8500_port 507 drivers/tty/serial/vt8500_serial.c ier = vt8500_read(&vt8500_port->uart, VT8500_URIER); vt8500_port 508 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, VT8500_URIER, 0); vt8500_port 510 drivers/tty/serial/vt8500_serial.c uart_console_write(&vt8500_port->uart, s, count, vt8500_port 517 drivers/tty/serial/vt8500_serial.c wait_for_xmitr(&vt8500_port->uart); vt8500_port 518 drivers/tty/serial/vt8500_serial.c vt8500_write(&vt8500_port->uart, VT8500_URIER, ier); vt8500_port 523 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port; vt8500_port 532 drivers/tty/serial/vt8500_serial.c vt8500_port = vt8500_uart_ports[co->index]; vt8500_port 534 drivers/tty/serial/vt8500_serial.c if (!vt8500_port) vt8500_port 540 drivers/tty/serial/vt8500_serial.c return uart_set_options(&vt8500_port->uart, vt8500_port 629 drivers/tty/serial/vt8500_serial.c struct vt8500_port *vt8500_port; vt8500_port 671 drivers/tty/serial/vt8500_serial.c vt8500_port = devm_kzalloc(&pdev->dev, sizeof(struct vt8500_port), vt8500_port 673 drivers/tty/serial/vt8500_serial.c if (!vt8500_port) vt8500_port 676 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.membase = devm_ioremap_resource(&pdev->dev, mmres); vt8500_port 677 drivers/tty/serial/vt8500_serial.c if (IS_ERR(vt8500_port->uart.membase)) vt8500_port 678 drivers/tty/serial/vt8500_serial.c return PTR_ERR(vt8500_port->uart.membase); vt8500_port 680 drivers/tty/serial/vt8500_serial.c vt8500_port->clk = of_clk_get(pdev->dev.of_node, 0); vt8500_port 681 drivers/tty/serial/vt8500_serial.c if (IS_ERR(vt8500_port->clk)) { vt8500_port 686 drivers/tty/serial/vt8500_serial.c ret = clk_prepare_enable(vt8500_port->clk); vt8500_port 692 drivers/tty/serial/vt8500_serial.c vt8500_port->vt8500_uart_flags = *flags; vt8500_port 693 drivers/tty/serial/vt8500_serial.c vt8500_port->clk_predivisor = DIV_ROUND_CLOSEST( vt8500_port 694 drivers/tty/serial/vt8500_serial.c clk_get_rate(vt8500_port->clk), vt8500_port 697 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.type = PORT_VT8500; vt8500_port 698 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.iotype = UPIO_MEM; vt8500_port 699 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.mapbase = mmres->start; vt8500_port 700 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.irq = irqres->start; vt8500_port 701 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.fifosize = 16; vt8500_port 702 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.ops = &vt8500_uart_pops; vt8500_port 703 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.line = port; vt8500_port 704 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.dev = &pdev->dev; vt8500_port 705 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF; vt8500_port 708 drivers/tty/serial/vt8500_serial.c vt8500_port->uart.uartclk = 16 * clk_get_rate(vt8500_port->clk) / vt8500_port 709 drivers/tty/serial/vt8500_serial.c vt8500_port->clk_predivisor / vt8500_port 712 drivers/tty/serial/vt8500_serial.c snprintf(vt8500_port->name, sizeof(vt8500_port->name), vt8500_port 715 drivers/tty/serial/vt8500_serial.c vt8500_uart_ports[port] = vt8500_port; vt8500_port 717 drivers/tty/serial/vt8500_serial.c uart_add_one_port(&vt8500_uart_driver, &vt8500_port->uart); vt8500_port 719 drivers/tty/serial/vt8500_serial.c platform_set_drvdata(pdev, vt8500_port);