Home
last modified time | relevance | path

Searched refs:vqmmc (Results 1 - 25 of 33) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/mmc/core/
H A Dregulator.c184 /* If no vqmmc supply then we can't change the voltage */ in mmc_regulator_set_vqmmc()
185 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc()
190 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
193 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
213 ret = mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
218 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
251 mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc"); in mmc_regulator_get_supply()
265 if (IS_ERR(mmc->supply.vqmmc)) { in mmc_regulator_get_supply()
266 if (PTR_ERR(mmc->supply.vqmmc) in mmc_regulator_get_supply()
[all...]
/kernel/linux/linux-6.6/drivers/mmc/core/
H A Dregulator.c187 /* If no vqmmc supply then we can't change the voltage */ in mmc_regulator_set_vqmmc()
188 if (IS_ERR(mmc->supply.vqmmc)) in mmc_regulator_set_vqmmc()
193 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
196 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
216 ret = mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
221 return mmc_regulator_set_voltage_if_supported(mmc->supply.vqmmc, in mmc_regulator_set_vqmmc()
254 mmc->supply.vqmmc = devm_regulator_get_optional(dev, "vqmmc"); in mmc_regulator_get_supply()
268 if (IS_ERR(mmc->supply.vqmmc)) { in mmc_regulator_get_supply()
269 if (PTR_ERR(mmc->supply.vqmmc) in mmc_regulator_get_supply()
[all...]
/kernel/linux/linux-5.10/drivers/mmc/host/
H A Dsdhci-omap.c189 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_omap_enable_iov()
190 ret = regulator_set_voltage(mmc->supply.vqmmc, iov, iov); in sdhci_omap_enable_iov()
192 dev_err(mmc_dev(mmc), "vqmmc set voltage failed\n"); in sdhci_omap_enable_iov()
890 struct regulator *vqmmc; in sdhci_omap_set_capabilities() local
892 vqmmc = regulator_get(dev, "vqmmc"); in sdhci_omap_set_capabilities()
893 if (IS_ERR(vqmmc)) { in sdhci_omap_set_capabilities()
894 ret = PTR_ERR(vqmmc); in sdhci_omap_set_capabilities()
902 if (regulator_is_supported_voltage(vqmmc, IOV_3V3, IOV_3V3)) in sdhci_omap_set_capabilities()
904 if (regulator_is_supported_voltage(vqmmc, IOV_1V in sdhci_omap_set_capabilities()
[all...]
H A Domap_hsmmc.c229 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply()
230 ret = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_enable_supply()
253 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in omap_hsmmc_disable_supply()
254 ret = regulator_disable(mmc->supply.vqmmc); in omap_hsmmc_disable_supply()
271 if (!IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_disable_supply()
272 status = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_disable_supply()
397 ret = omap_hsmmc_disable_boot_regulator(mmc->supply.vqmmc); in omap_hsmmc_disable_boot_regulators()
425 if (IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_reg_get()
426 mmc->supply.vqmmc = devm_regulator_get_optional(host->dev, in omap_hsmmc_reg_get()
428 if (IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_reg_get()
[all...]
H A Ddw_mmc-k3.c175 if (IS_ERR_OR_NULL(mmc->supply.vqmmc)) in dw_mci_hi6220_switch_voltage()
178 ret = regulator_set_voltage(mmc->supply.vqmmc, min_uv, max_uv); in dw_mci_hi6220_switch_voltage()
425 if (!IS_ERR(mmc->supply.vqmmc)) { in dw_mci_hi3660_switch_voltage()
H A Dmeson-gx-mmc.c594 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in meson_mmc_set_ios()
595 regulator_disable(mmc->supply.vqmmc); in meson_mmc_set_ios()
608 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in meson_mmc_set_ios()
609 int ret = regulator_enable(mmc->supply.vqmmc); in meson_mmc_set_ios()
613 "failed to enable vqmmc regulator\n"); in meson_mmc_set_ios()
1086 /* vqmmc regulator is available */ in meson_mmc_voltage_switch()
1087 if (!IS_ERR(mmc->supply.vqmmc)) { in meson_mmc_voltage_switch()
1099 /* no vqmmc regulator, assume fixed regulator at 3/3.3V */ in meson_mmc_voltage_switch()
H A Dsunxi-mmc.c297 /* vqmmc */
914 if (!IS_ERR(mmc->supply.vqmmc)) { in sunxi_mmc_card_power()
915 host->ferror = regulator_enable(mmc->supply.vqmmc); in sunxi_mmc_card_power()
918 "failed to enable vqmmc\n"); in sunxi_mmc_card_power()
931 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) in sunxi_mmc_card_power()
932 regulator_disable(mmc->supply.vqmmc); in sunxi_mmc_card_power()
956 /* vqmmc regulator is available */ in sunxi_mmc_volt_switch()
957 if (!IS_ERR(mmc->supply.vqmmc)) { in sunxi_mmc_volt_switch()
962 /* no vqmmc regulator, assume fixed regulator at 3/3.3V */ in sunxi_mmc_volt_switch()
H A Dtmio_mmc_core.c849 if (!IS_ERR(mmc->supply.vqmmc) && !ret) { in tmio_mmc_power_on()
850 ret = regulator_enable(mmc->supply.vqmmc); in tmio_mmc_power_on()
863 if (!IS_ERR(mmc->supply.vqmmc)) in tmio_mmc_power_off()
864 regulator_disable(mmc->supply.vqmmc); in tmio_mmc_power_off()
H A Dsdhci.c2606 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
2629 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
2661 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
4197 if (!mmc->supply.vqmmc) { in sdhci_setup_host()
4458 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_setup_host()
4460 ret = regulator_enable(mmc->supply.vqmmc); in sdhci_setup_host()
4464 /* If vqmmc provides no 1.8V signalling, then there's no UHS */ in sdhci_setup_host()
4465 if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 1700000, in sdhci_setup_host()
4471 /* In eMMC case vqmmc might be a fixed 1.8V regulator */ in sdhci_setup_host()
4472 if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 270000 in sdhci_setup_host()
[all...]
H A Dsdhci-msm.c1413 dev_err(mmc_dev(mmc), "%s: vqmmc set volgate failed: %d\n", in msm_toggle_vqmmc()
1418 ret = regulator_enable(mmc->supply.vqmmc); in msm_toggle_vqmmc()
1420 ret = regulator_disable(mmc->supply.vqmmc); in msm_toggle_vqmmc()
1438 ret = regulator_set_load(mmc->supply.vqmmc, load); in msm_config_vqmmc_mode()
1440 dev_err(mmc_dev(mmc), "%s: vqmmc set load failed: %d\n", in msm_config_vqmmc_mode()
1451 if (IS_ERR(mmc->supply.vqmmc) || in sdhci_msm_set_vqmmc()
1648 if (io_level && !IS_ERR(mmc->supply.vqmmc) && !pwr_state) { in sdhci_msm_handle_pwr_irq()
2006 struct regulator *supply = mmc->supply.vqmmc; in sdhci_msm_set_regulator_caps()
2011 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_msm_set_regulator_caps()
2018 pr_warn("%s: 1.8/3V not supported for vqmmc\ in sdhci_msm_set_regulator_caps()
[all...]
H A Dmmci.c1754 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in mmci_set_ios()
1755 regulator_disable(mmc->supply.vqmmc); in mmci_set_ios()
1773 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in mmci_set_ios()
1774 ret = regulator_enable(mmc->supply.vqmmc); in mmci_set_ios()
1777 "failed to enable vqmmc regulator\n"); in mmci_set_ios()
H A Dsdhci-xenon.c320 * If Vqmmc is fixed on platform, vqmmc regulator should be unavailable. in xenon_start_signal_voltage_switch()
324 if (PTR_ERR(mmc->supply.vqmmc) == -ENODEV) in xenon_start_signal_voltage_switch()
H A Dsdhci-tegra.c312 if (IS_ERR(host->mmc->supply.vqmmc)) in tegra_sdhci_is_pad_and_regulator_valid()
315 has_1v8 = regulator_is_supported_voltage(host->mmc->supply.vqmmc, in tegra_sdhci_is_pad_and_regulator_valid()
318 has_3v3 = regulator_is_supported_voltage(host->mmc->supply.vqmmc, in tegra_sdhci_is_pad_and_regulator_valid()
/kernel/linux/linux-6.6/drivers/mmc/host/
H A Domap_hsmmc.c229 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in omap_hsmmc_enable_supply()
230 ret = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_enable_supply()
253 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in omap_hsmmc_disable_supply()
254 ret = regulator_disable(mmc->supply.vqmmc); in omap_hsmmc_disable_supply()
271 if (!IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_disable_supply()
272 status = regulator_enable(mmc->supply.vqmmc); in omap_hsmmc_disable_supply()
397 ret = omap_hsmmc_disable_boot_regulator(mmc->supply.vqmmc); in omap_hsmmc_disable_boot_regulators()
425 if (IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_reg_get()
426 mmc->supply.vqmmc = devm_regulator_get_optional(host->dev, in omap_hsmmc_reg_get()
428 if (IS_ERR(mmc->supply.vqmmc)) { in omap_hsmmc_reg_get()
[all...]
H A Ddw_mmc-k3.c175 if (IS_ERR_OR_NULL(mmc->supply.vqmmc)) in dw_mci_hi6220_switch_voltage()
178 ret = regulator_set_voltage(mmc->supply.vqmmc, min_uv, max_uv); in dw_mci_hi6220_switch_voltage()
425 if (!IS_ERR(mmc->supply.vqmmc)) { in dw_mci_hi3660_switch_voltage()
H A Dsdhci-omap.c203 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_omap_enable_iov()
207 dev_err(mmc_dev(mmc), "vqmmc set voltage failed\n"); in sdhci_omap_enable_iov()
970 unsigned int pbias, vqmmc, caps = 0; in sdhci_omap_set_capabilities() local
974 vqmmc = sdhci_omap_regulator_get_caps(dev, "vqmmc"); in sdhci_omap_set_capabilities()
975 caps = pbias & vqmmc; in sdhci_omap_set_capabilities()
977 if (pbias != ~0U && vqmmc == ~0U) in sdhci_omap_set_capabilities()
978 dev_warn(dev, "vqmmc regulator missing for pbias\n"); in sdhci_omap_set_capabilities()
983 * Quirk handling to allow 3.0V vqmmc with a valid 3.3V PBIAS. This is in sdhci_omap_set_capabilities()
987 (vqmmc in sdhci_omap_set_capabilities()
[all...]
H A Djz4740_mmc.c955 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in jz4740_mmc_set_ios()
956 ret = regulator_enable(mmc->supply.vqmmc); in jz4740_mmc_set_ios()
958 dev_err(&host->pdev->dev, "Failed to set vqmmc power!\n"); in jz4740_mmc_set_ios()
966 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in jz4740_mmc_set_ios()
967 regulator_disable(mmc->supply.vqmmc); in jz4740_mmc_set_ios()
1003 /* vqmmc regulator is available */ in jz4740_voltage_switch()
1004 if (!IS_ERR(mmc->supply.vqmmc)) { in jz4740_voltage_switch()
1009 /* no vqmmc regulator, assume fixed regulator at 3/3.3V */ in jz4740_voltage_switch()
H A Dsunxi-mmc.c299 /* vqmmc */
919 if (!IS_ERR(mmc->supply.vqmmc)) { in sunxi_mmc_card_power()
920 host->ferror = regulator_enable(mmc->supply.vqmmc); in sunxi_mmc_card_power()
923 "failed to enable vqmmc\n"); in sunxi_mmc_card_power()
936 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) in sunxi_mmc_card_power()
937 regulator_disable(mmc->supply.vqmmc); in sunxi_mmc_card_power()
961 /* vqmmc regulator is available */ in sunxi_mmc_volt_switch()
962 if (!IS_ERR(mmc->supply.vqmmc)) { in sunxi_mmc_volt_switch()
967 /* no vqmmc regulator, assume fixed regulator at 3/3.3V */ in sunxi_mmc_volt_switch()
H A Dtmio_mmc_core.c900 if (!IS_ERR(mmc->supply.vqmmc) && !ret) { in tmio_mmc_power_on()
901 ret = regulator_enable(mmc->supply.vqmmc); in tmio_mmc_power_on()
914 if (!IS_ERR(mmc->supply.vqmmc)) in tmio_mmc_power_off()
915 regulator_disable(mmc->supply.vqmmc); in tmio_mmc_power_off()
H A Dsdhci.c2633 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
2656 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
2688 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_start_signal_voltage_switch()
4244 if (!mmc->supply.vqmmc) { in sdhci_setup_host()
4505 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_setup_host()
4507 ret = regulator_enable(mmc->supply.vqmmc); in sdhci_setup_host()
4511 /* If vqmmc provides no 1.8V signalling, then there's no UHS */ in sdhci_setup_host()
4512 if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 1700000, in sdhci_setup_host()
4518 /* In eMMC case vqmmc might be a fixed 1.8V regulator */ in sdhci_setup_host()
4519 if (!regulator_is_supported_voltage(mmc->supply.vqmmc, 270000 in sdhci_setup_host()
[all...]
H A Dsdhci-msm.c1433 dev_err(mmc_dev(mmc), "%s: vqmmc set volgate failed: %d\n", in msm_toggle_vqmmc()
1438 ret = regulator_enable(mmc->supply.vqmmc); in msm_toggle_vqmmc()
1440 ret = regulator_disable(mmc->supply.vqmmc); in msm_toggle_vqmmc()
1458 ret = regulator_set_load(mmc->supply.vqmmc, load); in msm_config_vqmmc_mode()
1460 dev_err(mmc_dev(mmc), "%s: vqmmc set load failed: %d\n", in msm_config_vqmmc_mode()
1471 if (IS_ERR(mmc->supply.vqmmc) || in sdhci_msm_set_vqmmc()
1668 if (io_level && !IS_ERR(mmc->supply.vqmmc) && !pwr_state) { in sdhci_msm_handle_pwr_irq()
2144 struct regulator *supply = mmc->supply.vqmmc; in sdhci_msm_set_regulator_caps()
2149 if (!IS_ERR(mmc->supply.vqmmc)) { in sdhci_msm_set_regulator_caps()
2156 pr_warn("%s: 1.8/3V not supported for vqmmc\ in sdhci_msm_set_regulator_caps()
[all...]
H A Dmmci.c1912 if (!IS_ERR(mmc->supply.vqmmc) && host->vqmmc_enabled) { in mmci_set_ios()
1913 regulator_disable(mmc->supply.vqmmc); in mmci_set_ios()
1931 if (!IS_ERR(mmc->supply.vqmmc) && !host->vqmmc_enabled) { in mmci_set_ios()
1932 ret = regulator_enable(mmc->supply.vqmmc); in mmci_set_ios()
1935 "failed to enable vqmmc regulator\n"); in mmci_set_ios()
H A Dsdhci-tegra.c319 if (IS_ERR(host->mmc->supply.vqmmc)) in tegra_sdhci_is_pad_and_regulator_valid()
322 has_1v8 = regulator_is_supported_voltage(host->mmc->supply.vqmmc, in tegra_sdhci_is_pad_and_regulator_valid()
325 has_3v3 = regulator_is_supported_voltage(host->mmc->supply.vqmmc, in tegra_sdhci_is_pad_and_regulator_valid()
/kernel/linux/linux-5.10/include/linux/mmc/
H A Dhost.h268 struct regulator *vqmmc; /* Optional Vccq supply */ member
408 unsigned int vqmmc_enabled:1; /* vqmmc regulator is enabled */
/kernel/linux/linux-6.6/include/linux/mmc/
H A Dhost.h313 struct regulator *vqmmc; /* Optional Vccq supply */ member
459 unsigned int vqmmc_enabled:1; /* vqmmc regulator is enabled */

Completed in 48 milliseconds

12