Home
last modified time | relevance | path

Searched refs:ios (Results 1 – 25 of 110) sorted by relevance

12345

/linux-6.3-rc2/drivers/mmc/core/
A Ddebugfs.c56 struct mmc_ios *ios = &host->ios; in mmc_ios_show() local
66 && vdd_str[ios->vdd] && vdd_str[ios->vdd + 1]) in mmc_ios_show()
68 vdd_str[ios->vdd + 1]); in mmc_ios_show()
72 switch (ios->bus_mode) { in mmc_ios_show()
85 switch (ios->chip_select) { in mmc_ios_show()
101 switch (ios->power_mode) { in mmc_ios_show()
117 ios->bus_width, 1 << ios->bus_width); in mmc_ios_show()
119 switch (ios->timing) { in mmc_ios_show()
160 switch (ios->signal_voltage) { in mmc_ios_show()
176 switch (ios->drv_type) { in mmc_ios_show()
[all …]
A Dhost.h68 return card->host->ios.timing == MMC_TIMING_MMC_HS200; in mmc_card_hs200()
73 return card->host->ios.timing == MMC_TIMING_MMC_DDR52; in mmc_card_ddr52()
78 return card->host->ios.timing == MMC_TIMING_MMC_HS400; in mmc_card_hs400()
83 return card->host->ios.enhanced_strobe; in mmc_card_hs400es()
88 return host->ios.timing == MMC_TIMING_SD_EXP || in mmc_card_sd_express()
89 host->ios.timing == MMC_TIMING_SD_EXP_1_2V; in mmc_card_sd_express()
A Dcore.c885 struct mmc_ios *ios = &host->ios; in mmc_set_ios() local
889 mmc_hostname(host), ios->clock, ios->bus_mode, in mmc_set_ios()
890 ios->power_mode, ios->chip_select, ios->vdd, in mmc_set_ios()
891 1 << ios->bus_width, ios->timing); in mmc_set_ios()
916 host->ios.clock = hz; in mmc_set_clock()
989 host->ios.drv_type = 0; in mmc_set_initial_state()
1185 clock = host->ios.clock; in mmc_host_set_uhs_voltage()
1186 host->ios.clock = 0; in mmc_host_set_uhs_voltage()
1194 host->ios.clock = clock; in mmc_host_set_uhs_voltage()
1368 host->ios.clock = 0; in mmc_power_off()
[all …]
/linux-6.3-rc2/drivers/mmc/host/
A Ddw_mmc-k3.c106 ret = clk_set_rate(host->ciu_clk, ios->clock); in dw_mci_k3_set_ios()
155 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) { in dw_mci_hi6220_switch_voltage()
193 clock = (ios->clock <= 25000000) ? 25000000 : ios->clock; in dw_mci_hi6220_set_ios()
304 if (!ios->clock || ios->clock == priv->cur_speed) in dw_mci_hi3660_set_ios()
307 wanted = ios->clock * (GENCLK_DIV + 1); in dw_mci_hi3660_set_ios()
315 dw_mci_hs_set_timing(host, ios->timing, -1); in dw_mci_hi3660_set_ios()
380 dw_mci_hs_set_timing(host, mmc->ios.timing, smpl_phase); in dw_mci_hi3660_execute_tuning()
402 struct mmc_ios *ios) in dw_mci_hi3660_switch_voltage() argument
418 if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_330) in dw_mci_hi3660_switch_voltage()
420 else if (ios->signal_voltage == MMC_SIGNAL_VOLTAGE_180) in dw_mci_hi3660_switch_voltage()
[all …]
A Ddw_mmc-hi3798cv200.c26 static void dw_mci_hi3798cv200_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_hi3798cv200_set_ios() argument
32 if (ios->timing == MMC_TIMING_MMC_DDR52 || in dw_mci_hi3798cv200_set_ios()
33 ios->timing == MMC_TIMING_UHS_DDR50) in dw_mci_hi3798cv200_set_ios()
40 if (ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_hi3798cv200_set_ios()
47 if (ios->timing == MMC_TIMING_MMC_HS400) in dw_mci_hi3798cv200_set_ios()
53 if (ios->timing == MMC_TIMING_MMC_HS || in dw_mci_hi3798cv200_set_ios()
54 ios->timing == MMC_TIMING_LEGACY) in dw_mci_hi3798cv200_set_ios()
56 else if (ios->timing == MMC_TIMING_MMC_HS200) in dw_mci_hi3798cv200_set_ios()
A Ddw_mmc-starfive.c31 static void dw_mci_starfive_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_starfive_set_ios() argument
36 if (ios->timing == MMC_TIMING_MMC_DDR52 || ios->timing == MMC_TIMING_UHS_DDR50) { in dw_mci_starfive_set_ios()
37 clock = (ios->clock > 50000000 && ios->clock <= 52000000) ? 100000000 : ios->clock; in dw_mci_starfive_set_ios()
40 dev_dbg(host->dev, "Use an external frequency divider %uHz\n", ios->clock); in dw_mci_starfive_set_ios()
A Ddw_mmc-rockchip.c29 static void dw_mci_rk3288_set_ios(struct dw_mci *host, struct mmc_ios *ios) in dw_mci_rk3288_set_ios() argument
36 if (ios->clock == 0) in dw_mci_rk3288_set_ios()
48 if (ios->bus_width == MMC_BUS_WIDTH_8 && in dw_mci_rk3288_set_ios()
49 ios->timing == MMC_TIMING_MMC_DDR52) in dw_mci_rk3288_set_ios()
50 cclkin = 2 * ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
52 cclkin = ios->clock * RK3288_CLKGEN_DIV; in dw_mci_rk3288_set_ios()
66 if (!IS_ERR(priv->sample_clk) && ios->timing <= MMC_TIMING_SD_HS) in dw_mci_rk3288_set_ios()
106 switch (ios->timing) { in dw_mci_rk3288_set_ios()
113 if (ios->bus_width == MMC_BUS_WIDTH_8) in dw_mci_rk3288_set_ios()
A Dmmci_stm32_sdmmc.c253 if (host->mmc->ios.timing == MMC_TIMING_MMC_DDR52 || in mmci_sdmmc_set_clkreg()
254 host->mmc->ios.timing == MMC_TIMING_UHS_DDR50) in mmci_sdmmc_set_clkreg()
282 if (host->mmc->ios.power_mode == MMC_POWER_ON) in mmci_sdmmc_set_clkreg()
287 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4) in mmci_sdmmc_set_clkreg()
289 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) in mmci_sdmmc_set_clkreg()
300 if (host->mmc->ios.timing >= MMC_TIMING_UHS_SDR50) { in mmci_sdmmc_set_clkreg()
303 host->mmc->ios.timing == MMC_TIMING_MMC_HS200) { in mmci_sdmmc_set_clkreg()
323 struct mmc_ios ios = host->mmc->ios; in mmci_sdmmc_set_pwrreg() local
331 if (ios.power_mode == MMC_POWER_OFF) { in mmci_sdmmc_set_pwrreg()
344 } else if (ios.power_mode == MMC_POWER_ON) { in mmci_sdmmc_set_pwrreg()
[all …]
A Dowl-mmc.c428 if (!ios->clock) in owl_mmc_set_clk()
431 owl_host->clock = ios->clock; in owl_mmc_set_clk()
436 struct mmc_ios *ios) in owl_mmc_set_bus_width() argument
442 switch (ios->bus_width) { in owl_mmc_set_bus_width()
488 switch (ios->power_mode) { in owl_mmc_set_ios()
517 if (ios->clock != owl_host->clock) in owl_mmc_set_ios()
518 owl_mmc_set_clk(owl_host, ios); in owl_mmc_set_ios()
520 owl_mmc_set_bus_width(owl_host, ios); in owl_mmc_set_ios()
523 if (ios->timing == MMC_TIMING_UHS_DDR50) { in owl_mmc_set_ios()
533 struct mmc_ios *ios) in owl_mmc_start_signal_voltage_switch() argument
[all …]
A Dalcor.c850 switch (ios->power_mode) { in alcor_set_power_mode()
852 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
880 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
887 alcor_set_clock(host, ios->clock); in alcor_set_power_mode()
913 ios->bus_width, ios->power_mode); in alcor_set_ios()
916 alcor_set_power_mode(mmc, ios); in alcor_set_ios()
919 alcor_set_timing(mmc, ios); in alcor_set_ios()
920 alcor_set_bus_width(mmc, ios); in alcor_set_ios()
921 alcor_set_clock(host, ios->clock); in alcor_set_ios()
928 struct mmc_ios *ios) in alcor_signal_voltage_switch() argument
[all …]
A Dsdhci-pci-arasan.c250 if (arasan_host->chg_clk == host->mmc->ios.clock) in arasan_select_phy_clock()
253 arasan_host->chg_clk = host->mmc->ios.clock; in arasan_select_phy_clock()
254 if (host->mmc->ios.clock == 200000000) in arasan_select_phy_clock()
256 else if (host->mmc->ios.clock == 100000000) in arasan_select_phy_clock()
258 else if (host->mmc->ios.clock == 50000000) in arasan_select_phy_clock()
267 switch (host->mmc->ios.timing) { in arasan_select_phy_clock()
280 host->mmc->ios.drv_type, 0x0, in arasan_select_phy_clock()
290 host->mmc->ios.drv_type, 0xa, in arasan_select_phy_clock()
A Dsunxi-mmc.c723 struct mmc_ios *ios, u32 rate) in sunxi_mmc_clk_set_phase() argument
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()
892 ios->timing == MMC_TIMING_MMC_DDR52) 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()
952 sunxi_mmc_card_power(host, ios); in sunxi_mmc_set_ios()
954 sunxi_mmc_set_clk(host, ios); in sunxi_mmc_set_ios()
[all …]
A Dsdhci-msm.c336 struct mmc_ios ios = host->mmc->ios; in msm_get_clock_mult_for_bus_mode() local
820 struct mmc_ios ios = host->mmc->ios; in msm_hc_select_hs400() local
889 struct mmc_ios ios = host->mmc->ios; in sdhci_msm_hc_select_mode() local
1026 if (mmc->ios.enhanced_strobe) { in sdhci_msm_cm_dll_sdc4_calibration()
1122 struct mmc_ios *ios = &host->mmc->ios; in sdhci_msm_is_tuning_needed() local
1132 ios->enhanced_strobe) in sdhci_msm_is_tuning_needed()
1189 struct mmc_ios ios = host->mmc->ios; in sdhci_msm_execute_tuning() local
1415 struct mmc_ios ios; in msm_toggle_vqmmc() local
1670 mmc->ios.signal_voltage, mmc->ios.vdd, in sdhci_msm_handle_pwr_irq()
2321 struct mmc_ios *ios) in sdhci_msm_start_signal_voltage_switch() argument
[all …]
A Domap_hsmmc.c220 struct mmc_ios *ios = &mmc->ios; in omap_hsmmc_enable_supply() local
524 if (ios->clock) { in calc_divisor()
535 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_clock() local
546 clkdiv = calc_divisor(host, ios); in omap_hsmmc_set_clock()
585 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_width() local
594 switch (ios->bus_width) { in omap_hsmmc_set_bus_width()
613 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_set_bus_mode() local
631 struct mmc_ios *ios = &host->mmc->ios; in omap_hsmmc_context_restore() local
1458 switch (ios->power_mode) { in omap_hsmmc_set_ios()
1469 host->power_mode = ios->power_mode; in omap_hsmmc_set_ios()
[all …]
A Dsdhci.c382 mmc->ops->set_ios(mmc, &mmc->ios); in sdhci_init()
937 struct mmc_ios *ios = &mmc->ios; in sdhci_calc_sw_timeout() local
2315 (sdhci_preset_needed(host, ios->timing) || host->drv_type != ios->drv_type); in sdhci_presetable_values_change()
2351 if (!ios->clock || ios->clock != host->clock) { in sdhci_set_ios()
2355 host->clock = ios->clock; in sdhci_set_ios()
2371 host->ops->set_power(host, ios->power_mode, ios->vdd); in sdhci_set_ios()
2373 sdhci_set_power(host, ios->power_mode, ios->vdd); in sdhci_set_ios()
2447 host->drv_type = ios->drv_type; in sdhci_set_ios()
2451 host->timing = ios->timing; in sdhci_set_ios()
2610 struct mmc_ios *ios) in sdhci_start_signal_voltage_switch() argument
[all …]
A Dsdhci-xenon.c276 static void xenon_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in xenon_set_ios() argument
290 if ((ios->timing == MMC_TIMING_MMC_HS400) || in xenon_set_ios()
291 (ios->timing == MMC_TIMING_MMC_HS200) || in xenon_set_ios()
292 (ios->timing == MMC_TIMING_MMC_HS)) { in xenon_set_ios()
304 sdhci_set_ios(mmc, ios); in xenon_set_ios()
305 xenon_phy_adj(host, ios); in xenon_set_ios()
312 struct mmc_ios *ios) in xenon_start_signal_voltage_switch() argument
328 xenon_soc_pad_ctrl(host, ios->signal_voltage); in xenon_start_signal_voltage_switch()
338 return sdhci_start_signal_voltage_switch(mmc, ios); in xenon_start_signal_voltage_switch()
A Dmvsdio.c604 if (ios->power_mode == MMC_POWER_UP) in mvsd_set_ios()
607 if (ios->clock == 0) { in mvsd_set_ios()
612 } else if (ios->clock != host->clock) { in mvsd_set_ios()
613 u32 m = DIV_ROUND_UP(host->base_clock, ios->clock) - 1; in mvsd_set_ios()
617 host->clock = ios->clock; in mvsd_set_ios()
620 ios->clock, host->base_clock / (m+1), m); in mvsd_set_ios()
631 if (ios->bus_mode == MMC_BUSMODE_PUSHPULL) in mvsd_set_ios()
634 if (ios->bus_width == MMC_BUS_WIDTH_4) in mvsd_set_ios()
645 if (ios->timing == MMC_TIMING_MMC_HS || in mvsd_set_ios()
646 ios->timing == MMC_TIMING_SD_HS) in mvsd_set_ios()
[all …]
A Dmeson-mx-sdhc-mmc.c269 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()
[all …]
A Dpxamci.c441 static void pxamci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in pxamci_set_ios() argument
445 if (ios->clock) { in pxamci_set_ios()
447 unsigned int clk = rate / ios->clock; in pxamci_set_ios()
452 if (ios->clock == 26000000) { in pxamci_set_ios()
465 if (rate / clk > ios->clock) in pxamci_set_ios()
481 if (host->power_mode != ios->power_mode) { in pxamci_set_ios()
484 host->power_mode = ios->power_mode; in pxamci_set_ios()
486 ret = pxamci_set_power(host, ios->power_mode, ios->vdd); in pxamci_set_ios()
498 if (ios->power_mode == MMC_POWER_ON) in pxamci_set_ios()
502 if (ios->bus_width == MMC_BUS_WIDTH_4) in pxamci_set_ios()
A Dusdhi6rol0.c729 unsigned long rate = ios->clock; in usdhi6_clk_set()
801 ios->power_mode ? ios->vdd : 0); in usdhi6_set_power()
825 ios->clock, ios->vdd, ios->power_mode, ios->bus_width, ios->timing); in usdhi6_set_ios()
827 switch (ios->power_mode) { in usdhi6_set_ios()
829 usdhi6_set_power(host, ios); in usdhi6_set_ios()
841 usdhi6_set_power(host, ios); in usdhi6_set_ios()
852 if (ios->bus_width == MMC_BUS_WIDTH_1) { in usdhi6_set_ios()
853 if (ios->timing == MMC_TIMING_UHS_DDR50) in usdhi6_set_ios()
867 if (host->rate != ios->clock) in usdhi6_set_ios()
868 usdhi6_clk_set(host, ios); in usdhi6_set_ios()
[all …]
A Dtmio_mmc_core.c735 if (host->mmc->ios.bus_width == MMC_BUS_WIDTH_4 || in tmio_mmc_start_data()
736 host->mmc->ios.bus_width == MMC_BUS_WIDTH_8) { in tmio_mmc_start_data()
958 ios->clock, ios->power_mode); in tmio_mmc_set_ios()
977 switch (ios->power_mode) { in tmio_mmc_set_ios()
987 tmio_mmc_power_on(host, ios->vdd); in tmio_mmc_set_ios()
988 host->set_clock(host, ios->clock); in tmio_mmc_set_ios()
989 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
992 host->set_clock(host, ios->clock); in tmio_mmc_set_ios()
993 tmio_mmc_set_bus_width(host, ios->bus_width); in tmio_mmc_set_ios()
1006 ios->clock, ios->power_mode); in tmio_mmc_set_ios()
[all …]
A Dmeson-gx-mmc.c564 struct mmc_ios *ios) in meson_mmc_prepare_ios_clock() argument
568 switch (ios->timing) { in meson_mmc_prepare_ios_clock()
579 return meson_mmc_clk_set(host, ios->clock, ddr); in meson_mmc_prepare_ios_clock()
583 struct mmc_ios *ios) in meson_mmc_check_resampling() argument
585 switch (ios->timing) { in meson_mmc_check_resampling()
605 switch (ios->power_mode) { in meson_mmc_set_ios()
638 switch (ios->bus_width) { in meson_mmc_set_ios()
650 ios->bus_width); in meson_mmc_set_ios()
659 meson_mmc_check_resampling(host, ios); in meson_mmc_set_ios()
660 err = meson_mmc_prepare_ios_clock(host, ios); in meson_mmc_set_ios()
[all …]
/linux-6.3-rc2/include/linux/mmc/
A Dhost.h146 void (*set_ios)(struct mmc_host *host, struct mmc_ios *ios);
182 int (*prepare_hs400_tuning)(struct mmc_host *host, struct mmc_ios *ios);
198 struct mmc_ios *ios);
214 int (*init_sd_express)(struct mmc_host *host, struct mmc_ios *ios);
441 struct mmc_ios ios; /* current io bus settings */ member
584 int mmc_regulator_set_vqmmc(struct mmc_host *mmc, struct mmc_ios *ios);
594 struct mmc_ios *ios) in mmc_regulator_set_vqmmc() argument
620 return card->host->ios.timing == MMC_TIMING_SD_HS || in mmc_card_hs()
621 card->host->ios.timing == MMC_TIMING_MMC_HS; in mmc_card_hs()
627 return card->host->ios.timing >= MMC_TIMING_UHS_SDR12 && in mmc_card_uhs()
[all …]
/linux-6.3-rc2/drivers/net/wireless/rsi/
A Drsi_91x_sdio.c189 host->ios.power_mode = MMC_POWER_UP; in rsi_reset_card()
191 host->ios.timing = MMC_TIMING_LEGACY; in rsi_reset_card()
192 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
200 host->ios.clock = host->f_min; in rsi_reset_card()
201 host->ios.power_mode = MMC_POWER_ON; in rsi_reset_card()
202 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
211 host->ios.chip_select = MMC_CS_HIGH; in rsi_reset_card()
212 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
220 host->ops->set_ios(host, &host->ios); in rsi_reset_card()
312 host->ios.clock = clock; in rsi_reset_card()
[all …]
/linux-6.3-rc2/drivers/staging/greybus/
A Dsdio.c588 static void gb_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) in gb_mmc_set_ios() argument
601 request.clock = cpu_to_le32(ios->clock); in gb_mmc_set_ios()
603 if (ios->vdd) in gb_mmc_set_ios()
604 vdd = 1 << (ios->vdd - GB_SDIO_VDD_SHIFT); in gb_mmc_set_ios()
607 request.bus_mode = ios->bus_mode == MMC_BUSMODE_OPENDRAIN ? in gb_mmc_set_ios()
611 switch (ios->power_mode) { in gb_mmc_set_ios()
628 switch (ios->bus_width) { in gb_mmc_set_ios()
642 switch (ios->timing) { in gb_mmc_set_ios()
680 switch (ios->signal_voltage) { in gb_mmc_set_ios()
694 switch (ios->drv_type) { in gb_mmc_set_ios()
[all …]

Completed in 81 milliseconds

12345