Lines Matching refs:pxa

123 	struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host);  in armada_38x_quirks()  local
133 pxa->sdio3_conf_reg = devm_ioremap_resource(&pdev->dev, res); in armada_38x_quirks()
134 if (IS_ERR(pxa->sdio3_conf_reg)) in armada_38x_quirks()
135 return PTR_ERR(pxa->sdio3_conf_reg); in armada_38x_quirks()
192 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in pxav3_gen_init_74_clocks() local
196 if (pxa->power_mode == MMC_POWER_UP in pxav3_gen_init_74_clocks()
203 pxa->power_mode, in pxav3_gen_init_74_clocks()
235 pxa->power_mode = power_mode; in pxav3_gen_init_74_clocks()
241 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in pxav3_set_uhs_signaling() local
275 if (pxa->sdio3_conf_reg) { in pxav3_set_uhs_signaling()
276 u8 reg_val = readb(pxa->sdio3_conf_reg); in pxav3_set_uhs_signaling()
289 writeb(reg_val, pxa->sdio3_conf_reg); in pxav3_set_uhs_signaling()
376 struct sdhci_pxa *pxa = NULL; in sdhci_pxav3_probe() local
380 host = sdhci_pltfm_init(pdev, &sdhci_pxav3_pdata, sizeof(*pxa)); in sdhci_pxav3_probe()
385 pxa = sdhci_pltfm_priv(pltfm_host); in sdhci_pxav3_probe()
387 pxa->clk_io = devm_clk_get(dev, "io"); in sdhci_pxav3_probe()
388 if (IS_ERR(pxa->clk_io)) in sdhci_pxav3_probe()
389 pxa->clk_io = devm_clk_get(dev, NULL); in sdhci_pxav3_probe()
390 if (IS_ERR(pxa->clk_io)) { in sdhci_pxav3_probe()
392 ret = PTR_ERR(pxa->clk_io); in sdhci_pxav3_probe()
395 pltfm_host->clk = pxa->clk_io; in sdhci_pxav3_probe()
396 clk_prepare_enable(pxa->clk_io); in sdhci_pxav3_probe()
398 pxa->clk_core = devm_clk_get(dev, "core"); in sdhci_pxav3_probe()
399 if (!IS_ERR(pxa->clk_core)) in sdhci_pxav3_probe()
400 clk_prepare_enable(pxa->clk_core); in sdhci_pxav3_probe()
466 clk_disable_unprepare(pxa->clk_io); in sdhci_pxav3_probe()
467 clk_disable_unprepare(pxa->clk_core); in sdhci_pxav3_probe()
477 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in sdhci_pxav3_remove() local
485 clk_disable_unprepare(pxa->clk_io); in sdhci_pxav3_remove()
486 clk_disable_unprepare(pxa->clk_core); in sdhci_pxav3_remove()
526 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in sdhci_pxav3_runtime_suspend() local
536 clk_disable_unprepare(pxa->clk_io); in sdhci_pxav3_runtime_suspend()
537 if (!IS_ERR(pxa->clk_core)) in sdhci_pxav3_runtime_suspend()
538 clk_disable_unprepare(pxa->clk_core); in sdhci_pxav3_runtime_suspend()
547 struct sdhci_pxa *pxa = sdhci_pltfm_priv(pltfm_host); in sdhci_pxav3_runtime_resume() local
549 clk_prepare_enable(pxa->clk_io); in sdhci_pxav3_runtime_resume()
550 if (!IS_ERR(pxa->clk_core)) in sdhci_pxav3_runtime_resume()
551 clk_prepare_enable(pxa->clk_core); in sdhci_pxav3_runtime_resume()