Lines Matching refs:bus_width
706 static int mmc_compare_ext_csds(struct mmc_card *card, unsigned bus_width) in mmc_compare_ext_csds() argument
711 if (bus_width == MMC_BUS_WIDTH_1) in mmc_compare_ext_csds()
883 unsigned int bus_width) in __mmc_select_powerclass() argument
895 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
913 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
917 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass()
927 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass()
948 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
955 bus_width = host->ios.bus_width; in mmc_select_powerclass()
957 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass()
962 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
965 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
971 mmc_hostname(host), 1 << bus_width, ddr); in mmc_select_powerclass()
1012 unsigned idx, bus_width = 0; in mmc_select_bus_width() local
1042 bus_width = bus_widths[idx]; in mmc_select_bus_width()
1043 mmc_set_bus_width(host, bus_width); in mmc_select_bus_width()
1051 err = mmc_compare_ext_csds(card, bus_width); in mmc_select_bus_width()
1053 err = mmc_bus_test(card, bus_width); in mmc_select_bus_width()
1056 err = bus_width; in mmc_select_bus_width()
1060 mmc_hostname(host), 1 << bus_width); in mmc_select_bus_width()
1091 u32 bus_width, ext_csd_bits; in mmc_select_hs_ddr() local
1097 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
1098 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_hs_ddr()
1101 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_hs_ddr()
1112 mmc_hostname(host), 1 << bus_width); in mmc_select_hs_ddr()
1169 host->ios.bus_width == MMC_BUS_WIDTH_8)) in mmc_select_hs400()
1581 host->ios.bus_width == MMC_BUS_WIDTH_8) in mmc_hs200_tuning()