Lines Matching defs:ios
1125 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios)
1132 if (ios->clock == 0)
1135 dsor = func_clk_rate / ios->clock;
1139 if (func_clk_rate / dsor > ios->clock)
1147 if (ios->bus_width == MMC_BUS_WIDTH_4)
1153 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1162 dsor = mmc_omap_calc_divisor(mmc, ios);
1164 if (ios->vdd != slot->vdd)
1165 slot->vdd = ios->vdd;
1169 switch (ios->power_mode) {
1171 mmc_omap_set_power(slot, 0, ios->vdd);
1175 mmc_omap_set_power(slot, 1, ios->vdd);
1176 slot->power_mode = ios->power_mode;
1186 slot->power_mode = ios->power_mode;
1188 if (slot->bus_mode != ios->bus_mode) {
1191 ios->bus_mode);
1192 slot->bus_mode = ios->bus_mode;