#include "pmf.h"
static struct amd_pmf_static_slider_granular_v2 config_store_v2;
static struct amd_pmf_static_slider_granular config_store;
static struct amd_pmf_apts_granular apts_config_store;
#ifdef CONFIG_AMD_PMF_DEBUG
static const char *slider_v2_as_str(unsigned int state)
{ … }
static const char *slider_as_str(unsigned int state)
{ … }
const char *amd_pmf_source_as_str(unsigned int state)
{ … }
static void amd_pmf_dump_sps_defaults(struct amd_pmf_static_slider_granular *data)
{ … }
static void amd_pmf_dump_sps_defaults_v2(struct amd_pmf_static_slider_granular_v2 *data)
{ … }
static void amd_pmf_dump_apts_sps_defaults(struct amd_pmf_apts_granular *info)
{ … }
#else
static void amd_pmf_dump_sps_defaults(struct amd_pmf_static_slider_granular *data) {}
static void amd_pmf_dump_sps_defaults_v2(struct amd_pmf_static_slider_granular_v2 *data) {}
static void amd_pmf_dump_apts_sps_defaults(struct amd_pmf_apts_granular *info) {}
#endif
static void amd_pmf_load_apts_defaults_sps_v2(struct amd_pmf_dev *pdev)
{ … }
static void amd_pmf_load_defaults_sps_v2(struct amd_pmf_dev *dev)
{ … }
static void amd_pmf_load_defaults_sps(struct amd_pmf_dev *dev)
{ … }
static void amd_pmf_update_slider_v2(struct amd_pmf_dev *dev, int idx)
{ … }
void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx,
struct amd_pmf_static_slider_granular *table)
{ … }
static int amd_pmf_update_sps_power_limits_v2(struct amd_pmf_dev *pdev, int pwr_mode)
{ … }
int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf)
{ … }
bool is_pprof_balanced(struct amd_pmf_dev *pmf)
{ … }
static int amd_pmf_profile_get(struct platform_profile_handler *pprof,
enum platform_profile_option *profile)
{ … }
int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf)
{ … }
int amd_pmf_power_slider_update_event(struct amd_pmf_dev *dev)
{ … }
static int amd_pmf_profile_set(struct platform_profile_handler *pprof,
enum platform_profile_option profile)
{ … }
int amd_pmf_init_sps(struct amd_pmf_dev *dev)
{ … }
void amd_pmf_deinit_sps(struct amd_pmf_dev *dev)
{ … }