Searched refs:amd_pmf_dev (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/platform/x86/amd/pmf/ |
H A D | pmf.h | 334 struct amd_pmf_dev { struct 770 int apmf_acpi_init(struct amd_pmf_dev *pmf_dev); 771 void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev); 772 int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index); 773 int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data); 774 int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev); 776 int apmf_install_handler(struct amd_pmf_dev *pmf_dev); 777 int apmf_os_power_slider_update(struct amd_pmf_dev *dev, u8 flag); 778 int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer); 779 int amd_pmf_notify_sbios_heartbeat_event_v2(struct amd_pmf_dev *dev, u8 flag); [all …]
|
H A D | core.c | 58 struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier); in amd_pmf_pwr_src_notify_call() 81 struct amd_pmf_dev *dev = seq->private; in current_power_limits_show() 103 static void amd_pmf_dbgfs_unregister(struct amd_pmf_dev *dev) in amd_pmf_dbgfs_unregister() 108 static void amd_pmf_dbgfs_register(struct amd_pmf_dev *dev) in amd_pmf_dbgfs_register() 126 struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, work_buffer.work); in amd_pmf_get_metrics() 155 static inline u32 amd_pmf_reg_read(struct amd_pmf_dev *dev, int reg_offset) in amd_pmf_reg_read() 160 static inline void amd_pmf_reg_write(struct amd_pmf_dev *dev, int reg_offset, u32 val) in amd_pmf_reg_write() 165 static void __maybe_unused amd_pmf_dump_registers(struct amd_pmf_dev *dev) in amd_pmf_dump_registers() 179 int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data) in amd_pmf_send_cmd() 249 int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer) in amd_pmf_set_dram_addr() [all …]
|
H A D | sps.c | 124 static void amd_pmf_load_apts_defaults_sps_v2(struct amd_pmf_dev *pdev) in amd_pmf_load_apts_defaults_sps_v2() 148 static void amd_pmf_load_defaults_sps_v2(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_sps_v2() 166 static void amd_pmf_load_defaults_sps(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_sps() 193 static void amd_pmf_update_slider_v2(struct amd_pmf_dev *dev, int idx) in amd_pmf_update_slider_v2() 206 void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx, in amd_pmf_update_slider() 238 static int amd_pmf_update_sps_power_limits_v2(struct amd_pmf_dev *pdev, int pwr_mode) in amd_pmf_update_sps_power_limits_v2() 264 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf) in amd_pmf_set_sps_power_limits() 280 bool is_pprof_balanced(struct amd_pmf_dev *pmf) in is_pprof_balanced() 288 struct amd_pmf_dev *pmf = dev_get_drvdata(dev); in amd_pmf_profile_get() 294 int amd_pmf_get_pprof_modes(struct amd_pmf_dev *pmf) in amd_pmf_get_pprof_modes() [all …]
|
H A D | cnqf.c | 72 static int amd_pmf_set_cnqf(struct amd_pmf_dev *dev, int src, int idx, in amd_pmf_set_cnqf() 143 static int amd_pmf_cnqf_get_power_source(struct amd_pmf_dev *dev) in amd_pmf_cnqf_get_power_source() 154 int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_lapsed_ms) in amd_pmf_trans_cnqf() 332 static int amd_pmf_check_flags(struct amd_pmf_dev *dev) in amd_pmf_check_flags() 344 static int amd_pmf_load_defaults_cnqf(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_cnqf() 385 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_enable_store() 411 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_enable_show() 422 struct amd_pmf_dev *pdev = dev_get_drvdata(dev); in cnqf_feature_is_visible() 437 void amd_pmf_deinit_cnqf(struct amd_pmf_dev *dev) in amd_pmf_deinit_cnqf() 442 int amd_pmf_init_cnqf(struct amd_pmf_dev *dev) in amd_pmf_init_cnqf()
|
H A D | auto-mode.c | 112 static void amd_pmf_set_automode(struct amd_pmf_dev *dev, int idx, in amd_pmf_set_automode() 132 static int amd_pmf_get_moving_avg(struct amd_pmf_dev *pdev, int socket_power) in amd_pmf_get_moving_avg() 150 void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms) in amd_pmf_trans_automode() 228 void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event) in amd_pmf_update_2_cql() 302 static void amd_pmf_load_defaults_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_load_defaults_auto_mode() 410 int amd_pmf_reset_amt(struct amd_pmf_dev *dev) in amd_pmf_reset_amt() 427 void amd_pmf_handle_amt(struct amd_pmf_dev *dev) in amd_pmf_handle_amt() 432 void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_deinit_auto_mode() 437 void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev) in amd_pmf_init_auto_mode()
|