Lines Matching refs:ios
1207 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios)
1214 if (ios->clock == 0)
1217 dsor = func_clk_rate / ios->clock;
1221 if (func_clk_rate / dsor > ios->clock)
1229 if (ios->bus_width == MMC_BUS_WIDTH_4)
1235 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1244 dsor = mmc_omap_calc_divisor(mmc, ios);
1246 if (ios->vdd != slot->vdd)
1247 slot->vdd = ios->vdd;
1250 switch (ios->power_mode) {
1252 mmc_omap_set_power(slot, 0, ios->vdd);
1256 mmc_omap_set_power(slot, 1, ios->vdd);
1265 if (slot->bus_mode != ios->bus_mode) {
1268 ios->bus_mode);
1269 slot->bus_mode = ios->bus_mode;
1279 if (ios->power_mode == MMC_POWER_ON) {