Lines Matching refs:ios

513 static u16 calc_divisor(struct omap_hsmmc_host *host, struct mmc_ios *ios)  in calc_divisor()  argument
517 if (ios->clock) { in calc_divisor()
518 dsor = DIV_ROUND_UP(clk_get_rate(host->fclk), ios->clock); in calc_divisor()
528 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
533 dev_vdbg(mmc_dev(host->mmc), "Set clock to %uHz\n", ios->clock); in omap_hsmmc_set_clock()
539 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
561 (ios->timing != MMC_TIMING_MMC_DDR52) && in omap_hsmmc_set_clock()
562 (ios->timing != MMC_TIMING_UHS_DDR50) && in omap_hsmmc_set_clock()
578 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_width() local
582 if (ios->timing == MMC_TIMING_MMC_DDR52 || in omap_hsmmc_set_bus_width()
583 ios->timing == MMC_TIMING_UHS_DDR50) in omap_hsmmc_set_bus_width()
587 switch (ios->bus_width) { in omap_hsmmc_set_bus_width()
606 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_mode() local
610 if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) in omap_hsmmc_set_bus_mode()
624 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_context_restore() local
638 (1 << ios->vdd) <= MMC_VDD_23_24) in omap_hsmmc_context_restore()
1560 static void omap_hsmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in omap_hsmmc_set_ios() argument
1567 if (ios->power_mode != host->power_mode) { in omap_hsmmc_set_ios()
1568 switch (ios->power_mode) { in omap_hsmmc_set_ios()
1573 mmc_pdata(host)->set_power(host->dev, 1, ios->vdd); in omap_hsmmc_set_ios()
1579 host->power_mode = ios->power_mode; in omap_hsmmc_set_ios()
1591 (ios->vdd == DUAL_VOLT_OCR_BIT)) { in omap_hsmmc_set_ios()
1598 if (omap_hsmmc_switch_opcond(host, ios->vdd) != 0) in omap_hsmmc_set_ios()