Searched refs:amd_pmf_dev (Results 1 - 9 of 9) sorted by relevance

/linux-master/drivers/platform/x86/amd/pmf/
H A Dpmf.h265 struct amd_pmf_dev { struct
662 int apmf_acpi_init(struct amd_pmf_dev *pmf_dev);
663 void apmf_acpi_deinit(struct amd_pmf_dev *pmf_dev);
664 int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index);
665 int amd_pmf_send_cmd(struct amd_pmf_dev *dev, u8 message, bool get, u32 arg, u32 *data);
666 int amd_pmf_init_metrics_table(struct amd_pmf_dev *dev);
668 int apmf_install_handler(struct amd_pmf_dev *pmf_dev);
669 int apmf_os_power_slider_update(struct amd_pmf_dev *dev, u8 flag);
670 int amd_pmf_set_dram_addr(struct amd_pmf_dev *dev, bool alloc_buffer);
671 int amd_pmf_notify_sbios_heartbeat_event_v2(struct amd_pmf_dev *de
[all...]
H A Dacpi.c17 static union acpi_object *apmf_if_call(struct amd_pmf_dev *pdev, int fn, struct acpi_buffer *param)
50 static int apmf_if_call_store_buffer(struct amd_pmf_dev *pdev, int fn, void *dest, size_t out_sz)
93 static union acpi_object *apts_if_call(struct amd_pmf_dev *pdev, u32 state_index)
121 static int apts_if_call_store_buffer(struct amd_pmf_dev *pdev,
158 int is_apmf_func_supported(struct amd_pmf_dev *pdev, unsigned long index)
164 int apts_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
173 int apmf_get_static_slider_granular_v2(struct amd_pmf_dev *pdev,
183 int apmf_get_static_slider_granular(struct amd_pmf_dev *pdev,
193 int apmf_os_power_slider_update(struct amd_pmf_dev *pdev, u8 event)
215 struct amd_pmf_dev *de
[all...]
H A Dpmf-quirks.c35 void amd_pmf_quirks_init(struct amd_pmf_dev *dev)
H A Dtee-if.c47 static void amd_pmf_prepare_args(struct amd_pmf_dev *dev, int cmd,
65 static int amd_pmf_update_uevents(struct amd_pmf_dev *dev, u16 event)
79 static void amd_pmf_apply_policies(struct amd_pmf_dev *dev, struct ta_pmf_enact_result *out)
160 static int amd_pmf_invoke_cmd_enact(struct amd_pmf_dev *dev)
200 static int amd_pmf_invoke_cmd_init(struct amd_pmf_dev *dev)
241 struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, pb_work.work);
247 static int amd_pmf_start_policy_engine(struct amd_pmf_dev *dev)
286 static void amd_pmf_hex_dump_pb(struct amd_pmf_dev *dev)
295 struct amd_pmf_dev *de
[all...]
H A Dcore.c63 struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier);
86 struct amd_pmf_dev *dev = seq->private;
108 static void amd_pmf_dbgfs_unregister(struct amd_pmf_dev *dev)
113 static void amd_pmf_dbgfs_register(struct amd_pmf_dev *dev)
131 struct amd_pmf_dev *dev = container_of(work, struct amd_pmf_dev, work_buffer.work);
160 static inline u32 amd_pmf_reg_read(struct amd_pmf_dev *dev, int reg_offset)
165 static inline void amd_pmf_reg_write(struct amd_pmf_dev *dev, int reg_offset, u32 val)
170 static void __maybe_unused amd_pmf_dump_registers(struct amd_pmf_dev *de
[all...]
H A Dsps.c124 static void amd_pmf_load_apts_defaults_sps_v2(struct amd_pmf_dev *pdev)
148 static void amd_pmf_load_defaults_sps_v2(struct amd_pmf_dev *dev)
166 static void amd_pmf_load_defaults_sps(struct amd_pmf_dev *dev)
193 static void amd_pmf_update_slider_v2(struct amd_pmf_dev *dev, int idx)
206 void amd_pmf_update_slider(struct amd_pmf_dev *dev, bool op, int idx,
238 static int amd_pmf_update_sps_power_limits_v2(struct amd_pmf_dev *pdev, int pwr_mode)
264 int amd_pmf_set_sps_power_limits(struct amd_pmf_dev *pmf)
280 bool is_pprof_balanced(struct amd_pmf_dev *pmf)
288 struct amd_pmf_dev *pmf = container_of(pprof, struct amd_pmf_dev, ppro
[all...]
H A Dspc.c33 void amd_pmf_dump_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
53 void amd_pmf_dump_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in) {}
56 static void amd_pmf_get_smu_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
108 static int amd_pmf_get_battery_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
130 static int amd_pmf_get_slider_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
153 static int amd_pmf_get_sensor_info(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
185 void amd_pmf_populate_ta_inputs(struct amd_pmf_dev *dev, struct ta_pmf_enact_table *in)
H A Dcnqf.c72 static int amd_pmf_set_cnqf(struct amd_pmf_dev *dev, int src, int idx,
143 static int amd_pmf_cnqf_get_power_source(struct amd_pmf_dev *dev)
154 int amd_pmf_trans_cnqf(struct amd_pmf_dev *dev, int socket_power, ktime_t time_lapsed_ms)
332 static int amd_pmf_check_flags(struct amd_pmf_dev *dev)
344 static int amd_pmf_load_defaults_cnqf(struct amd_pmf_dev *dev)
385 struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
411 struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
422 struct amd_pmf_dev *pdev = dev_get_drvdata(dev);
437 void amd_pmf_deinit_cnqf(struct amd_pmf_dev *dev)
442 int amd_pmf_init_cnqf(struct amd_pmf_dev *de
[all...]
H A Dauto-mode.c112 static void amd_pmf_set_automode(struct amd_pmf_dev *dev, int idx,
132 static int amd_pmf_get_moving_avg(struct amd_pmf_dev *pdev, int socket_power)
150 void amd_pmf_trans_automode(struct amd_pmf_dev *dev, int socket_power, ktime_t time_elapsed_ms)
228 void amd_pmf_update_2_cql(struct amd_pmf_dev *dev, bool is_cql_event)
302 static void amd_pmf_load_defaults_auto_mode(struct amd_pmf_dev *dev)
410 int amd_pmf_reset_amt(struct amd_pmf_dev *dev)
427 void amd_pmf_handle_amt(struct amd_pmf_dev *dev)
432 void amd_pmf_deinit_auto_mode(struct amd_pmf_dev *dev)
437 void amd_pmf_init_auto_mode(struct amd_pmf_dev *dev)

Completed in 194 milliseconds