Lines Matching defs:ios
1155 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios)
1162 if (ios->clock == 0)
1165 dsor = func_clk_rate / ios->clock;
1169 if (func_clk_rate / dsor > ios->clock)
1177 if (ios->bus_width == MMC_BUS_WIDTH_4)
1183 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1192 dsor = mmc_omap_calc_divisor(mmc, ios);
1194 if (ios->vdd != slot->vdd)
1195 slot->vdd = ios->vdd;
1199 switch (ios->power_mode) {
1201 mmc_omap_set_power(slot, 0, ios->vdd);
1205 mmc_omap_set_power(slot, 1, ios->vdd);
1206 slot->power_mode = ios->power_mode;
1216 slot->power_mode = ios->power_mode;
1218 if (slot->bus_mode != ios->bus_mode) {
1221 ios->bus_mode);
1222 slot->bus_mode = ios->bus_mode;