Lines Matching refs:ios
269 static int meson_mx_sdhc_set_clk(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_clk() argument
277 if (ios->clock) { in meson_mx_sdhc_set_clk()
278 ret = clk_set_rate(host->sd_clk, ios->clock); in meson_mx_sdhc_set_clk()
282 ios->clock, host->error); in meson_mx_sdhc_set_clk()
300 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) in meson_mx_sdhc_set_clk()
325 static void meson_mx_sdhc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in meson_mx_sdhc_set_ios() argument
328 unsigned short vdd = ios->vdd; in meson_mx_sdhc_set_ios()
330 switch (ios->power_mode) { in meson_mx_sdhc_set_ios()
350 host->error = meson_mx_sdhc_set_clk(mmc, ios); in meson_mx_sdhc_set_ios()
354 switch (ios->bus_width) { in meson_mx_sdhc_set_ios()
375 ios->bus_width); in meson_mx_sdhc_set_ios()