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()
456 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table()
646 unsigned int pstate; in brcm_avs_cpufreq_init() local
648 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init()
650 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init()
664 unsigned int pstate; in show_brcm_avs_pstate() local
666 if (brcm_avs_get_pstate(priv, &pstate)) in show_brcm_avs_pstate()
669 return sprintf(buf, "%u\n", pstate); in show_brcm_avs_pstate()