imx_data 64 drivers/gpio/gpio-vf610.c static const struct fsl_gpio_soc_data imx_data = { imx_data 70 drivers/gpio/gpio-vf610.c { .compatible = "fsl,imx7ulp-gpio", .data = &imx_data, }, imx_data 308 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 323 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_HAVE_CAP1) imx_data 340 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 341 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_HAVE_CAP1) imx_data 350 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_HS400) imx_data 357 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR_OR_NULL(imx_data->pins_100mhz) || imx_data 358 drivers/mmc/host/sdhci-esdhc-imx.c IS_ERR_OR_NULL(imx_data->pins_200mhz)) imx_data 364 drivers/mmc/host/sdhci-esdhc-imx.c if (unlikely(reg == SDHCI_MAX_CURRENT) && esdhc_is_usdhc(imx_data)) { imx_data 381 drivers/mmc/host/sdhci-esdhc-imx.c if ((imx_data->multiblock_status == WAIT_FOR_INT) && imx_data 386 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->multiblock_status = NO_CMD_PENDING; imx_data 396 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 401 drivers/mmc/host/sdhci-esdhc-imx.c if ((val & SDHCI_INT_CARD_INT) && !esdhc_is_usdhc(imx_data)) { imx_data 423 drivers/mmc/host/sdhci-esdhc-imx.c if (unlikely((imx_data->socdata->flags & ESDHC_FLAG_MULTIBLK_NO_INT) imx_data 431 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->multiblock_status == MULTIBLK_IN_PROCESS) imx_data 437 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->multiblock_status = WAIT_FOR_INT; imx_data 447 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 453 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 467 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 468 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) imx_data 470 drivers/mmc/host/sdhci-esdhc-imx.c else if (imx_data->socdata->flags & ESDHC_FLAG_STD_TUNING) imx_data 486 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 507 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 526 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) { imx_data 536 drivers/mmc/host/sdhci-esdhc-imx.c } else if (imx_data->socdata->flags & ESDHC_FLAG_STD_TUNING) { imx_data 560 drivers/mmc/host/sdhci-esdhc-imx.c if ((imx_data->socdata->flags & ESDHC_FLAG_MULTIBLK_NO_INT) imx_data 570 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 600 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->scratchpad = val; imx_data 608 drivers/mmc/host/sdhci-esdhc-imx.c (imx_data->socdata->flags & ESDHC_FLAG_MULTIBLK_NO_INT)) imx_data 609 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->multiblock_status = MULTIBLK_IN_PROCESS; imx_data 611 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) imx_data 615 drivers/mmc/host/sdhci-esdhc-imx.c writel(val << 16 | imx_data->scratchpad, imx_data 647 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 664 drivers/mmc/host/sdhci-esdhc-imx.c if (!is_imx25_esdhc(imx_data)) { imx_data 702 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 709 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->is_ddr = 0; imx_data 741 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 743 drivers/mmc/host/sdhci-esdhc-imx.c int ddr_pre_div = imx_data->is_ddr ? 2 : 1; imx_data 748 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 760 drivers/mmc/host/sdhci-esdhc-imx.c if (is_imx53_esdhc(imx_data)) { imx_data 778 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_ERR010450) { imx_data 781 drivers/mmc/host/sdhci-esdhc-imx.c max_clock = imx_data->is_ddr ? 45000000 : 150000000; imx_data 806 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 818 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 819 drivers/mmc/host/sdhci-esdhc-imx.c struct esdhc_platform_data *boarddata = &imx_data->boarddata; imx_data 948 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 953 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->pinctrl) || imx_data 954 drivers/mmc/host/sdhci-esdhc-imx.c IS_ERR(imx_data->pins_default) || imx_data 955 drivers/mmc/host/sdhci-esdhc-imx.c IS_ERR(imx_data->pins_100mhz) || imx_data 956 drivers/mmc/host/sdhci-esdhc-imx.c IS_ERR(imx_data->pins_200mhz)) imx_data 962 drivers/mmc/host/sdhci-esdhc-imx.c pinctrl = imx_data->pins_100mhz; imx_data 967 drivers/mmc/host/sdhci-esdhc-imx.c pinctrl = imx_data->pins_200mhz; imx_data 971 drivers/mmc/host/sdhci-esdhc-imx.c pinctrl = imx_data->pins_default; imx_data 974 drivers/mmc/host/sdhci-esdhc-imx.c return pinctrl_select_state(imx_data->pinctrl, pinctrl); imx_data 1023 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1027 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 1028 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) { imx_data 1034 drivers/mmc/host/sdhci-esdhc-imx.c } else if (imx_data->socdata->flags & ESDHC_FLAG_STD_TUNING) { imx_data 1046 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1047 drivers/mmc/host/sdhci-esdhc-imx.c struct esdhc_platform_data *boarddata = &imx_data->boarddata; imx_data 1052 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->is_ddr = 0; imx_data 1067 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->is_ddr = 1; imx_data 1073 drivers/mmc/host/sdhci-esdhc-imx.c if (is_imx53_esdhc(imx_data)) imx_data 1081 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->is_ddr = 1; imx_data 1106 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1109 drivers/mmc/host/sdhci-esdhc-imx.c return esdhc_is_usdhc(imx_data) ? 1 << 29 : 1 << 27; imx_data 1115 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1119 drivers/mmc/host/sdhci-esdhc-imx.c esdhc_is_usdhc(imx_data) ? 0xF : 0xE, imx_data 1166 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1169 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 1210 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_CQHCI) { imx_data 1218 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_STD_TUNING) { imx_data 1222 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->boarddata.tuning_start_tap) { imx_data 1224 drivers/mmc/host/sdhci-esdhc-imx.c tmp |= imx_data->boarddata.tuning_start_tap; imx_data 1227 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->boarddata.tuning_step) { imx_data 1229 drivers/mmc/host/sdhci-esdhc-imx.c tmp |= imx_data->boarddata.tuning_step imx_data 1233 drivers/mmc/host/sdhci-esdhc-imx.c } else if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) { imx_data 1312 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data) imx_data 1315 drivers/mmc/host/sdhci-esdhc-imx.c struct esdhc_platform_data *boarddata = &imx_data->boarddata; imx_data 1341 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data) && !IS_ERR(imx_data->pins_default)) { imx_data 1342 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->pins_100mhz = pinctrl_lookup_state(imx_data->pinctrl, imx_data 1344 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->pins_200mhz = pinctrl_lookup_state(imx_data->pinctrl, imx_data 1362 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data) imx_data 1370 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data) imx_data 1372 drivers/mmc/host/sdhci-esdhc-imx.c struct esdhc_platform_data *boarddata = &imx_data->boarddata; imx_data 1380 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->boarddata = *((struct esdhc_platform_data *) imx_data 1442 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data; imx_data 1445 drivers/mmc/host/sdhci-esdhc-imx.c sizeof(*imx_data)); imx_data 1451 drivers/mmc/host/sdhci-esdhc-imx.c imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1453 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->socdata = of_id ? of_id->data : (struct esdhc_soc_data *) imx_data 1456 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1457 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_add_request(&imx_data->pm_qos_req, imx_data 1460 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->clk_ipg = devm_clk_get(&pdev->dev, "ipg"); imx_data 1461 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->clk_ipg)) { imx_data 1462 drivers/mmc/host/sdhci-esdhc-imx.c err = PTR_ERR(imx_data->clk_ipg); imx_data 1466 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->clk_ahb = devm_clk_get(&pdev->dev, "ahb"); imx_data 1467 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->clk_ahb)) { imx_data 1468 drivers/mmc/host/sdhci-esdhc-imx.c err = PTR_ERR(imx_data->clk_ahb); imx_data 1472 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->clk_per = devm_clk_get(&pdev->dev, "per"); imx_data 1473 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->clk_per)) { imx_data 1474 drivers/mmc/host/sdhci-esdhc-imx.c err = PTR_ERR(imx_data->clk_per); imx_data 1478 drivers/mmc/host/sdhci-esdhc-imx.c pltfm_host->clk = imx_data->clk_per; imx_data 1480 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_per); imx_data 1483 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_ipg); imx_data 1486 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_ahb); imx_data 1490 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->pinctrl = devm_pinctrl_get(&pdev->dev); imx_data 1491 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->pinctrl)) { imx_data 1492 drivers/mmc/host/sdhci-esdhc-imx.c err = PTR_ERR(imx_data->pinctrl); imx_data 1496 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->pins_default = pinctrl_lookup_state(imx_data->pinctrl, imx_data 1498 drivers/mmc/host/sdhci-esdhc-imx.c if (IS_ERR(imx_data->pins_default)) imx_data 1501 drivers/mmc/host/sdhci-esdhc-imx.c if (esdhc_is_usdhc(imx_data)) { imx_data 1504 drivers/mmc/host/sdhci-esdhc-imx.c if (!(imx_data->socdata->flags & ESDHC_FLAG_HS200)) imx_data 1519 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) imx_data 1523 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_ERR004536) imx_data 1526 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_HS400) imx_data 1529 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_HS400_ES) { imx_data 1535 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_CQHCI) { imx_data 1552 drivers/mmc/host/sdhci-esdhc-imx.c err = sdhci_esdhc_imx_probe_dt(pdev, host, imx_data); imx_data 1554 drivers/mmc/host/sdhci-esdhc-imx.c err = sdhci_esdhc_imx_probe_nondt(pdev, host, imx_data); imx_data 1575 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ahb); imx_data 1577 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ipg); imx_data 1579 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_per); imx_data 1581 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1582 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_remove_request(&imx_data->pm_qos_req); imx_data 1591 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1600 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_per); imx_data 1601 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ipg); imx_data 1602 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ahb); imx_data 1604 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1605 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_remove_request(&imx_data->pm_qos_req); imx_data 1654 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1670 drivers/mmc/host/sdhci-esdhc-imx.c imx_data->actual_clock = host->mmc->actual_clock; imx_data 1672 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_per); imx_data 1673 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ipg); imx_data 1674 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ahb); imx_data 1676 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1677 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_remove_request(&imx_data->pm_qos_req); imx_data 1686 drivers/mmc/host/sdhci-esdhc-imx.c struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); imx_data 1689 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1690 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_add_request(&imx_data->pm_qos_req, imx_data 1693 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_ahb); imx_data 1697 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_per); imx_data 1701 drivers/mmc/host/sdhci-esdhc-imx.c err = clk_prepare_enable(imx_data->clk_ipg); imx_data 1705 drivers/mmc/host/sdhci-esdhc-imx.c esdhc_pltfm_set_clock(host, imx_data->actual_clock); imx_data 1717 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ipg); imx_data 1719 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_per); imx_data 1721 drivers/mmc/host/sdhci-esdhc-imx.c clk_disable_unprepare(imx_data->clk_ahb); imx_data 1723 drivers/mmc/host/sdhci-esdhc-imx.c if (imx_data->socdata->flags & ESDHC_FLAG_PMQOS) imx_data 1724 drivers/mmc/host/sdhci-esdhc-imx.c pm_qos_remove_request(&imx_data->pm_qos_req);