Lines Matching refs:bus_width
714 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument
719 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds()
889 unsigned int bus_width) in __mmc_select_powerclass() argument
901 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
919 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
923 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass()
933 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass()
954 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
961 bus_width = host->ios.bus_width; in mmc_select_powerclass()
963 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass()
968 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
971 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
977 mmc_hostname(host), 1 << bus_width, ddr); in mmc_select_powerclass()
1016 unsigned idx, bus_width = 0; in mmc_select_bus_width() local
1046 bus_width = bus_widths[idx]; in mmc_select_bus_width()
1047 mmc_set_bus_width(host, bus_width); in mmc_select_bus_width()
1055 err = mmc_compare_ext_csds(card, bus_width); in mmc_select_bus_width()
1057 err = mmc_bus_test(card, bus_width); in mmc_select_bus_width()
1060 err = bus_width; in mmc_select_bus_width()
1064 mmc_hostname(host), 1 << bus_width); in mmc_select_bus_width()
1095 u32 bus_width, ext_csd_bits; in mmc_select_hs_ddr() local
1101 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
1102 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_hs_ddr()
1105 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_hs_ddr()
1116 mmc_hostname(host), 1 << bus_width); in mmc_select_hs_ddr()
1173 host->ios.bus_width == MMC_BUS_WIDTH_8)) in mmc_select_hs400()
1585 host->ios.bus_width == MMC_BUS_WIDTH_8) in mmc_hs200_tuning()