Symbol: vt8500_port
drivers/tty/serial/vt8500_serial.c
124
struct vt8500_port *vt8500_port = container_of(port,
drivers/tty/serial/vt8500_serial.c
125
struct vt8500_port,
drivers/tty/serial/vt8500_serial.c
128
vt8500_port->ier &= ~TX_FIFO_INTS;
drivers/tty/serial/vt8500_serial.c
129
vt8500_write(port, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
134
struct vt8500_port *vt8500_port = container_of(port,
drivers/tty/serial/vt8500_serial.c
135
struct vt8500_port,
drivers/tty/serial/vt8500_serial.c
138
vt8500_port->ier &= ~RX_FIFO_INTS;
drivers/tty/serial/vt8500_serial.c
139
vt8500_write(port, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
144
struct vt8500_port *vt8500_port = container_of(port,
drivers/tty/serial/vt8500_serial.c
145
struct vt8500_port,
drivers/tty/serial/vt8500_serial.c
148
vt8500_port->ier |= TCTS;
drivers/tty/serial/vt8500_serial.c
149
vt8500_write(port, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
208
struct vt8500_port *vt8500_port = container_of(port,
drivers/tty/serial/vt8500_serial.c
209
struct vt8500_port,
drivers/tty/serial/vt8500_serial.c
212
vt8500_port->ier &= ~TX_FIFO_INTS;
drivers/tty/serial/vt8500_serial.c
213
vt8500_write(port, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
215
vt8500_port->ier |= TX_FIFO_INTS;
drivers/tty/serial/vt8500_serial.c
216
vt8500_write(port, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
281
struct vt8500_port *vt8500_port =
drivers/tty/serial/vt8500_serial.c
282
container_of(port, struct vt8500_port, uart);
drivers/tty/serial/vt8500_serial.c
286
div = ((vt8500_port->clk_predivisor - 1) & 0xf) << 16;
drivers/tty/serial/vt8500_serial.c
305
struct vt8500_port *vt8500_port =
drivers/tty/serial/vt8500_serial.c
306
container_of(port, struct vt8500_port, uart);
drivers/tty/serial/vt8500_serial.c
309
snprintf(vt8500_port->name, sizeof(vt8500_port->name),
drivers/tty/serial/vt8500_serial.c
313
vt8500_port->name, port);
drivers/tty/serial/vt8500_serial.c
324
struct vt8500_port *vt8500_port =
drivers/tty/serial/vt8500_serial.c
325
container_of(port, struct vt8500_port, uart);
drivers/tty/serial/vt8500_serial.c
327
vt8500_port->ier = 0;
drivers/tty/serial/vt8500_serial.c
330
vt8500_write(&vt8500_port->uart, 0, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
331
vt8500_write(&vt8500_port->uart, 0x880, VT8500_URFCR);
drivers/tty/serial/vt8500_serial.c
339
struct vt8500_port *vt8500_port =
drivers/tty/serial/vt8500_serial.c
340
container_of(port, struct vt8500_port, uart);
drivers/tty/serial/vt8500_serial.c
354
lcr = vt8500_read(&vt8500_port->uart, VT8500_URLCR);
drivers/tty/serial/vt8500_serial.c
382
if (vt8500_port->vt8500_uart_flags & VT8500_HAS_SWRTSCTS_SWITCH)
drivers/tty/serial/vt8500_serial.c
386
vt8500_write(&vt8500_port->uart, lcr, VT8500_URLCR);
drivers/tty/serial/vt8500_serial.c
396
vt8500_write(&vt8500_port->uart, 0x88c, VT8500_URFCR);
drivers/tty/serial/vt8500_serial.c
397
while ((vt8500_read(&vt8500_port->uart, VT8500_URFCR) & 0xc)
drivers/tty/serial/vt8500_serial.c
402
vt8500_port->ier = RX_FIFO_INTS | TX_FIFO_INTS;
drivers/tty/serial/vt8500_serial.c
407
if (UART_ENABLE_MS(&vt8500_port->uart, termios->c_cflag))
drivers/tty/serial/vt8500_serial.c
408
vt8500_port->ier |= TCTS;
drivers/tty/serial/vt8500_serial.c
410
vt8500_write(&vt8500_port->uart, 0x881, VT8500_URFCR);
drivers/tty/serial/vt8500_serial.c
411
vt8500_write(&vt8500_port->uart, vt8500_port->ier, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
418
struct vt8500_port *vt8500_port =
drivers/tty/serial/vt8500_serial.c
419
container_of(port, struct vt8500_port, uart);
drivers/tty/serial/vt8500_serial.c
420
return vt8500_port->name;
drivers/tty/serial/vt8500_serial.c
447
static struct vt8500_port *vt8500_uart_ports[VT8500_MAX_PORTS];
drivers/tty/serial/vt8500_serial.c
475
struct vt8500_port *vt8500_port = vt8500_uart_ports[co->index];
drivers/tty/serial/vt8500_serial.c
480
ier = vt8500_read(&vt8500_port->uart, VT8500_URIER);
drivers/tty/serial/vt8500_serial.c
481
vt8500_write(&vt8500_port->uart, VT8500_URIER, 0);
drivers/tty/serial/vt8500_serial.c
483
uart_console_write(&vt8500_port->uart, s, count,
drivers/tty/serial/vt8500_serial.c
490
wait_for_xmitr(&vt8500_port->uart);
drivers/tty/serial/vt8500_serial.c
491
vt8500_write(&vt8500_port->uart, VT8500_URIER, ier);
drivers/tty/serial/vt8500_serial.c
496
struct vt8500_port *vt8500_port;
drivers/tty/serial/vt8500_serial.c
505
vt8500_port = vt8500_uart_ports[co->index];
drivers/tty/serial/vt8500_serial.c
507
if (!vt8500_port)
drivers/tty/serial/vt8500_serial.c
513
return uart_set_options(&vt8500_port->uart,
drivers/tty/serial/vt8500_serial.c
602
struct vt8500_port *vt8500_port;
drivers/tty/serial/vt8500_serial.c
641
vt8500_port = devm_kzalloc(&pdev->dev, sizeof(struct vt8500_port),
drivers/tty/serial/vt8500_serial.c
643
if (!vt8500_port)
drivers/tty/serial/vt8500_serial.c
646
vt8500_port->uart.membase = devm_platform_get_and_ioremap_resource(pdev, 0, &mmres);
drivers/tty/serial/vt8500_serial.c
647
if (IS_ERR(vt8500_port->uart.membase))
drivers/tty/serial/vt8500_serial.c
648
return PTR_ERR(vt8500_port->uart.membase);
drivers/tty/serial/vt8500_serial.c
650
vt8500_port->clk = of_clk_get(pdev->dev.of_node, 0);
drivers/tty/serial/vt8500_serial.c
651
if (IS_ERR(vt8500_port->clk)) {
drivers/tty/serial/vt8500_serial.c
656
ret = clk_prepare_enable(vt8500_port->clk);
drivers/tty/serial/vt8500_serial.c
662
vt8500_port->vt8500_uart_flags = *flags;
drivers/tty/serial/vt8500_serial.c
663
vt8500_port->clk_predivisor = DIV_ROUND_CLOSEST(
drivers/tty/serial/vt8500_serial.c
664
clk_get_rate(vt8500_port->clk),
drivers/tty/serial/vt8500_serial.c
667
vt8500_port->uart.type = PORT_VT8500;
drivers/tty/serial/vt8500_serial.c
668
vt8500_port->uart.iotype = UPIO_MEM;
drivers/tty/serial/vt8500_serial.c
669
vt8500_port->uart.mapbase = mmres->start;
drivers/tty/serial/vt8500_serial.c
670
vt8500_port->uart.irq = irq;
drivers/tty/serial/vt8500_serial.c
671
vt8500_port->uart.fifosize = 16;
drivers/tty/serial/vt8500_serial.c
672
vt8500_port->uart.ops = &vt8500_uart_pops;
drivers/tty/serial/vt8500_serial.c
673
vt8500_port->uart.line = port;
drivers/tty/serial/vt8500_serial.c
674
vt8500_port->uart.dev = &pdev->dev;
drivers/tty/serial/vt8500_serial.c
675
vt8500_port->uart.flags = UPF_IOREMAP | UPF_BOOT_AUTOCONF;
drivers/tty/serial/vt8500_serial.c
676
vt8500_port->uart.has_sysrq = IS_ENABLED(CONFIG_SERIAL_VT8500_CONSOLE);
drivers/tty/serial/vt8500_serial.c
679
vt8500_port->uart.uartclk = 16 * clk_get_rate(vt8500_port->clk) /
drivers/tty/serial/vt8500_serial.c
680
vt8500_port->clk_predivisor /
drivers/tty/serial/vt8500_serial.c
683
snprintf(vt8500_port->name, sizeof(vt8500_port->name),
drivers/tty/serial/vt8500_serial.c
686
vt8500_uart_ports[port] = vt8500_port;
drivers/tty/serial/vt8500_serial.c
688
uart_add_one_port(&vt8500_uart_driver, &vt8500_port->uart);
drivers/tty/serial/vt8500_serial.c
690
platform_set_drvdata(pdev, vt8500_port);