H A D | sd.c | 1099 u8 func_to_switch, u8 *buf, int buf_len) sd_query_switch_result() 1109 switch (func_to_switch) { sd_query_switch_result() 1143 switch (func_to_switch) { sd_query_switch_result() 1171 switch (func_to_switch) { sd_query_switch_result() 1218 u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch_mode() 1224 dev_dbg(rtsx_dev(chip), "sd_check_switch_mode (mode = %d, func_group = %d, func_to_switch = %d)\n", sd_check_switch_mode() 1225 mode, func_group, func_to_switch); sd_check_switch_mode() local 1233 cmd[4] = 0xF0 + func_to_switch; sd_check_switch_mode() 1236 cmd[3] = 0xF0 + func_to_switch; sd_check_switch_mode() 1240 cmd[3] = 0x0F + (func_to_switch << 4); sd_check_switch_mode() 1287 func_to_switch, buf, 64); sd_check_switch_mode() 1293 if ((cc > 400) || (func_to_switch > CURRENT_LIMIT_400)) { sd_check_switch_mode() 1314 static u8 downgrade_switch_mode(u8 func_group, u8 func_to_switch) downgrade_switch_mode() argument 1317 if (func_to_switch > HS_SUPPORT) downgrade_switch_mode() 1318 func_to_switch--; downgrade_switch_mode() 1321 if (func_to_switch > CURRENT_LIMIT_200) downgrade_switch_mode() 1322 func_to_switch--; downgrade_switch_mode() 1325 return func_to_switch; downgrade_switch_mode() 1329 u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch() 1343 func_to_switch, bus_width); sd_check_switch() 1348 func_group, func_to_switch, bus_width); sd_check_switch() 1366 func_to_switch = downgrade_switch_mode(func_group, sd_check_switch() 1367 func_to_switch); sd_check_switch() 1385 u8 func_to_switch = 0; sd_switch_function() local 1403 func_to_switch = SDR104_SUPPORT; sd_switch_function() 1410 func_to_switch = DDR50_SUPPORT; sd_switch_function() 1417 func_to_switch = SDR50_SUPPORT; sd_switch_function() 1423 func_to_switch = HS_SUPPORT; sd_switch_function() 1432 if (func_to_switch) sd_switch_function() 1436 dev_dbg(rtsx_dev(chip), "SD_FUNC_GROUP_1: func_to_switch = 0x%02x", sd_switch_function() 1437 func_to_switch); sd_switch_function() local 1441 && (DDR50_SUPPORT == func_to_switch) sd_switch_function() 1443 func_to_switch = SDR50_SUPPORT; sd_switch_function() 1448 if (func_to_switch) { sd_switch_function() 1449 retval = sd_check_switch(chip, SD_FUNC_GROUP_1, func_to_switch, sd_switch_function() 1452 if (func_to_switch == SDR104_SUPPORT) { sd_switch_function() 1454 } else if (func_to_switch == DDR50_SUPPORT) { sd_switch_function() 1457 } else if (func_to_switch == SDR50_SUPPORT) { sd_switch_function() 1465 if (func_to_switch == SDR104_SUPPORT) sd_switch_function() 1467 else if (func_to_switch == DDR50_SUPPORT) sd_switch_function() 1469 else if (func_to_switch == SDR50_SUPPORT) sd_switch_function() 1489 if (!func_to_switch || (func_to_switch == HS_SUPPORT)) { sd_switch_function() 1497 func_to_switch = 0xFF; sd_switch_function() 1503 func_to_switch = CURRENT_LIMIT_800; sd_switch_function() 1509 func_to_switch = CURRENT_LIMIT_600; sd_switch_function() 1515 func_to_switch = CURRENT_LIMIT_400; sd_switch_function() 1521 func_to_switch = CURRENT_LIMIT_200; sd_switch_function() 1529 if (func_to_switch != 0xFF) sd_switch_function() 1533 dev_dbg(rtsx_dev(chip), "SD_FUNC_GROUP_4: func_to_switch = 0x%02x", sd_switch_function() 1534 func_to_switch); sd_switch_function() local 1536 if (func_to_switch <= CURRENT_LIMIT_800) { sd_switch_function() 1537 retval = sd_check_switch(chip, SD_FUNC_GROUP_4, func_to_switch, sd_switch_function() 1098 sd_query_switch_result(struct rtsx_chip *chip, u8 func_group, u8 func_to_switch, u8 *buf, int buf_len) sd_query_switch_result() argument 1217 sd_check_switch_mode(struct rtsx_chip *chip, u8 mode, u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch_mode() argument 1328 sd_check_switch(struct rtsx_chip *chip, u8 func_group, u8 func_to_switch, u8 bus_width) sd_check_switch() argument
|