Lines Matching refs:ios

723 				   struct mmc_ios *ios, u32 rate)  in sunxi_mmc_clk_set_phase()  argument
741 if (ios->timing != MMC_TIMING_UHS_DDR50 && in sunxi_mmc_clk_set_phase()
742 ios->timing != MMC_TIMING_MMC_DDR52) { in sunxi_mmc_clk_set_phase()
744 } else if (ios->bus_width == MMC_BUS_WIDTH_8) { in sunxi_mmc_clk_set_phase()
761 struct mmc_ios *ios) in sunxi_mmc_clk_set_rate() argument
765 u32 rval, clock = ios->clock, div = 1; in sunxi_mmc_clk_set_rate()
775 if (!ios->clock) in sunxi_mmc_clk_set_rate()
787 if (ios->timing == MMC_TIMING_MMC_DDR52 && in sunxi_mmc_clk_set_rate()
789 ios->bus_width == MMC_BUS_WIDTH_8)) { in sunxi_mmc_clk_set_rate()
843 ret = sunxi_mmc_clk_set_phase(host, ios, rate); in sunxi_mmc_clk_set_rate()
885 static void sunxi_mmc_set_clk(struct sunxi_mmc_host *host, struct mmc_ios *ios) in sunxi_mmc_set_clk() argument
891 if (ios->timing == MMC_TIMING_UHS_DDR50 || in sunxi_mmc_set_clk()
892 ios->timing == MMC_TIMING_MMC_DDR52) in sunxi_mmc_set_clk()
898 host->ferror = sunxi_mmc_clk_set_rate(host, ios); in sunxi_mmc_set_clk()
903 struct mmc_ios *ios) in sunxi_mmc_card_power() argument
907 switch (ios->power_mode) { in sunxi_mmc_card_power()
914 ios->vdd); in sunxi_mmc_card_power()
948 static void sunxi_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in sunxi_mmc_set_ios() argument
952 sunxi_mmc_card_power(host, ios); in sunxi_mmc_set_ios()
953 sunxi_mmc_set_bus_width(host, ios->bus_width); in sunxi_mmc_set_ios()
954 sunxi_mmc_set_clk(host, ios); in sunxi_mmc_set_ios()
957 static int sunxi_mmc_volt_switch(struct mmc_host *mmc, struct mmc_ios *ios) in sunxi_mmc_volt_switch() argument
963 ret = mmc_regulator_set_vqmmc(mmc, ios); in sunxi_mmc_volt_switch()
968 if (mmc->ios.signal_voltage == MMC_SIGNAL_VOLTAGE_330) in sunxi_mmc_volt_switch()
1516 sunxi_mmc_set_bus_width(host, mmc->ios.bus_width); in sunxi_mmc_runtime_resume()
1517 sunxi_mmc_set_clk(host, &mmc->ios); in sunxi_mmc_runtime_resume()