Lines Matching refs:pmf
128 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf) in amd_pmf_set_sps_power_limits() argument
132 mode = amd_pmf_get_pprof_modes(pmf); in amd_pmf_set_sps_power_limits()
136 amd_pmf_update_slider(pmf, SLIDER_OP_SET, mode, NULL); in amd_pmf_set_sps_power_limits()
141 bool is_pprof_balanced(struct amd_pmf_dev *pmf) in is_pprof_balanced() argument
143 return (pmf->current_profile == PLATFORM_PROFILE_BALANCED) ? true : false; in is_pprof_balanced()
149 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_get() local
151 *profile = pmf->current_profile; in amd_pmf_profile_get()
155 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf) in amd_pmf_get_pprof_modes() argument
159 switch (pmf->current_profile) { in amd_pmf_get_pprof_modes()
170 dev_err(pmf->dev, "Unknown Platform Profile.\n"); in amd_pmf_get_pprof_modes()
230 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_set() local
233 pmf->current_profile = profile; in amd_pmf_profile_set()
236 if (is_apmf_func_supported(pmf, APMF_FUNC_OS_POWER_SLIDER_UPDATE)) { in amd_pmf_profile_set()
237 ret = amd_pmf_power_slider_update_event(pmf); in amd_pmf_profile_set()
242 if (is_apmf_func_supported(pmf, APMF_FUNC_STATIC_SLIDER_GRANULAR)) { in amd_pmf_profile_set()
243 ret = amd_pmf_set_sps_power_limits(pmf); in amd_pmf_profile_set()