Lines Matching refs:mwt

1652 #define for_each_sd_mode_by_pref(caps, mwt) \  argument
1653 for (mwt = sd_modes_by_pref;\
1654 mwt < sd_modes_by_pref + ARRAY_SIZE(sd_modes_by_pref);\
1655 mwt++) \
1656 if (caps & MMC_CAP(mwt->mode))
1662 const struct mode_width_tuning *mwt; in sd_select_mode_and_width() local
1681 for_each_sd_mode_by_pref(caps, mwt) { in sd_select_mode_and_width()
1685 if (*w & caps & mwt->widths) { in sd_select_mode_and_width()
1687 mmc_mode_name(mwt->mode), in sd_select_mode_and_width()
1689 mmc_mode2freq(mmc, mwt->mode) / 1000000); in sd_select_mode_and_width()
1698 err = sd_set_card_speed(mmc, mwt->mode); in sd_select_mode_and_width()
1703 mmc_select_mode(mmc, mwt->mode); in sd_select_mode_and_width()
1709 if (mwt->tuning && !mmc_host_is_spi(mmc)) { in sd_select_mode_and_width()
1711 mwt->tuning); in sd_select_mode_and_width()
1855 #define for_each_mmc_mode_by_pref(caps, mwt) \ argument
1856 for (mwt = mmc_modes_by_pref;\
1857 mwt < mmc_modes_by_pref + ARRAY_SIZE(mmc_modes_by_pref);\
1858 mwt++) \
1859 if (caps & MMC_CAP(mwt->mode))
1929 const struct mode_width_tuning *mwt; in mmc_select_mode_and_width() local
1963 for_each_mmc_mode_by_pref(card_caps, mwt) { in mmc_select_mode_and_width()
1964 for_each_supported_width(card_caps & mwt->widths, in mmc_select_mode_and_width()
1965 mmc_is_mode_ddr(mwt->mode), ecbw) { in mmc_select_mode_and_width()
1968 mmc_mode_name(mwt->mode), in mmc_select_mode_and_width()
1970 mmc_mode2freq(mmc, mwt->mode) / 1000000); in mmc_select_mode_and_width()
1972 err = mmc_set_lowest_voltage(mmc, mwt->mode, in mmc_select_mode_and_width()
1985 if (mwt->mode == MMC_HS_400) { in mmc_select_mode_and_width()
1993 err = mmc_set_card_speed(mmc, mwt->mode, false); in mmc_select_mode_and_width()
2012 mmc_select_mode(mmc, mwt->mode); in mmc_select_mode_and_width()
2018 if (mwt->tuning) { in mmc_select_mode_and_width()
2020 mwt->tuning); in mmc_select_mode_and_width()