Lines Matching refs:ios

718 				   struct mmc_ios *ios, u32 rate)  in sunxi_mmc_clk_set_phase()  argument
736 if (ios->timing != MMC_TIMING_UHS_DDR50 && in sunxi_mmc_clk_set_phase()
737 ios->timing != MMC_TIMING_MMC_DDR52) { in sunxi_mmc_clk_set_phase()
739 } else if (ios->bus_width == MMC_BUS_WIDTH_8) { in sunxi_mmc_clk_set_phase()
756 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument
760 u32 rval, clock = ios->clock, div = 1; in sunxi_mmc_clk_set_rate()
770 if (!ios->clock) in sunxi_mmc_clk_set_rate()
782 if (ios->timing == MMC_TIMING_MMC_DDR52 && in sunxi_mmc_clk_set_rate()
784 ios->bus_width == MMC_BUS_WIDTH_8)) { in sunxi_mmc_clk_set_rate()
838 ret = sunxi_mmc_clk_set_phase(host, ios, rate); in sunxi_mmc_clk_set_rate()
880 static void sunxi_mmc_set_clk(struct sunxi_mmc_host *host, struct mmc_ios *ios) in sunxi_mmc_set_clk() argument
886 if (ios->timing == MMC_TIMING_UHS_DDR50 || in sunxi_mmc_set_clk()
887 ios->timing == MMC_TIMING_MMC_DDR52) in sunxi_mmc_set_clk()
893 host->ferror = sunxi_mmc_clk_set_rate(host, ios); in sunxi_mmc_set_clk()
898 struct mmc_ios *ios) in sunxi_mmc_card_power() argument
902 switch (ios->power_mode) { in sunxi_mmc_card_power()
909 ios->vdd); in sunxi_mmc_card_power()
943 static void sunxi_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sunxi_mmc_set_ios() argument
947 sunxi_mmc_card_power(host, ios); in sunxi_mmc_set_ios()
948 sunxi_mmc_set_bus_width(host, ios->bus_width); in sunxi_mmc_set_ios()
949 sunxi_mmc_set_clk(host, ios); in sunxi_mmc_set_ios()
952 static int sunxi_mmc_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios) in sunxi_mmc_volt_switch() argument
958 ret = mmc_regulator_set_vqmmc(mmc, ios); in sunxi_mmc_volt_switch()
963 if (mmc->ios.signal_voltage == MMC_SIGNAL_VOLTAGE_330) in sunxi_mmc_volt_switch()
1483 sunxi_mmc_set_bus_width(host, mmc->ios.bus_width); in sunxi_mmc_runtime_resume()
1484 sunxi_mmc_set_clk(host, &mmc->ios); in sunxi_mmc_runtime_resume()