Lines Matching refs:mode_idx
1036 int mode_idx; in amd_pstate_update_status() local
1041 mode_idx = get_mode_idx_from_str(buf, size); in amd_pstate_update_status()
1043 if (mode_idx < 0 || mode_idx >= AMD_PSTATE_MAX) in amd_pstate_update_status()
1046 if (mode_state_machine[cppc_state][mode_idx]) in amd_pstate_update_status()
1047 return mode_state_machine[cppc_state][mode_idx](mode_idx); in amd_pstate_update_status()
1453 static int __init amd_pstate_set_driver(int mode_idx) in amd_pstate_set_driver() argument
1455 if (mode_idx >= AMD_PSTATE_DISABLE && mode_idx < AMD_PSTATE_MAX) { in amd_pstate_set_driver()
1456 cppc_state = mode_idx; in amd_pstate_set_driver()
1560 int mode_idx; in amd_pstate_param() local
1566 mode_idx = get_mode_idx_from_str(str, size); in amd_pstate_param()
1568 return amd_pstate_set_driver(mode_idx); in amd_pstate_param()