efm_port 89 drivers/tty/serial/efm32-uart.c #define efm_debug(efm_port, format, arg...) \ efm_port 90 drivers/tty/serial/efm32-uart.c dev_dbg(efm_port->port.dev, format, ##arg) efm_port 92 drivers/tty/serial/efm32-uart.c static void efm32_uart_write32(struct efm32_uart_port *efm_port, efm_port 95 drivers/tty/serial/efm32-uart.c writel_relaxed(value, efm_port->port.membase + offset); efm_port 98 drivers/tty/serial/efm32-uart.c static u32 efm32_uart_read32(struct efm32_uart_port *efm_port, efm_port 101 drivers/tty/serial/efm32-uart.c return readl_relaxed(efm_port->port.membase + offset); efm_port 106 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 107 drivers/tty/serial/efm32-uart.c u32 status = efm32_uart_read32(efm_port, UARTn_STATUS); efm_port 128 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 129 drivers/tty/serial/efm32-uart.c u32 ien = efm32_uart_read32(efm_port, UARTn_IEN); efm_port 131 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_TXDIS, UARTn_CMD); efm_port 133 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, ien, UARTn_IEN); efm_port 136 drivers/tty/serial/efm32-uart.c static void efm32_uart_tx_chars(struct efm32_uart_port *efm_port) efm_port 138 drivers/tty/serial/efm32-uart.c struct uart_port *port = &efm_port->port; efm_port 141 drivers/tty/serial/efm32-uart.c while (efm32_uart_read32(efm_port, UARTn_STATUS) & efm_port 145 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, port->x_char, efm_port 152 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, xmit->buf[xmit->tail], efm_port 163 drivers/tty/serial/efm32-uart.c efm32_uart_read32(efm_port, UARTn_STATUS) & efm_port 170 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 173 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, efm_port 175 drivers/tty/serial/efm32-uart.c ien = efm32_uart_read32(efm_port, UARTn_IEN); efm_port 176 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, efm_port 178 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_TXEN, UARTn_CMD); efm_port 180 drivers/tty/serial/efm32-uart.c efm32_uart_tx_chars(efm_port); efm_port 185 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 187 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_RXDIS, UARTn_CMD); efm_port 195 drivers/tty/serial/efm32-uart.c static void efm32_uart_rx_chars(struct efm32_uart_port *efm_port) efm_port 197 drivers/tty/serial/efm32-uart.c struct uart_port *port = &efm_port->port; efm_port 199 drivers/tty/serial/efm32-uart.c while (efm32_uart_read32(efm_port, UARTn_STATUS) & efm_port 201 drivers/tty/serial/efm32-uart.c u32 rxdata = efm32_uart_read32(efm_port, UARTn_RXDATAX); efm_port 245 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = data; efm_port 246 drivers/tty/serial/efm32-uart.c u32 irqflag = efm32_uart_read32(efm_port, UARTn_IF); efm_port 248 drivers/tty/serial/efm32-uart.c struct uart_port *port = &efm_port->port; efm_port 254 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_IF_RXDATAV, UARTn_IFC); efm_port 255 drivers/tty/serial/efm32-uart.c efm32_uart_rx_chars(efm_port); efm_port 261 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_IF_RXOF, UARTn_IFC); efm_port 277 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = data; efm_port 278 drivers/tty/serial/efm32-uart.c u32 irqflag = efm32_uart_read32(efm_port, UARTn_IF); efm_port 282 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_IF_TXC, UARTn_IFC); efm_port 285 drivers/tty/serial/efm32-uart.c efm32_uart_tx_chars(efm_port); efm_port 293 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 296 drivers/tty/serial/efm32-uart.c ret = clk_enable(efm_port->clk); efm_port 298 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "failed to enable clk\n"); efm_port 301 drivers/tty/serial/efm32-uart.c port->uartclk = clk_get_rate(efm_port->clk); efm_port 304 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, efm_port 305 drivers/tty/serial/efm32-uart.c UARTn_ROUTE_LOCATION(efm_port->pdata.location) | efm_port 310 drivers/tty/serial/efm32-uart.c DRIVER_NAME, efm_port); efm_port 312 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "failed to register rxirq\n"); efm_port 317 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, 0, UARTn_IEN); efm_port 319 drivers/tty/serial/efm32-uart.c ret = request_irq(efm_port->txirq, efm32_uart_txirq, 0, efm_port 320 drivers/tty/serial/efm32-uart.c DRIVER_NAME, efm_port); efm_port 322 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "failed to register txirq\n"); efm_port 323 drivers/tty/serial/efm32-uart.c free_irq(port->irq, efm_port); efm_port 326 drivers/tty/serial/efm32-uart.c clk_disable(efm_port->clk); efm_port 328 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, efm_port 330 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_RXEN, UARTn_CMD); efm_port 339 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 341 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, 0, UARTn_IEN); efm_port 342 drivers/tty/serial/efm32-uart.c free_irq(port->irq, efm_port); efm_port 344 drivers/tty/serial/efm32-uart.c clk_disable(efm_port->clk); efm_port 350 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 400 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, efm_port 419 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CTRL_TXBIL, UARTn_CTRL); efm_port 420 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, frame, UARTn_FRAME); efm_port 421 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, clkdiv, UARTn_CLKDIV); efm_port 423 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_TXEN | UARTn_CMD_RXEN, efm_port 436 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 438 drivers/tty/serial/efm32-uart.c clk_unprepare(efm_port->clk); efm_port 439 drivers/tty/serial/efm32-uart.c clk_put(efm_port->clk); efm_port 445 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 449 drivers/tty/serial/efm32-uart.c if (!efm_port->port.membase) { efm_port 451 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "failed to remap\n"); efm_port 455 drivers/tty/serial/efm32-uart.c efm_port->clk = clk_get(port->dev, NULL); efm_port 456 drivers/tty/serial/efm32-uart.c if (IS_ERR(efm_port->clk)) { efm_port 457 drivers/tty/serial/efm32-uart.c ret = PTR_ERR(efm_port->clk); efm_port 458 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "failed to get clock\n"); efm_port 462 drivers/tty/serial/efm32-uart.c ret = clk_prepare(efm_port->clk); efm_port 464 drivers/tty/serial/efm32-uart.c clk_put(efm_port->clk); efm_port 515 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = to_efm_port(port); efm_port 520 drivers/tty/serial/efm32-uart.c status = efm32_uart_read32(efm_port, UARTn_STATUS); efm_port 527 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, ch, UARTn_TXDATA); efm_port 533 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = efm32_uart_ports[co->index]; efm_port 534 drivers/tty/serial/efm32-uart.c u32 status = efm32_uart_read32(efm_port, UARTn_STATUS); efm_port 538 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_TXEN, UARTn_CMD); efm_port 540 drivers/tty/serial/efm32-uart.c uart_console_write(&efm_port->port, s, count, efm_port 545 drivers/tty/serial/efm32-uart.c u32 status = efm32_uart_read32(efm_port, UARTn_STATUS); efm_port 553 drivers/tty/serial/efm32-uart.c efm32_uart_write32(efm_port, UARTn_CMD_TXDIS, UARTn_CMD); efm_port 556 drivers/tty/serial/efm32-uart.c static void efm32_uart_console_get_options(struct efm32_uart_port *efm_port, efm_port 559 drivers/tty/serial/efm32-uart.c u32 ctrl = efm32_uart_read32(efm_port, UARTn_CTRL); efm_port 566 drivers/tty/serial/efm32-uart.c route = efm32_uart_read32(efm_port, UARTn_ROUTE); efm_port 571 drivers/tty/serial/efm32-uart.c clkdiv = efm32_uart_read32(efm_port, UARTn_CLKDIV); efm_port 573 drivers/tty/serial/efm32-uart.c *baud = DIV_ROUND_CLOSEST(4 * efm_port->port.uartclk, efm_port 576 drivers/tty/serial/efm32-uart.c frame = efm32_uart_read32(efm_port, UARTn_FRAME); efm_port 591 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "get_opts: options=%d%c%d\n", efm_port 597 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port; efm_port 616 drivers/tty/serial/efm32-uart.c efm_port = efm32_uart_ports[co->index]; efm_port 617 drivers/tty/serial/efm32-uart.c if (!efm_port) { efm_port 622 drivers/tty/serial/efm32-uart.c ret = clk_prepare(efm_port->clk); efm_port 624 drivers/tty/serial/efm32-uart.c dev_warn(efm_port->port.dev, efm_port 629 drivers/tty/serial/efm32-uart.c efm_port->port.uartclk = clk_get_rate(efm_port->clk); efm_port 634 drivers/tty/serial/efm32-uart.c efm32_uart_console_get_options(efm_port, efm_port 637 drivers/tty/serial/efm32-uart.c return uart_set_options(&efm_port->port, co, baud, parity, bits, flow); efm_port 665 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port) efm_port 689 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "using location %u\n", location); efm_port 690 drivers/tty/serial/efm32-uart.c efm_port->pdata.location = location; efm_port 692 drivers/tty/serial/efm32-uart.c efm_debug(efm_port, "fall back to location 0\n"); efm_port 700 drivers/tty/serial/efm32-uart.c efm_port->port.line = ret; efm_port 708 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port; efm_port 713 drivers/tty/serial/efm32-uart.c efm_port = kzalloc(sizeof(*efm_port), GFP_KERNEL); efm_port 714 drivers/tty/serial/efm32-uart.c if (!efm_port) { efm_port 738 drivers/tty/serial/efm32-uart.c efm_port->port.irq = ret; efm_port 742 drivers/tty/serial/efm32-uart.c ret = efm_port->port.irq + 1; efm_port 744 drivers/tty/serial/efm32-uart.c efm_port->txirq = ret; efm_port 746 drivers/tty/serial/efm32-uart.c efm_port->port.dev = &pdev->dev; efm_port 747 drivers/tty/serial/efm32-uart.c efm_port->port.mapbase = res->start; efm_port 748 drivers/tty/serial/efm32-uart.c efm_port->port.type = PORT_EFMUART; efm_port 749 drivers/tty/serial/efm32-uart.c efm_port->port.iotype = UPIO_MEM32; efm_port 750 drivers/tty/serial/efm32-uart.c efm_port->port.fifosize = 2; efm_port 751 drivers/tty/serial/efm32-uart.c efm_port->port.ops = &efm32_uart_pops; efm_port 752 drivers/tty/serial/efm32-uart.c efm_port->port.flags = UPF_BOOT_AUTOCONF; efm_port 754 drivers/tty/serial/efm32-uart.c ret = efm32_uart_probe_dt(pdev, efm_port); efm_port 759 drivers/tty/serial/efm32-uart.c efm_port->port.line = pdev->id; efm_port 762 drivers/tty/serial/efm32-uart.c efm_port->pdata = *pdata; efm_port 766 drivers/tty/serial/efm32-uart.c line = efm_port->port.line; efm_port 769 drivers/tty/serial/efm32-uart.c efm32_uart_ports[line] = efm_port; efm_port 771 drivers/tty/serial/efm32-uart.c ret = uart_add_one_port(&efm32_uart_reg, &efm_port->port); efm_port 781 drivers/tty/serial/efm32-uart.c kfree(efm_port); efm_port 783 drivers/tty/serial/efm32-uart.c platform_set_drvdata(pdev, efm_port); efm_port 792 drivers/tty/serial/efm32-uart.c struct efm32_uart_port *efm_port = platform_get_drvdata(pdev); efm_port 793 drivers/tty/serial/efm32-uart.c unsigned int line = efm_port->port.line; efm_port 795 drivers/tty/serial/efm32-uart.c uart_remove_one_port(&efm32_uart_reg, &efm_port->port); efm_port 800 drivers/tty/serial/efm32-uart.c kfree(efm_port);