Lines Matching refs:mwt

1724 #define for_each_sd_mode_by_pref(caps, mwt) \  argument
1725 for (mwt = sd_modes_by_pref;\
1726 mwt < sd_modes_by_pref + ARRAY_SIZE(sd_modes_by_pref);\
1727 mwt++) \
1728 if (caps & MMC_CAP(mwt->mode))
1734 const struct mode_width_tuning *mwt; in sd_select_mode_and_width() local
1765 for_each_sd_mode_by_pref(caps, mwt) { in sd_select_mode_and_width()
1769 if (*w & caps & mwt->widths) { in sd_select_mode_and_width()
1771 mmc_mode_name(mwt->mode), in sd_select_mode_and_width()
1773 mmc_mode2freq(mmc, mwt->mode) / 1000000); in sd_select_mode_and_width()
1782 err = sd_set_card_speed(mmc, mwt->mode); in sd_select_mode_and_width()
1787 mmc_select_mode(mmc, mwt->mode); in sd_select_mode_and_width()
1793 if (mwt->tuning && !mmc_host_is_spi(mmc)) { in sd_select_mode_and_width()
1795 mwt->tuning); in sd_select_mode_and_width()
1946 #define for_each_mmc_mode_by_pref(caps, mwt) \ argument
1947 for (mwt = mmc_modes_by_pref;\
1948 mwt < mmc_modes_by_pref + ARRAY_SIZE(mmc_modes_by_pref);\
1949 mwt++) \
1950 if (caps & MMC_CAP(mwt->mode))
2067 const struct mode_width_tuning *mwt; in mmc_select_mode_and_width() local
2108 for_each_mmc_mode_by_pref(card_caps, mwt) { in mmc_select_mode_and_width()
2109 for_each_supported_width(card_caps & mwt->widths, in mmc_select_mode_and_width()
2110 mmc_is_mode_ddr(mwt->mode), ecbw) { in mmc_select_mode_and_width()
2113 mmc_mode_name(mwt->mode), in mmc_select_mode_and_width()
2115 mmc_mode2freq(mmc, mwt->mode) / 1000000); in mmc_select_mode_and_width()
2117 err = mmc_set_lowest_voltage(mmc, mwt->mode, in mmc_select_mode_and_width()
2130 if (mwt->mode == MMC_HS_400) { in mmc_select_mode_and_width()
2136 } else if (mwt->mode == MMC_HS_400_ES) { in mmc_select_mode_and_width()
2145 err = mmc_set_card_speed(mmc, mwt->mode, false); in mmc_select_mode_and_width()
2164 mmc_select_mode(mmc, mwt->mode); in mmc_select_mode_and_width()
2170 if (mwt->tuning) { in mmc_select_mode_and_width()
2172 mwt->tuning); in mmc_select_mode_and_width()