/Linux-v5.4/drivers/mmc/host/ |
D | sdhci-xenon.c | 133 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_retune_setup() local 134 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_retune_setup() 179 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_reset() local 180 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_reset() 263 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_set_ios() local 264 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_set_ios() 332 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_init_card() local 333 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_init_card() 361 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_enable_sdio_irq() local 362 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_enable_sdio_irq() [all …]
|
D | sdhci-of-dwcmshc.c | 65 struct sdhci_pltfm_host *pltfm_host; in dwcmshc_probe() local 84 pltfm_host = sdhci_priv(host); in dwcmshc_probe() 85 priv = sdhci_pltfm_priv(pltfm_host); in dwcmshc_probe() 87 pltfm_host->clk = devm_clk_get(&pdev->dev, "core"); in dwcmshc_probe() 88 if (IS_ERR(pltfm_host->clk)) { in dwcmshc_probe() 89 err = PTR_ERR(pltfm_host->clk); in dwcmshc_probe() 93 err = clk_prepare_enable(pltfm_host->clk); in dwcmshc_probe() 114 clk_disable_unprepare(pltfm_host->clk); in dwcmshc_probe() 124 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in dwcmshc_remove() local 125 struct dwcmshc_priv *priv = sdhci_pltfm_priv(pltfm_host); in dwcmshc_remove() [all …]
|
D | sdhci-st.c | 144 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in st_mmcss_cconfig() local 164 clk_set_rate(pltfm_host->clk, mhost->f_max); in st_mmcss_cconfig() 168 clk_set_rate(pltfm_host->clk, mhost->f_max); in st_mmcss_cconfig() 172 clk_set_rate(pltfm_host->clk, 50000000); in st_mmcss_cconfig() 245 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_st_set_dll_for_clock() local 246 struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); in sdhci_st_set_dll_for_clock() 259 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_st_set_uhs_signaling() local 260 struct st_mmc_platform_data *pdata = sdhci_pltfm_priv(pltfm_host); in sdhci_st_set_uhs_signaling() 347 struct sdhci_pltfm_host *pltfm_host; in sdhci_st_probe() local 378 pltfm_host = sdhci_priv(host); in sdhci_st_probe() [all …]
|
D | sdhci-iproc.c | 54 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_iproc_readw() local 55 struct sdhci_iproc_host *iproc_host = sdhci_pltfm_priv(pltfm_host); in sdhci_iproc_readw() 117 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_iproc_writew() local 118 struct sdhci_iproc_host *iproc_host = sdhci_pltfm_priv(pltfm_host); in sdhci_iproc_writew() 168 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_iproc_get_max_clock() local 170 if (pltfm_host->clk) in sdhci_iproc_get_max_clock() 173 return pltfm_host->clock; in sdhci_iproc_get_max_clock() 295 struct sdhci_pltfm_host *pltfm_host; in sdhci_iproc_probe() local 306 pltfm_host = sdhci_priv(host); in sdhci_iproc_probe() 307 iproc_host = sdhci_pltfm_priv(pltfm_host); in sdhci_iproc_probe() [all …]
|
D | sdhci-tegra.c | 157 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_readw() local 158 struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host); in tegra_sdhci_readw() 172 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_writew() local 180 pltfm_host->xfer_mode_shadow = val; in tegra_sdhci_writew() 183 writel((val << 16) | pltfm_host->xfer_mode_shadow, in tegra_sdhci_writew() 193 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_writel() local 194 struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host); in tegra_sdhci_writel() 275 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_is_pad_and_regulator_valid() local 276 struct sdhci_tegra *tegra_host = sdhci_pltfm_priv(pltfm_host); in tegra_sdhci_is_pad_and_regulator_valid() 308 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in tegra_sdhci_set_tap() local [all …]
|
D | sdhci-of-aspeed.c | 55 struct sdhci_pltfm_host *pltfm_host; in aspeed_sdhci_set_clock() local 60 pltfm_host = sdhci_priv(host); in aspeed_sdhci_set_clock() 61 parent = clk_get_rate(pltfm_host->clk); in aspeed_sdhci_set_clock() 148 struct sdhci_pltfm_host *pltfm_host; in aspeed_sdhci_probe() local 159 pltfm_host = sdhci_priv(host); in aspeed_sdhci_probe() 160 dev = sdhci_pltfm_priv(pltfm_host); in aspeed_sdhci_probe() 176 pltfm_host->clk = devm_clk_get(&pdev->dev, NULL); in aspeed_sdhci_probe() 177 if (IS_ERR(pltfm_host->clk)) in aspeed_sdhci_probe() 178 return PTR_ERR(pltfm_host->clk); in aspeed_sdhci_probe() 180 ret = clk_prepare_enable(pltfm_host->clk); in aspeed_sdhci_probe() [all …]
|
D | sdhci-pltfm.c | 30 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pltfm_clk_get_max_clock() local 32 return clk_get_rate(pltfm_host->clk); in sdhci_pltfm_clk_get_max_clock() 83 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_get_property() local 105 device_property_read_u32(dev, "clock-frequency", &pltfm_host->clock); in sdhci_get_property() 197 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pltfm_unregister() local 201 clk_disable_unprepare(pltfm_host->clk); in sdhci_pltfm_unregister() 212 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pltfm_suspend() local 222 clk_disable_unprepare(pltfm_host->clk); in sdhci_pltfm_suspend() 231 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_pltfm_resume() local 234 ret = clk_prepare_enable(pltfm_host->clk); in sdhci_pltfm_resume() [all …]
|
D | sdhci-xenon-phy.c | 202 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_alloc_emmc_phy() local 203 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_alloc_emmc_phy() 231 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_emmc_phy_init() local 232 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_emmc_phy_init() 282 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in armada_3700_soc_pad_voltage_set() local 283 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in armada_3700_soc_pad_voltage_set() 304 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_emmc_phy_set_soc_pad() local 305 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_emmc_phy_set_soc_pad() 323 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in xenon_emmc_phy_enable_dll() local 324 struct xenon_priv *priv = sdhci_pltfm_priv(pltfm_host); in xenon_emmc_phy_enable_dll() [all …]
|
D | sdhci-of-arasan.c | 139 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_syscon_write() local 140 struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); in sdhci_arasan_syscon_write() 175 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_set_clock() local 176 struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); in sdhci_arasan_set_clock() 254 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_reset() local 255 struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); in sdhci_arasan_reset() 398 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_suspend() local 399 struct sdhci_arasan_data *sdhci_arasan = sdhci_pltfm_priv(pltfm_host); in sdhci_arasan_suspend() 425 clk_disable(pltfm_host->clk); in sdhci_arasan_suspend() 441 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_arasan_resume() local [all …]
|
D | sdhci-omap.c | 228 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_omap_enable_sdio_irq() local 229 struct sdhci_omap_host *omap_host = sdhci_pltfm_priv(pltfm_host); in sdhci_omap_enable_sdio_irq() 281 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_omap_execute_tuning() local 282 struct sdhci_omap_host *omap_host = sdhci_pltfm_priv(pltfm_host); in sdhci_omap_execute_tuning() 466 struct sdhci_pltfm_host *pltfm_host; in sdhci_omap_card_busy() local 470 pltfm_host = sdhci_priv(host); in sdhci_omap_card_busy() 471 omap_host = sdhci_pltfm_priv(pltfm_host); in sdhci_omap_card_busy() 513 struct sdhci_pltfm_host *pltfm_host; in sdhci_omap_start_signal_voltage_switch() local 517 pltfm_host = sdhci_priv(host); in sdhci_omap_start_signal_voltage_switch() 518 omap_host = sdhci_pltfm_priv(pltfm_host); in sdhci_omap_start_signal_voltage_switch() [all …]
|
D | sdhci-dove.c | 70 struct sdhci_pltfm_host *pltfm_host; in sdhci_dove_probe() local 77 pltfm_host = sdhci_priv(host); in sdhci_dove_probe() 78 pltfm_host->clk = devm_clk_get(&pdev->dev, NULL); in sdhci_dove_probe() 80 if (!IS_ERR(pltfm_host->clk)) in sdhci_dove_probe() 81 clk_prepare_enable(pltfm_host->clk); in sdhci_dove_probe() 94 clk_disable_unprepare(pltfm_host->clk); in sdhci_dove_probe()
|
D | sdhci-of-at91.c | 146 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_at91_set_clks_presets() local 147 struct sdhci_at91_priv *priv = sdhci_pltfm_priv(pltfm_host); in sdhci_at91_set_clks_presets() 225 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_at91_suspend() local 226 struct sdhci_at91_priv *priv = sdhci_pltfm_priv(pltfm_host); in sdhci_at91_suspend() 241 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_at91_runtime_suspend() local 242 struct sdhci_at91_priv *priv = sdhci_pltfm_priv(pltfm_host); in sdhci_at91_runtime_suspend() 260 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_at91_runtime_resume() local 261 struct sdhci_at91_priv *priv = sdhci_pltfm_priv(pltfm_host); in sdhci_at91_runtime_resume() 308 struct sdhci_pltfm_host *pltfm_host; in sdhci_at91_probe() local 321 pltfm_host = sdhci_priv(host); in sdhci_at91_probe() [all …]
|
D | sdhci-esdhc-imx.c | 307 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readl_le() local 308 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); in esdhc_readl_le() 395 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writel_le() local 396 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); in esdhc_writel_le() 446 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readw_le() local 447 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); in esdhc_readw_le() 506 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writew_le() local 507 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); in esdhc_writew_le() 646 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writeb_le() local 647 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); in esdhc_writeb_le() [all …]
|
D | sdhci-pxav3.c | 122 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in armada_38x_quirks() local 123 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in armada_38x_quirks() 193 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in pxav3_gen_init_74_clocks() local 194 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in pxav3_gen_init_74_clocks() 242 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in pxav3_set_uhs_signaling() local 243 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in pxav3_set_uhs_signaling() 373 struct sdhci_pltfm_host *pltfm_host; in sdhci_pxav3_probe() local 386 pltfm_host = sdhci_priv(host); in sdhci_pxav3_probe() 387 pxa = sdhci_pltfm_priv(pltfm_host); in sdhci_pxav3_probe() 397 pltfm_host->clk = pxa->clk_io; in sdhci_pxav3_probe() [all …]
|
D | sdhci-msm.c | 260 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_priv_msm_offset() local 261 struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host); in sdhci_priv_msm_offset() 273 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_msm_mci_variant_readl_relaxed() local 274 struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host); in sdhci_msm_mci_variant_readl_relaxed() 288 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_msm_mci_variant_writel_relaxed() local 289 struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host); in sdhci_msm_mci_variant_writel_relaxed() 321 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in msm_set_clock_rate_for_bus_mode() local 322 struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host); in msm_set_clock_rate_for_bus_mode() 575 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in msm_init_cm_dll() local 576 struct sdhci_msm_host *msm_host = sdhci_pltfm_priv(pltfm_host); in msm_init_cm_dll() [all …]
|
D | sdhci-of-esdhc.c | 105 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readl_fixup() local 106 struct sdhci_esdhc *esdhc = sdhci_pltfm_priv(pltfm_host); in esdhc_readl_fixup() 168 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_readw_fixup() local 169 struct sdhci_esdhc *esdhc = sdhci_pltfm_priv(pltfm_host); in esdhc_readw_fixup() 246 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_writew_fixup() local 256 pltfm_host->xfer_mode_shadow = value; in esdhc_writew_fixup() 259 ret = (value << 16) | pltfm_host->xfer_mode_shadow; in esdhc_writew_fixup() 464 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_of_adma_workaround() local 465 struct sdhci_esdhc *esdhc = sdhci_pltfm_priv(pltfm_host); in esdhc_of_adma_workaround() 510 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in esdhc_of_get_max_clock() local [all …]
|
D | sdhci-cadence.c | 163 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_cdns_priv() local 165 return sdhci_pltfm_priv(pltfm_host); in sdhci_cdns_priv() 337 struct sdhci_pltfm_host *pltfm_host; in sdhci_cdns_probe() local 361 pltfm_host = sdhci_priv(host); in sdhci_cdns_probe() 362 pltfm_host->clk = clk; in sdhci_cdns_probe() 364 priv = sdhci_pltfm_priv(pltfm_host); in sdhci_cdns_probe() 404 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_cdns_resume() local 405 struct sdhci_cdns_priv *priv = sdhci_pltfm_priv(pltfm_host); in sdhci_cdns_resume() 408 ret = clk_prepare_enable(pltfm_host->clk); in sdhci_cdns_resume() 423 clk_disable_unprepare(pltfm_host->clk); in sdhci_cdns_resume()
|
D | sdhci_am654.c | 99 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_am654_set_clock() local 100 struct sdhci_am654_data *sdhci_am654 = sdhci_pltfm_priv(pltfm_host); in sdhci_am654_set_clock() 195 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_j721e_4bit_set_clock() local 196 struct sdhci_am654_data *sdhci_am654 = sdhci_pltfm_priv(pltfm_host); in sdhci_j721e_4bit_set_clock() 309 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_am654_init() local 310 struct sdhci_am654_data *sdhci_am654 = sdhci_pltfm_priv(pltfm_host); in sdhci_am654_init() 421 struct sdhci_pltfm_host *pltfm_host; in sdhci_am654_probe() local 437 pltfm_host = sdhci_priv(host); in sdhci_am654_probe() 438 sdhci_am654 = sdhci_pltfm_priv(pltfm_host); in sdhci_am654_probe() 448 pltfm_host->clk = clk_xin; in sdhci_am654_probe()
|
D | sdhci-sirf.c | 166 struct sdhci_pltfm_host *pltfm_host; in sdhci_sirf_probe() local 180 pltfm_host = sdhci_priv(host); in sdhci_sirf_probe() 181 pltfm_host->clk = clk; in sdhci_sirf_probe() 185 ret = clk_prepare_enable(pltfm_host->clk); in sdhci_sirf_probe() 208 clk_disable_unprepare(pltfm_host->clk); in sdhci_sirf_probe()
|
D | sdhci-brcmstb.c | 29 struct sdhci_pltfm_host *pltfm_host; in sdhci_brcmstb_probe() local 71 pltfm_host = sdhci_priv(host); in sdhci_brcmstb_probe() 72 pltfm_host->clk = clk; in sdhci_brcmstb_probe()
|
D | sdhci-pltfm.h | 60 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); in sdhci_be32bs_writew() local 70 pltfm_host->xfer_mode_shadow = val; in sdhci_be32bs_writew() 74 val << 16 | pltfm_host->xfer_mode_shadow, in sdhci_be32bs_writew()
|
D | sdhci-pic32.c | 143 struct sdhci_pltfm_host *pltfm_host; in pic32_sdhci_probe() local 155 pltfm_host = sdhci_priv(host); in pic32_sdhci_probe() 156 sdhci_pdata = sdhci_pltfm_priv(pltfm_host); in pic32_sdhci_probe()
|
D | sdhci-pxav2.c | 156 struct sdhci_pltfm_host *pltfm_host; in sdhci_pxav2_probe() local 169 pltfm_host = sdhci_priv(host); in sdhci_pxav2_probe() 177 pltfm_host->clk = clk; in sdhci_pxav2_probe()
|