msm_port 187 drivers/tty/serial/msm_serial.c #define UART_TO_MSM(uart_port) container_of(uart_port, struct msm_port, uart) msm_port 227 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 233 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 243 drivers/tty/serial/msm_serial.c static void msm_start_rx_dma(struct msm_port *msm_port); msm_port 271 drivers/tty/serial/msm_serial.c static void msm_release_dma(struct msm_port *msm_port) msm_port 275 drivers/tty/serial/msm_serial.c dma = &msm_port->tx_dma; msm_port 277 drivers/tty/serial/msm_serial.c msm_stop_dma(&msm_port->uart, dma); msm_port 283 drivers/tty/serial/msm_serial.c dma = &msm_port->rx_dma; msm_port 285 drivers/tty/serial/msm_serial.c msm_stop_dma(&msm_port->uart, dma); msm_port 293 drivers/tty/serial/msm_serial.c static void msm_request_tx_dma(struct msm_port *msm_port, resource_size_t base) msm_port 295 drivers/tty/serial/msm_serial.c struct device *dev = msm_port->uart.dev; msm_port 301 drivers/tty/serial/msm_serial.c dma = &msm_port->tx_dma; msm_port 323 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm < UARTDM_1P4) msm_port 336 drivers/tty/serial/msm_serial.c static void msm_request_rx_dma(struct msm_port *msm_port, resource_size_t base) msm_port 338 drivers/tty/serial/msm_serial.c struct device *dev = msm_port->uart.dev; msm_port 344 drivers/tty/serial/msm_serial.c dma = &msm_port->rx_dma; msm_port 370 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm < UARTDM_1P4) msm_port 400 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 402 drivers/tty/serial/msm_serial.c msm_port->imr &= ~UART_IMR_TXLEV; msm_port 403 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 408 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 409 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->tx_dma; msm_port 415 drivers/tty/serial/msm_serial.c msm_port->imr |= UART_IMR_TXLEV; msm_port 416 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 428 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = args; msm_port 429 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; msm_port 431 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->tx_dma; msm_port 452 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm > UARTDM_1P3) { msm_port 465 drivers/tty/serial/msm_serial.c msm_port->imr |= UART_IMR_TXLEV; msm_port 466 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 476 drivers/tty/serial/msm_serial.c static int msm_handle_tx_dma(struct msm_port *msm_port, unsigned int count) msm_port 478 drivers/tty/serial/msm_serial.c struct circ_buf *xmit = &msm_port->uart.state->xmit; msm_port 479 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; msm_port 480 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->tx_dma; msm_port 502 drivers/tty/serial/msm_serial.c dma->desc->callback_param = msm_port; msm_port 513 drivers/tty/serial/msm_serial.c msm_port->imr &= ~UART_IMR_TXLEV; msm_port 514 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 521 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm < UARTDM_1P4) msm_port 526 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm > UARTDM_1P3) msm_port 538 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = args; msm_port 539 drivers/tty/serial/msm_serial.c struct uart_port *port = &msm_port->uart; msm_port 541 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->rx_dma; msm_port 573 drivers/tty/serial/msm_serial.c if (msm_port->break_detected && dma->virt[i] == 0) { msm_port 576 drivers/tty/serial/msm_serial.c msm_port->break_detected = false; msm_port 591 drivers/tty/serial/msm_serial.c msm_start_rx_dma(msm_port); msm_port 599 drivers/tty/serial/msm_serial.c static void msm_start_rx_dma(struct msm_port *msm_port) msm_port 601 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->rx_dma; msm_port 602 drivers/tty/serial/msm_serial.c struct uart_port *uart = &msm_port->uart; msm_port 622 drivers/tty/serial/msm_serial.c dma->desc->callback_param = msm_port; msm_port 632 drivers/tty/serial/msm_serial.c msm_port->imr &= ~(UART_IMR_RXLEV | UART_IMR_RXSTALE); msm_port 638 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm < UARTDM_1P4) msm_port 639 drivers/tty/serial/msm_serial.c msm_port->imr |= UART_IMR_RXSTALE; msm_port 641 drivers/tty/serial/msm_serial.c msm_write(uart, msm_port->imr, UART_IMR); msm_port 653 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm < UARTDM_1P4) msm_port 658 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm > UARTDM_1P3) msm_port 668 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 669 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->rx_dma; msm_port 671 drivers/tty/serial/msm_serial.c msm_port->imr &= ~(UART_IMR_RXLEV | UART_IMR_RXSTALE); msm_port 672 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 680 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 682 drivers/tty/serial/msm_serial.c msm_port->imr |= UART_IMR_DELTA_CTS; msm_port 683 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 691 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 701 drivers/tty/serial/msm_serial.c msm_port->old_snap_state; msm_port 702 drivers/tty/serial/msm_serial.c msm_port->old_snap_state = 0; msm_port 705 drivers/tty/serial/msm_serial.c msm_port->old_snap_state += count; msm_port 718 drivers/tty/serial/msm_serial.c msm_port->old_snap_state -= count; msm_port 728 drivers/tty/serial/msm_serial.c if (msm_port->break_detected && buf[i] == 0) { msm_port 731 drivers/tty/serial/msm_serial.c msm_port->break_detected = false; msm_port 758 drivers/tty/serial/msm_serial.c msm_start_rx_dma(msm_port); msm_port 817 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 822 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 827 drivers/tty/serial/msm_serial.c if (tx_count && msm_port->is_uartdm) msm_port 837 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 863 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 864 drivers/tty/serial/msm_serial.c struct circ_buf *xmit = &msm_port->uart.state->xmit; msm_port 865 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->tx_dma; msm_port 872 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 879 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 897 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm > UARTDM_1P3) { msm_port 911 drivers/tty/serial/msm_serial.c err = msm_handle_tx_dma(msm_port, dma_count); msm_port 927 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 928 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->rx_dma; msm_port 938 drivers/tty/serial/msm_serial.c msm_port->break_detected = true; msm_port 953 drivers/tty/serial/msm_serial.c } else if (msm_port->is_uartdm) { msm_port 964 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); /* restore interrupt */ msm_port 982 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 997 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1035 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1059 drivers/tty/serial/msm_serial.c target = clk_round_rate(msm_port->clk, 16 * baud); msm_port 1080 drivers/tty/serial/msm_serial.c target = clk_round_rate(msm_port->clk, old + 1); msm_port 1104 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1112 drivers/tty/serial/msm_serial.c clk_set_rate(msm_port->clk, rate); msm_port 1124 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) { msm_port 1149 drivers/tty/serial/msm_serial.c msm_port->imr = UART_IMR_RXLEV | UART_IMR_RXSTALE | msm_port 1152 drivers/tty/serial/msm_serial.c msm_write(port, msm_port->imr, UART_IMR); msm_port 1154 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) { msm_port 1165 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1167 drivers/tty/serial/msm_serial.c clk_prepare_enable(msm_port->clk); msm_port 1168 drivers/tty/serial/msm_serial.c clk_prepare_enable(msm_port->pclk); msm_port 1174 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1178 drivers/tty/serial/msm_serial.c snprintf(msm_port->name, sizeof(msm_port->name), msm_port 1191 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1202 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) { msm_port 1203 drivers/tty/serial/msm_serial.c msm_request_tx_dma(msm_port, msm_port->uart.mapbase); msm_port 1204 drivers/tty/serial/msm_serial.c msm_request_rx_dma(msm_port, msm_port->uart.mapbase); msm_port 1208 drivers/tty/serial/msm_serial.c msm_port->name, port); msm_port 1215 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1216 drivers/tty/serial/msm_serial.c msm_release_dma(msm_port); msm_port 1218 drivers/tty/serial/msm_serial.c clk_disable_unprepare(msm_port->pclk); msm_port 1219 drivers/tty/serial/msm_serial.c clk_disable_unprepare(msm_port->clk); msm_port 1226 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1228 drivers/tty/serial/msm_serial.c msm_port->imr = 0; msm_port 1231 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1232 drivers/tty/serial/msm_serial.c msm_release_dma(msm_port); msm_port 1234 drivers/tty/serial/msm_serial.c clk_disable_unprepare(msm_port->clk); msm_port 1242 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1243 drivers/tty/serial/msm_serial.c struct msm_dma *dma = &msm_port->rx_dma; msm_port 1317 drivers/tty/serial/msm_serial.c msm_start_rx_dma(msm_port); msm_port 1396 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1400 drivers/tty/serial/msm_serial.c clk_prepare_enable(msm_port->clk); msm_port 1401 drivers/tty/serial/msm_serial.c clk_prepare_enable(msm_port->pclk); msm_port 1404 drivers/tty/serial/msm_serial.c clk_disable_unprepare(msm_port->clk); msm_port 1405 drivers/tty/serial/msm_serial.c clk_disable_unprepare(msm_port->pclk); msm_port 1415 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1416 drivers/tty/serial/msm_serial.c unsigned int rf_reg = msm_port->is_uartdm ? UARTDM_RF : UART_RF; msm_port 1469 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1475 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1489 drivers/tty/serial/msm_serial.c struct msm_port *msm_port = UART_TO_MSM(port); msm_port 1495 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) msm_port 1503 drivers/tty/serial/msm_serial.c msm_write(port, c, msm_port->is_uartdm ? UARTDM_TF : UART_TF); msm_port 1538 drivers/tty/serial/msm_serial.c static struct msm_port msm_uart_ports[] = { msm_port 1647 drivers/tty/serial/msm_serial.c struct msm_port *msm_port; msm_port 1652 drivers/tty/serial/msm_serial.c msm_port = UART_TO_MSM(port); msm_port 1654 drivers/tty/serial/msm_serial.c __msm_console_write(port, s, count, msm_port->is_uartdm); msm_port 1762 drivers/tty/serial/msm_serial.c struct msm_port *msm_port; msm_port 1783 drivers/tty/serial/msm_serial.c msm_port = UART_TO_MSM(port); msm_port 1787 drivers/tty/serial/msm_serial.c msm_port->is_uartdm = (unsigned long)id->data; msm_port 1789 drivers/tty/serial/msm_serial.c msm_port->is_uartdm = 0; msm_port 1791 drivers/tty/serial/msm_serial.c msm_port->clk = devm_clk_get(&pdev->dev, "core"); msm_port 1792 drivers/tty/serial/msm_serial.c if (IS_ERR(msm_port->clk)) msm_port 1793 drivers/tty/serial/msm_serial.c return PTR_ERR(msm_port->clk); msm_port 1795 drivers/tty/serial/msm_serial.c if (msm_port->is_uartdm) { msm_port 1796 drivers/tty/serial/msm_serial.c msm_port->pclk = devm_clk_get(&pdev->dev, "iface"); msm_port 1797 drivers/tty/serial/msm_serial.c if (IS_ERR(msm_port->pclk)) msm_port 1798 drivers/tty/serial/msm_serial.c return PTR_ERR(msm_port->pclk); msm_port 1801 drivers/tty/serial/msm_serial.c port->uartclk = clk_get_rate(msm_port->clk); msm_port 1837 drivers/tty/serial/msm_serial.c struct msm_port *port = dev_get_drvdata(dev); msm_port 1846 drivers/tty/serial/msm_serial.c struct msm_port *port = dev_get_drvdata(dev);