Lines Matching refs:ios

106 static void dw_mci_k3_set_ios(struct dw_mci *host, struct mmc_ios *ios)  in dw_mci_k3_set_ios()  argument
110 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
112 dev_warn(host->dev, "failed to set rate %uHz\n", ios->clock); in dw_mci_k3_set_ios()
145 static int dw_mci_hi6220_switch_voltage(struct mmc_host *mmc, struct mmc_ios *ios) in dw_mci_hi6220_switch_voltage() argument
159 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in dw_mci_hi6220_switch_voltage()
164 } else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) { in dw_mci_hi6220_switch_voltage()
192 static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi6220_set_ios() argument
197 clock = (ios->clock <= 25000000) ? 25000000 : ios->clock; in dw_mci_hi6220_set_ios()
301 static void dw_mci_hi3660_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3660_set_ios() argument
308 if (!ios->clock || ios->clock == priv->cur_speed) in dw_mci_hi3660_set_ios()
311 wanted = ios->clock * (GENCLK_DIV + 1); in dw_mci_hi3660_set_ios()
319 dw_mci_hs_set_timing(host, ios->timing, -1); in dw_mci_hi3660_set_ios()
384 dw_mci_hs_set_timing(host, mmc->ios.timing, smpl_phase); in dw_mci_hi3660_execute_tuning()
398 dw_mci_hs_set_timing(host, mmc->ios.timing, best_clksmpl); in dw_mci_hi3660_execute_tuning()
406 struct mmc_ios *ios) in dw_mci_hi3660_switch_voltage() argument
422 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) in dw_mci_hi3660_switch_voltage()
424 else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) in dw_mci_hi3660_switch_voltage()
430 ret = mmc_regulator_set_vqmmc(mmc, ios); in dw_mci_hi3660_switch_voltage()