Lines Matching refs:pstate
365 static int brcm_avs_get_pstate(struct private_data *priv, unsigned int *pstate) in brcm_avs_get_pstate() argument
373 *pstate = args[0]; in brcm_avs_get_pstate()
378 static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate) in brcm_avs_set_pstate() argument
382 args[0] = pstate; in brcm_avs_set_pstate()
405 unsigned int pstate; in brcm_avs_get_freq_table() local
409 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_get_freq_table()
428 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table()
596 unsigned int pstate; in brcm_avs_cpufreq_init() local
598 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init()
600 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init()
614 unsigned int pstate; in show_brcm_avs_pstate() local
616 if (brcm_avs_get_pstate(priv, &pstate)) in show_brcm_avs_pstate()
619 return sprintf(buf, "%u\n", pstate); in show_brcm_avs_pstate()