Lines Matching defs:ios
1143 static int mmc_omap_calc_divisor(struct mmc_host *mmc, struct mmc_ios *ios)
1150 if (ios->clock == 0)
1153 dsor = func_clk_rate / ios->clock;
1157 if (func_clk_rate / dsor > ios->clock)
1165 if (ios->bus_width == MMC_BUS_WIDTH_4)
1171 static void mmc_omap_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
1180 dsor = mmc_omap_calc_divisor(mmc, ios);
1182 if (ios->vdd != slot->vdd)
1183 slot->vdd = ios->vdd;
1187 switch (ios->power_mode) {
1189 mmc_omap_set_power(slot, 0, ios->vdd);
1193 mmc_omap_set_power(slot, 1, ios->vdd);
1194 slot->power_mode = ios->power_mode;
1204 slot->power_mode = ios->power_mode;
1206 if (slot->bus_mode != ios->bus_mode) {
1209 ios->bus_mode);
1210 slot->bus_mode = ios->bus_mode;