amd_pmf_dev
static int apts_if_call_store_buffer(struct amd_pmf_dev *pdev,
int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index)
int is_apmf_bios_input_notifications_supported(struct amd_pmf_dev *pdev)
int apts_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
int apmf_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
static union acpi_object *apmf_if_call(struct amd_pmf_dev *pdev, int fn, struct acpi_buffer *param)
int apmf_os_power_slider_update(struct amd_pmf_dev *pdev, u8 event)
struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, heart_beat.work);
int amd_pmf_notify_sbios_heartbeat_event_v2(struct amd_pmf_dev *dev, u8 flag)
int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx)
static int apmf_notify_smart_pc_update(struct amd_pmf_dev *pdev, u32 val, u32 preq, u32 index)
int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data)
int apmf_get_sbios_requests_v2(struct amd_pmf_dev *pdev, struct apmf_sbios_req_v2 *req)
int apmf_get_sbios_requests_v1(struct amd_pmf_dev *pdev, struct apmf_sbios_req_v1 *req)
int apmf_get_sbios_requests(struct amd_pmf_dev *pdev, struct apmf_sbios_req *req)
static void amd_pmf_custom_bios_inputs_rb(struct amd_pmf_dev *pmf_dev)
static void amd_pmf_handle_early_preq(struct amd_pmf_dev *pdev)
struct amd_pmf_dev *pmf_dev = data;
struct amd_pmf_dev *pmf_dev = data;
struct amd_pmf_dev *pmf_dev = data;
static int apmf_if_verify_interface(struct amd_pmf_dev *pdev)
static int apmf_get_system_params(struct amd_pmf_dev *dev)
int apmf_get_dyn_slider_def_ac(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
int apmf_get_dyn_slider_def_dc(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data)
int apmf_install_handler(struct amd_pmf_dev *pmf_dev)
static int apmf_if_call_store_buffer(struct amd_pmf_dev *pdev, int fn, void *dest, size_t out_sz)
int apmf_check_smart_pc(struct amd_pmf_dev *pmf_dev)
int amd_pmf_smartpc_apply_bios_output(struct amd_pmf_dev *dev, u32 val, u32 preq, u32 idx)
void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev)
int apmf_acpi_init(struct amd_pmf_dev *pmf_dev)
static union acpi_object *apts_if_call(struct amd_pmf_dev *pdev, u32 state_index)
static void amd_pmf_set_automode(struct amd_pmf_dev *dev, int idx,
static int amd_pmf_get_moving_avg(struct amd_pmf_dev *pdev, int socket_power)
void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms)
void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event)
static void amd_pmf_load_defaults_auto_mode(struct amd_pmf_dev *dev)
int amd_pmf_reset_amt(struct amd_pmf_dev *dev)
void amd_pmf_handle_amt(struct amd_pmf_dev *dev)
void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)
static int amd_pmf_cnqf_get_power_source(struct amd_pmf_dev *dev)
int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_lapsed_ms)
static int amd_pmf_check_flags(struct amd_pmf_dev *dev)
static int amd_pmf_load_defaults_cnqf(struct amd_pmf_dev *dev)
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
void amd_pmf_deinit_cnqf(struct amd_pmf_dev *dev)
int amd_pmf_init_cnqf(struct amd_pmf_dev *dev)
static int amd_pmf_set_cnqf(struct amd_pmf_dev *dev, int src, int idx,
static void amd_pmf_dbgfs_unregister(struct amd_pmf_dev *dev)
static void amd_pmf_dbgfs_register(struct amd_pmf_dev *dev)
struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, work_buffer.work);
static inline u32 amd_pmf_reg_read(struct amd_pmf_dev *dev, int reg_offset)
static inline void amd_pmf_reg_write(struct amd_pmf_dev *dev, int reg_offset, u32 val)
static void __maybe_unused amd_pmf_dump_registers(struct amd_pmf_dev *dev)
int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data)
int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer)
int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev)
static int is_npu_metrics_supported(struct amd_pmf_dev *pdev)
static int amd_pmf_get_smu_metrics(struct amd_pmf_dev *dev, struct amd_pmf_npu_metrics *data)
struct amd_pmf_dev *pdev;
static int amd_pmf_reinit_ta(struct amd_pmf_dev *pdev)
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
static void amd_pmf_init_features(struct amd_pmf_dev *dev)
static void amd_pmf_deinit_features(struct amd_pmf_dev *dev)
struct amd_pmf_dev *dev;
struct amd_pmf_dev *dev = platform_get_drvdata(pdev);
struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier);
struct amd_pmf_dev *dev = seq->private;
int apmf_acpi_init(struct amd_pmf_dev *pmf_dev);
void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev);
int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index);
int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data);
int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev);
int apmf_install_handler(struct amd_pmf_dev *pmf_dev);
int apmf_os_power_slider_update(struct amd_pmf_dev *dev, u8 flag);
int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer);
int amd_pmf_notify_sbios_heartbeat_event_v2(struct amd_pmf_dev *dev, u8 flag);
int is_apmf_bios_input_notifications_supported(struct amd_pmf_dev *pdev);
int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf);
void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx,
int amd_pmf_init_sps(struct amd_pmf_dev *dev);
int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
bool is_pprof_balanced(struct amd_pmf_dev *pmf);
int amd_pmf_power_slider_update_event(struct amd_pmf_dev *dev);
int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx);
int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf);
int apmf_get_static_slider_granular_v2(struct amd_pmf_dev *dev,
int apts_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data);
void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev);
void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev);
void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms);
int apmf_get_sbios_requests(struct amd_pmf_dev *pdev, struct apmf_sbios_req *req);
int apmf_get_sbios_requests_v1(struct amd_pmf_dev *pdev, struct apmf_sbios_req_v1 *req);
int apmf_get_sbios_requests_v2(struct amd_pmf_dev *pdev, struct apmf_sbios_req_v2 *req);
void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event);
int amd_pmf_reset_amt(struct amd_pmf_dev *dev);
void amd_pmf_handle_amt(struct amd_pmf_dev *dev);
int apmf_get_dyn_slider_def_ac(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data);
int apmf_get_dyn_slider_def_dc(struct amd_pmf_dev *pdev, struct apmf_dyn_slider_output *data);
int amd_pmf_init_cnqf(struct amd_pmf_dev *dev);
void amd_pmf_deinit_cnqf(struct amd_pmf_dev *dev);
int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_lapsed_ms);
int amd_pmf_init_smart_pc(struct amd_pmf_dev *dev);
void amd_pmf_deinit_smart_pc(struct amd_pmf_dev *dev);
int apmf_check_smart_pc(struct amd_pmf_dev *pmf_dev);
int amd_pmf_smartpc_apply_bios_output(struct amd_pmf_dev *dev, u32 val, u32 preq, u32 idx);
void amd_pmf_populate_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in);
void amd_pmf_dump_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in);
int amd_pmf_invoke_cmd_enact(struct amd_pmf_dev *dev);
int amd_pmf_tee_init(struct amd_pmf_dev *dev, const uuid_t *uuid);
void amd_pmf_tee_deinit(struct amd_pmf_dev *dev);
int amd_pmf_start_policy_engine(struct amd_pmf_dev *dev);
void amd_pmf_dump_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in) {}
static void amd_pmf_update_bios_inputs(struct amd_pmf_dev *pdev, struct pmf_bios_input_entry *data,
static void amd_pmf_get_custom_bios_inputs(struct amd_pmf_dev *pdev,
static void amd_pmf_get_smu_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
static int amd_pmf_get_battery_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
static int amd_pmf_get_slider_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
static void amd_pmf_get_sensor_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
void amd_pmf_populate_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
void amd_pmf_dump_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
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,
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)
struct amd_pmf_dev *pmf = dev_get_drvdata(dev);
int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf)
int amd_pmf_power_slider_update_event(struct amd_pmf_dev *dev)
struct amd_pmf_dev *pmf = dev_get_drvdata(dev);
int amd_pmf_init_sps(struct amd_pmf_dev *dev)
static void amd_pmf_apply_policies(struct amd_pmf_dev *dev, struct ta_pmf_enact_result *out)
int amd_pmf_invoke_cmd_enact(struct amd_pmf_dev *dev)
static int amd_pmf_invoke_cmd_init(struct amd_pmf_dev *dev)
struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, pb_work.work);
int amd_pmf_start_policy_engine(struct amd_pmf_dev *dev)
static inline bool amd_pmf_pb_valid(struct amd_pmf_dev *dev)
static void amd_pmf_hex_dump_pb(struct amd_pmf_dev *dev)
struct amd_pmf_dev *dev = filp->private_data;
static void amd_pmf_open_pb(struct amd_pmf_dev *dev, struct dentry *debugfs_root)
static void amd_pmf_remove_pb(struct amd_pmf_dev *dev)
static void amd_pmf_open_pb(struct amd_pmf_dev *dev, struct dentry *debugfs_root) {}
static void amd_pmf_remove_pb(struct amd_pmf_dev *dev) {}
static void amd_pmf_hex_dump_pb(struct amd_pmf_dev *dev) {}
static void amd_pmf_prepare_args(struct amd_pmf_dev *dev, int cmd,
static int amd_pmf_register_input_device(struct amd_pmf_dev *dev)
int amd_pmf_tee_init(struct amd_pmf_dev *dev, const uuid_t *uuid)
void amd_pmf_tee_deinit(struct amd_pmf_dev *dev)
int amd_pmf_init_smart_pc(struct amd_pmf_dev *dev)
void amd_pmf_deinit_smart_pc(struct amd_pmf_dev *dev)
static void amd_pmf_update_uevents(struct amd_pmf_dev *dev, u16 event)
static void amd_pmf_update_bios_output(struct amd_pmf_dev *pdev, struct ta_pmf_action *action)