Lines Matching refs:ios
247 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply() local
250 ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, ios->vdd); in omap_hsmmc_enable_supply()
579 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios) in calc_divisor() argument
583 if (ios->clock) { in calc_divisor()
584 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
594 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
599 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock); in omap_hsmmc_set_clock()
605 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
627 (ios->timing != MMC_TIMING_MMC_DDR52) && in omap_hsmmc_set_clock()
628 (ios->timing != MMC_TIMING_UHS_DDR50) && in omap_hsmmc_set_clock()
644 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_width() local
648 if (ios->timing == MMC_TIMING_MMC_DDR52 || in omap_hsmmc_set_bus_width()
649 ios->timing == MMC_TIMING_UHS_DDR50) in omap_hsmmc_set_bus_width()
653 switch (ios->bus_width) { in omap_hsmmc_set_bus_width()
672 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_mode() local
676 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) in omap_hsmmc_set_bus_mode()
690 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_context_restore() local
704 (1 << ios->vdd) <= MMC_VDD_23_24) in omap_hsmmc_context_restore()
1599 static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in omap_hsmmc_set_ios() argument
1604 if (ios->power_mode != host->power_mode) { in omap_hsmmc_set_ios()
1605 switch (ios->power_mode) { in omap_hsmmc_set_ios()
1616 host->power_mode = ios->power_mode; in omap_hsmmc_set_ios()
1628 (ios->vdd == DUAL_VOLT_OCR_BIT)) { in omap_hsmmc_set_ios()
1635 if (omap_hsmmc_switch_opcond(host, ios->vdd) != 0) in omap_hsmmc_set_ios()