Lines Matching refs:pstate
388 static int brcm_avs_get_pstate(struct private_data *priv, unsigned int *pstate) in brcm_avs_get_pstate() argument
396 *pstate = args[0]; in brcm_avs_get_pstate()
401 static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate) in brcm_avs_set_pstate() argument
405 args[0] = pstate; in brcm_avs_set_pstate()
429 unsigned int pstate; in brcm_avs_get_freq_table() local
433 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_get_freq_table()
452 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table()
627 unsigned int pstate; in brcm_avs_cpufreq_init() local
629 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init()
631 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init()
645 unsigned int pstate; in show_brcm_avs_pstate() local
647 if (brcm_avs_get_pstate(priv, &pstate)) in show_brcm_avs_pstate()
650 return sprintf(buf, "%u\n", pstate); in show_brcm_avs_pstate()