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()
882 unsigned int bus_width) in __mmc_select_powerclass() argument
894 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
912 pwrclass_val = (bus_width <= EXT_CSD_BUS_WIDTH_8) ? in __mmc_select_powerclass()
916 pwrclass_val = (bus_width == EXT_CSD_DDR_BUS_WIDTH_8) ? in __mmc_select_powerclass()
926 if (bus_width & (EXT_CSD_BUS_WIDTH_8 | EXT_CSD_DDR_BUS_WIDTH_8)) in __mmc_select_powerclass()
947 u32 bus_width, ext_csd_bits; in mmc_select_powerclass() local
954 bus_width = host->ios.bus_width; in mmc_select_powerclass()
956 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_powerclass()
961 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
964 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_powerclass()
970 mmc_hostname(host), 1 << bus_width, ddr); in mmc_select_powerclass()
1009 unsigned idx, bus_width = 0; in mmc_select_bus_width() local
1039 bus_width = bus_widths[idx]; in mmc_select_bus_width()
1040 mmc_set_bus_width(host, bus_width); in mmc_select_bus_width()
1048 err = mmc_compare_ext_csds(card, bus_width); in mmc_select_bus_width()
1050 err = mmc_bus_test(card, bus_width); in mmc_select_bus_width()
1053 err = bus_width; in mmc_select_bus_width()
1057 mmc_hostname(host), 1 << bus_width); in mmc_select_bus_width()
1088 u32 bus_width, ext_csd_bits; in mmc_select_hs_ddr() local
1094 bus_width = host->ios.bus_width; in mmc_select_hs_ddr()
1095 if (bus_width == MMC_BUS_WIDTH_1) in mmc_select_hs_ddr()
1098 ext_csd_bits = (bus_width == MMC_BUS_WIDTH_8) ? in mmc_select_hs_ddr()
1109 mmc_hostname(host), 1 << bus_width); in mmc_select_hs_ddr()
1166 host->ios.bus_width == MMC_BUS_WIDTH_8)) in mmc_select_hs400()
1558 host->ios.bus_width == MMC_BUS_WIDTH_8) in mmc_hs200_tuning()