Lines Matching defs:ios
220 struct mmc_ios *ios = &mmc->ios;
223 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd);
520 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios)
524 if (ios->clock) {
525 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock);
535 struct mmc_ios *ios = &host->mmc->ios;
540 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock);
546 clkdiv = calc_divisor(host, ios);
568 (ios->timing != MMC_TIMING_MMC_DDR52) &&
569 (ios->timing != MMC_TIMING_UHS_DDR50) &&
585 struct mmc_ios *ios = &host->mmc->ios;
589 if (ios->timing == MMC_TIMING_MMC_DDR52 ||
590 ios->timing == MMC_TIMING_UHS_DDR50)
594 switch (ios->bus_width) {
613 struct mmc_ios *ios = &host->mmc->ios;
617 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN)
631 struct mmc_ios *ios = &host->mmc->ios;
645 (1 << ios->vdd) <= MMC_VDD_23_24)
1452 static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1457 if (ios->power_mode != host->power_mode) {
1458 switch (ios->power_mode) {
1469 host->power_mode = ios->power_mode;
1472 /* FIXME: set registers based only on changes to ios */
1481 (ios->vdd == DUAL_VOLT_OCR_BIT)) {
1488 if (omap_hsmmc_switch_opcond(host, ios->vdd) != 0)