Lines Matching refs:ios

382 		mmc->ops->set_ios(mmc, &mmc->ios);
937 struct mmc_ios *ios = &mmc->ios;
938 unsigned char bus_width = 1 << ios->bus_width;
2307 static bool sdhci_presetable_values_change(struct sdhci_host *host, struct mmc_ios *ios)
2315 (sdhci_preset_needed(host, ios->timing) || host->drv_type != ios->drv_type);
2318 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
2327 if (ios->power_mode == MMC_POWER_UNDEFINED)
2332 ios->power_mode == MMC_POWER_OFF)
2341 if (ios->power_mode == MMC_POWER_OFF) {
2347 (ios->power_mode == MMC_POWER_UP) &&
2351 if (!ios->clock || ios->clock != host->clock) {
2352 turning_on_clk = ios->clock && !host->clock;
2354 host->ops->set_clock(host, ios->clock);
2355 host->clock = ios->clock;
2371 host->ops->set_power(host, ios->power_mode, ios->vdd);
2373 sdhci_set_power(host, ios->power_mode, ios->vdd);
2376 host->ops->platform_send_init_74_clocks(host, ios->power_mode);
2378 host->ops->set_bus_width(host, ios->bus_width);
2386 host->timing == ios->timing &&
2388 !sdhci_presetable_values_change(host, ios))
2394 if (ios->timing == MMC_TIMING_SD_HS ||
2395 ios->timing == MMC_TIMING_MMC_HS ||
2396 ios->timing == MMC_TIMING_MMC_HS400 ||
2397 ios->timing == MMC_TIMING_MMC_HS200 ||
2398 ios->timing == MMC_TIMING_MMC_DDR52 ||
2399 ios->timing == MMC_TIMING_UHS_SDR50 ||
2400 ios->timing == MMC_TIMING_UHS_SDR104 ||
2401 ios->timing == MMC_TIMING_UHS_DDR50 ||
2402 ios->timing == MMC_TIMING_UHS_SDR25)
2432 if (ios->drv_type == MMC_SET_DRIVER_TYPE_A)
2434 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_B)
2436 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_C)
2438 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_D)
2447 host->drv_type = ios->drv_type;
2450 host->ops->set_uhs_signaling(host, ios->timing);
2451 host->timing = ios->timing;
2453 if (sdhci_preset_needed(host, ios->timing)) {
2458 ios->drv_type = FIELD_GET(SDHCI_PRESET_DRV_MASK,
2460 host->drv_type = ios->drv_type;
2610 struct mmc_ios *ios)
2625 switch (ios->signal_voltage) {
2634 ret = mmc_regulator_set_vqmmc(mmc, ios);
2657 ret = mmc_regulator_set_vqmmc(mmc, ios);
2689 ret = mmc_regulator_set_vqmmc(mmc, ios);
2715 static int sdhci_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios)
2810 mmc->ios.bus_width == MMC_BUS_WIDTH_8)
3795 mmc->ops->set_ios(mmc, &mmc->ios);
3852 if (mmc->ios.power_mode != MMC_POWER_UNDEFINED &&
3853 mmc->ios.power_mode != MMC_POWER_OFF) {
3858 mmc->ops->start_signal_voltage_switch(mmc, &mmc->ios);
3859 mmc->ops->set_ios(mmc, &mmc->ios);
3870 mmc->ops->hs400_enhanced_strobe(mmc, &mmc->ios);