Home
last modified time | relevance | path

Searched refs:perfmode (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.15/drivers/platform/x86/
Dideapad-laptop.c732 static int convert_profile_to_dytc(enum platform_profile_option profile, int *perfmode) in convert_profile_to_dytc() argument
736 *perfmode = DYTC_MODE_LOW_POWER; in convert_profile_to_dytc()
739 *perfmode = DYTC_MODE_BALANCE; in convert_profile_to_dytc()
742 *perfmode = DYTC_MODE_PERFORM; in convert_profile_to_dytc()
826 int perfmode; in dytc_profile_set() local
828 err = convert_profile_to_dytc(profile, &perfmode); in dytc_profile_set()
833 err = dytc_cql_command(priv, DYTC_SET_COMMAND(DYTC_FUNCTION_MMC, perfmode, 1), in dytc_profile_set()
852 int err, perfmode; in dytc_profile_refresh() local
860 perfmode = (output >> DYTC_GET_MODE_BIT) & 0xF; in dytc_profile_refresh()
862 if (convert_dytc_to_profile(perfmode, &profile)) in dytc_profile_refresh()
Dthinkpad_acpi.c10169 static int convert_profile_to_dytc(enum platform_profile_option profile, int *perfmode) in convert_profile_to_dytc() argument
10173 *perfmode = DYTC_MODE_LOWPOWER; in convert_profile_to_dytc()
10176 *perfmode = DYTC_MODE_BALANCE; in convert_profile_to_dytc()
10179 *perfmode = DYTC_MODE_PERFORM; in convert_profile_to_dytc()
10266 int perfmode; in dytc_profile_set() local
10268 err = convert_profile_to_dytc(profile, &perfmode); in dytc_profile_set()
10273 err = dytc_cql_command(DYTC_SET_COMMAND(DYTC_FUNCTION_MMC, perfmode, 1), &output); in dytc_profile_set()
10288 int perfmode; in dytc_profile_refresh() local
10299 perfmode = (output >> DYTC_GET_MODE_BIT) & 0xF; in dytc_profile_refresh()
10300 convert_dytc_to_profile(perfmode, &profile); in dytc_profile_refresh()