Searched refs:amd_pmf_dev (Results 1 – 6 of 6) sorted by relevance
/Linux-v6.1/drivers/platform/x86/amd/pmf/ |
D | pmf.h | 149 struct amd_pmf_dev { struct 378 int apmf_acpi_init(struct amd_pmf_dev *pmf_dev); 379 void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev); 380 int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index); 381 int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data); 382 int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev); 384 int apmf_install_handler(struct amd_pmf_dev *pmf_dev); 387 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf); 388 void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx, 390 int amd_pmf_init_sps(struct amd_pmf_dev *dev); [all …]
|
D | acpi.c | 17 static union acpi_object *apmf_if_call(struct amd_pmf_dev *pdev, int fn, struct acpi_buffer *param) in apmf_if_call() 50 static int apmf_if_call_store_buffer(struct amd_pmf_dev *pdev, int fn, void *dest, size_t out_sz) in apmf_if_call_store_buffer() 93 int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index) in is_apmf_func_supported() 99 int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev, in apmf_get_static_slider_granular() 111 struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, heart_beat.work); in apmf_sbios_heartbeat_notify() 125 int apmf_update_fan_idx(struct amd_pmf_dev *pdev, bool manual, u32 idx) in apmf_update_fan_idx() 150 int apmf_get_auto_mode_def(struct amd_pmf_dev *pdev, struct apmf_auto_mode *data) in apmf_get_auto_mode_def() 155 int apmf_get_sbios_requests(struct amd_pmf_dev *pdev, struct apmf_sbios_req *req) in apmf_get_sbios_requests() 163 struct amd_pmf_dev *pmf_dev = data; in apmf_event_handler() 197 static int apmf_if_verify_interface(struct amd_pmf_dev *pdev) in apmf_if_verify_interface() [all …]
|
D | core.c | 63 struct amd_pmf_dev *dev = seq->private; in current_power_limits_show() 85 static void amd_pmf_dbgfs_unregister(struct amd_pmf_dev *dev) in amd_pmf_dbgfs_unregister() 90 static void amd_pmf_dbgfs_register(struct amd_pmf_dev *dev) in amd_pmf_dbgfs_register() 107 struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, work_buffer.work); in amd_pmf_get_metrics() 136 static inline u32 amd_pmf_reg_read(struct amd_pmf_dev *dev, int reg_offset) in amd_pmf_reg_read() 141 static inline void amd_pmf_reg_write(struct amd_pmf_dev *dev, int reg_offset, u32 val) in amd_pmf_reg_write() 146 static void __maybe_unused amd_pmf_dump_registers(struct amd_pmf_dev *dev) in amd_pmf_dump_registers() 160 int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data) in amd_pmf_send_cmd() 230 int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev) in amd_pmf_init_metrics_table() 258 static void amd_pmf_init_features(struct amd_pmf_dev *dev) in amd_pmf_init_features() [all …]
|
D | sps.c | 15 static void amd_pmf_load_defaults_sps(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_sps() 41 void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx, in amd_pmf_update_slider() 76 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_get() 82 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf) in amd_pmf_get_pprof_modes() 107 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, pprof); in amd_pmf_profile_set() 119 int amd_pmf_init_sps(struct amd_pmf_dev *dev) in amd_pmf_init_sps() 143 void amd_pmf_deinit_sps(struct amd_pmf_dev *dev) in amd_pmf_deinit_sps()
|
D | auto-mode.c | 18 static void amd_pmf_set_automode(struct amd_pmf_dev *dev, int idx, in amd_pmf_set_automode() 38 static int amd_pmf_get_moving_avg(struct amd_pmf_dev *pdev, int socket_power) in amd_pmf_get_moving_avg() 56 void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms) in amd_pmf_trans_automode() 111 void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event) in amd_pmf_update_2_cql() 161 static void amd_pmf_load_defaults_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_auto_mode() 267 int amd_pmf_reset_amt(struct amd_pmf_dev *dev) in amd_pmf_reset_amt() 289 void amd_pmf_handle_amt(struct amd_pmf_dev *dev) in amd_pmf_handle_amt() 294 void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_deinit_auto_mode() 299 void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_init_auto_mode()
|
D | cnqf.c | 16 static int amd_pmf_set_cnqf(struct amd_pmf_dev *dev, int src, int idx, in amd_pmf_set_cnqf() 87 static int amd_pmf_cnqf_get_power_source(struct amd_pmf_dev *dev) in amd_pmf_cnqf_get_power_source() 98 int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_lapsed_ms) in amd_pmf_trans_cnqf() 257 static int amd_pmf_check_flags(struct amd_pmf_dev *dev) in amd_pmf_check_flags() 269 static int amd_pmf_load_defaults_cnqf(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_cnqf() 309 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_enable_store() 339 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_enable_show() 350 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_feature_is_visible() 365 void amd_pmf_deinit_cnqf(struct amd_pmf_dev *dev) in amd_pmf_deinit_cnqf() 370 int amd_pmf_init_cnqf(struct amd_pmf_dev *dev) in amd_pmf_init_cnqf()
|