Lines Matching defs:ios
343 mmc->ops->set_ios(mmc, &mmc->ios);
912 struct mmc_ios *ios = &mmc->ios;
913 unsigned char bus_width = 1 << ios->bus_width;
2282 static bool sdhci_presetable_values_change(struct sdhci_host *host, struct mmc_ios *ios)
2290 (sdhci_preset_needed(host, ios->timing) || host->drv_type != ios->drv_type);
2293 void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
2302 if (ios->power_mode == MMC_POWER_UNDEFINED)
2307 ios->power_mode == MMC_POWER_OFF)
2316 if (ios->power_mode == MMC_POWER_OFF) {
2322 (ios->power_mode == MMC_POWER_UP) &&
2326 if (!ios->clock || ios->clock != host->clock) {
2327 turning_on_clk = ios->clock && !host->clock;
2329 host->ops->set_clock(host, ios->clock);
2330 host->clock = ios->clock;
2346 host->ops->set_power(host, ios->power_mode, ios->vdd);
2348 sdhci_set_power(host, ios->power_mode, ios->vdd);
2351 host->ops->platform_send_init_74_clocks(host, ios->power_mode);
2353 host->ops->set_bus_width(host, ios->bus_width);
2361 host->timing == ios->timing &&
2363 !sdhci_presetable_values_change(host, ios))
2369 if (ios->timing == MMC_TIMING_SD_HS ||
2370 ios->timing == MMC_TIMING_MMC_HS ||
2371 ios->timing == MMC_TIMING_MMC_HS400 ||
2372 ios->timing == MMC_TIMING_MMC_HS200 ||
2373 ios->timing == MMC_TIMING_MMC_DDR52 ||
2374 ios->timing == MMC_TIMING_UHS_SDR50 ||
2375 ios->timing == MMC_TIMING_UHS_SDR104 ||
2376 ios->timing == MMC_TIMING_UHS_DDR50 ||
2377 ios->timing == MMC_TIMING_UHS_SDR25)
2394 if (ios->drv_type == MMC_SET_DRIVER_TYPE_A)
2396 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_B)
2398 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_C)
2400 else if (ios->drv_type == MMC_SET_DRIVER_TYPE_D)
2409 host->drv_type = ios->drv_type;
2434 host->ops->set_uhs_signaling(host, ios->timing);
2435 host->timing = ios->timing;
2437 if (sdhci_preset_needed(host, ios->timing)) {
2442 ios->drv_type = FIELD_GET(SDHCI_PRESET_DRV_MASK,
2444 host->drv_type = ios->drv_type;
2453 * Some (ENE) controllers go apeshit on some ios operation,
2455 * it on each ios seems to solve the problem.
2583 struct mmc_ios *ios)
2598 switch (ios->signal_voltage) {
2607 ret = mmc_regulator_set_vqmmc(mmc, ios);
2630 ret = mmc_regulator_set_vqmmc(mmc, ios);
2662 ret = mmc_regulator_set_vqmmc(mmc, ios);
2688 static int sdhci_prepare_hs400_tuning(struct mmc_host *mmc, struct mmc_ios *ios)
2784 mmc->ios.bus_width == MMC_BUS_WIDTH_8)
3756 mmc->ops->set_ios(mmc, &mmc->ios);
3813 if (mmc->ios.power_mode != MMC_POWER_UNDEFINED &&
3814 mmc->ios.power_mode != MMC_POWER_OFF) {
3819 mmc->ops->start_signal_voltage_switch(mmc, &mmc->ios);
3820 mmc->ops->set_ios(mmc, &mmc->ios);
3831 mmc->ops->hs400_enhanced_strobe(mmc, &mmc->ios);