Lines Matching refs:ios
1205 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_calc_divisor() argument
1212 if (ios->clock == 0) in mmc_omap_calc_divisor()
1215 dsor = func_clk_rate / ios->clock; in mmc_omap_calc_divisor()
1219 if (func_clk_rate / dsor > ios->clock) in mmc_omap_calc_divisor()
1227 if (ios->bus_width == MMC_BUS_WIDTH_4) in mmc_omap_calc_divisor()
1233 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in mmc_omap_set_ios() argument
1242 dsor = mmc_omap_calc_divisor(mmc, ios); in mmc_omap_set_ios()
1244 if (ios->vdd != slot->vdd) in mmc_omap_set_ios()
1245 slot->vdd = ios->vdd; in mmc_omap_set_ios()
1248 switch (ios->power_mode) { in mmc_omap_set_ios()
1250 mmc_omap_set_power(slot, 0, ios->vdd); in mmc_omap_set_ios()
1254 mmc_omap_set_power(slot, 1, ios->vdd); in mmc_omap_set_ios()
1263 if (slot->bus_mode != ios->bus_mode) { in mmc_omap_set_ios()
1266 ios->bus_mode); in mmc_omap_set_ios()
1267 slot->bus_mode = ios->bus_mode; in mmc_omap_set_ios()
1277 if (ios->power_mode == MMC_POWER_ON) { in mmc_omap_set_ios()