Lines Matching defs:func_to_switch

976 				  u8 func_to_switch, u8 *buf, int buf_len)
986 switch (func_to_switch) {
1019 switch (func_to_switch) {
1046 switch (func_to_switch) {
1089 u8 func_to_switch, u8 bus_width)
1095 dev_dbg(rtsx_dev(chip), "%s (mode = %d, func_group = %d, func_to_switch = %d)\n",
1096 __func__, mode, func_group, func_to_switch);
1104 cmd[4] = 0xF0 + func_to_switch;
1107 cmd[3] = 0xF0 + func_to_switch;
1111 cmd[3] = 0x0F + (func_to_switch << 4);
1155 func_to_switch, buf, 64);
1159 if (cc > 400 || func_to_switch > CURRENT_LIMIT_400) {
1176 static u8 downgrade_switch_mode(u8 func_group, u8 func_to_switch)
1179 if (func_to_switch > HS_SUPPORT)
1180 func_to_switch--;
1183 if (func_to_switch > CURRENT_LIMIT_200)
1184 func_to_switch--;
1187 return func_to_switch;
1191 u8 func_group, u8 func_to_switch, u8 bus_width)
1204 func_to_switch, bus_width);
1210 func_to_switch,
1226 func_to_switch = downgrade_switch_mode(func_group,
1227 func_to_switch);
1243 u8 func_to_switch = 0;
1259 func_to_switch = SDR104_SUPPORT;
1266 func_to_switch = DDR50_SUPPORT;
1273 func_to_switch = SDR50_SUPPORT;
1279 func_to_switch = HS_SUPPORT;
1287 if (func_to_switch)
1290 dev_dbg(rtsx_dev(chip), "SD_FUNC_GROUP_1: func_to_switch = 0x%02x",
1291 func_to_switch);
1295 func_to_switch == DDR50_SUPPORT &&
1297 func_to_switch = SDR50_SUPPORT;
1302 if (func_to_switch) {
1303 retval = sd_check_switch(chip, SD_FUNC_GROUP_1, func_to_switch,
1306 if (func_to_switch == SDR104_SUPPORT) {
1308 } else if (func_to_switch == DDR50_SUPPORT) {
1311 } else if (func_to_switch == SDR50_SUPPORT) {
1318 if (func_to_switch == SDR104_SUPPORT)
1320 else if (func_to_switch == DDR50_SUPPORT)
1322 else if (func_to_switch == SDR50_SUPPORT)
1338 if (!func_to_switch || func_to_switch == HS_SUPPORT) {
1346 func_to_switch = 0xFF;
1352 func_to_switch = CURRENT_LIMIT_800;
1358 func_to_switch = CURRENT_LIMIT_600;
1364 func_to_switch = CURRENT_LIMIT_400;
1370 func_to_switch = CURRENT_LIMIT_200;
1378 if (func_to_switch != 0xFF)
1382 dev_dbg(rtsx_dev(chip), "SD_FUNC_GROUP_4: func_to_switch = 0x%02x",
1383 func_to_switch);
1385 if (func_to_switch <= CURRENT_LIMIT_800) {
1386 retval = sd_check_switch(chip, SD_FUNC_GROUP_4, func_to_switch,