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()
637 unsigned int pstate; in brcm_avs_cpufreq_init() local
639 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init()
641 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init()
655 unsigned int pstate; in show_brcm_avs_pstate() local
657 if (brcm_avs_get_pstate(priv, &pstate)) in show_brcm_avs_pstate()
660 return sprintf(buf, "%u\n", pstate); in show_brcm_avs_pstate()