• Home
  • Raw
  • Download

Lines Matching refs:hwmgr

111 typedef int (*phm_table_function)(struct pp_hwmgr *hwmgr, void *input,
114 typedef bool (*phm_check_function)(struct pp_hwmgr *hwmgr);
214 extern int phm_dispatch_table(struct pp_hwmgr *hwmgr,
218 extern int phm_construct_table(struct pp_hwmgr *hwmgr,
222 extern int phm_destroy_table(struct pp_hwmgr *hwmgr,
289 int (*apply_state_adjust_rules)(struct pp_hwmgr *hwmgr,
301 int (*patch_boot_state)(struct pp_hwmgr *hwmgr,
304 int (*get_pp_table_entry)(struct pp_hwmgr *hwmgr,
306 int (*get_num_of_pp_table_entries)(struct pp_hwmgr *hwmgr);
307 int (*powerdown_uvd)(struct pp_hwmgr *hwmgr);
308 int (*powergate_vce)(struct pp_hwmgr *hwmgr, bool bgate);
309 int (*powergate_uvd)(struct pp_hwmgr *hwmgr, bool bgate);
310 int (*get_mclk)(struct pp_hwmgr *hwmgr, bool low);
311 int (*get_sclk)(struct pp_hwmgr *hwmgr, bool low);
312 int (*power_state_set)(struct pp_hwmgr *hwmgr,
314 int (*enable_clock_power_gating)(struct pp_hwmgr *hwmgr);
315 int (*notify_smc_display_config_after_ps_adjustment)(struct pp_hwmgr *hwmgr);
316 int (*display_config_changed)(struct pp_hwmgr *hwmgr);
317 int (*disable_clock_power_gating)(struct pp_hwmgr *hwmgr);
318 int (*update_clock_gatings)(struct pp_hwmgr *hwmgr,
320 int (*set_max_fan_rpm_output)(struct pp_hwmgr *hwmgr, uint16_t us_max_fan_pwm);
321 int (*set_max_fan_pwm_output)(struct pp_hwmgr *hwmgr, uint16_t us_max_fan_pwm);
322 int (*get_temperature)(struct pp_hwmgr *hwmgr);
323 int (*stop_thermal_controller)(struct pp_hwmgr *hwmgr);
324 int (*get_fan_speed_info)(struct pp_hwmgr *hwmgr, struct phm_fan_speed_info *fan_speed_info);
325 int (*set_fan_control_mode)(struct pp_hwmgr *hwmgr, uint32_t mode);
326 int (*get_fan_control_mode)(struct pp_hwmgr *hwmgr);
327 int (*set_fan_speed_percent)(struct pp_hwmgr *hwmgr, uint32_t percent);
328 int (*get_fan_speed_percent)(struct pp_hwmgr *hwmgr, uint32_t *speed);
329 int (*set_fan_speed_rpm)(struct pp_hwmgr *hwmgr, uint32_t percent);
330 int (*get_fan_speed_rpm)(struct pp_hwmgr *hwmgr, uint32_t *speed);
331 int (*reset_fan_speed_to_default)(struct pp_hwmgr *hwmgr);
332 int (*uninitialize_thermal_controller)(struct pp_hwmgr *hwmgr);
333 int (*register_internal_thermal_interrupt)(struct pp_hwmgr *hwmgr,
335 bool (*check_smc_update_required_for_display_configuration)(struct pp_hwmgr *hwmgr);
336 int (*check_states_equal)(struct pp_hwmgr *hwmgr,
340 int (*set_cpu_power_state)(struct pp_hwmgr *hwmgr);
341 int (*store_cc6_data)(struct pp_hwmgr *hwmgr, uint32_t separation_time,
344 int (*get_dal_power_level)(struct pp_hwmgr *hwmgr,
348 int (*get_current_shallow_sleep_clocks)(struct pp_hwmgr *hwmgr,
350 …int (*get_clock_by_type)(struct pp_hwmgr *hwmgr, enum amd_pp_clock_type type, struct amd_pp_clocks…
351 int (*get_max_high_clocks)(struct pp_hwmgr *hwmgr, struct amd_pp_simple_clock_info *clocks);
352 int (*power_off_asic)(struct pp_hwmgr *hwmgr);
353 int (*force_clock_level)(struct pp_hwmgr *hwmgr, enum pp_clock_type type, uint32_t mask);
354 int (*print_clock_levels)(struct pp_hwmgr *hwmgr, enum pp_clock_type type, char *buf);
355 int (*enable_per_cu_power_gating)(struct pp_hwmgr *hwmgr, bool enable);
356 int (*get_sclk_od)(struct pp_hwmgr *hwmgr);
357 int (*set_sclk_od)(struct pp_hwmgr *hwmgr, uint32_t value);
358 int (*get_mclk_od)(struct pp_hwmgr *hwmgr);
359 int (*set_mclk_od)(struct pp_hwmgr *hwmgr, uint32_t value);
360 int (*read_sensor)(struct pp_hwmgr *hwmgr, int idx, int32_t *value);
368 struct pp_hwmgr *hwmgr,
670 extern int hwmgr_fini(struct pp_hwmgr *hwmgr);
672 extern int hw_init_power_state_table(struct pp_hwmgr *hwmgr);
674 extern int phm_wait_on_register(struct pp_hwmgr *hwmgr, uint32_t index,
679 extern void phm_wait_on_indirect_register(struct pp_hwmgr *hwmgr,
687 extern bool phm_cf_want_uvd_power_gating(struct pp_hwmgr *hwmgr);
688 extern bool phm_cf_want_vce_power_gating(struct pp_hwmgr *hwmgr);
689 extern bool phm_cf_want_microcode_fan_ctrl(struct pp_hwmgr *hwmgr);
704 extern int phm_get_sclk_for_voltage_evv(struct pp_hwmgr *hwmgr, phm_ppt_v1_voltage_lookup_table *lo…
706 extern int phm_initializa_dynamic_state_adjustment_rule_settings(struct pp_hwmgr *hwmgr);
707 extern int phm_hwmgr_backend_fini(struct pp_hwmgr *hwmgr);
708 extern uint32_t phm_get_lowest_enabled_level(struct pp_hwmgr *hwmgr, uint32_t mask);
709 extern void phm_apply_dal_min_voltage_request(struct pp_hwmgr *hwmgr);
711 extern int smu7_hwmgr_init(struct pp_hwmgr *hwmgr);
712 extern int phm_get_voltage_evv_on_sclk(struct pp_hwmgr *hwmgr, uint8_t voltage_type,
756 #define PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, index, value, mask) \ argument
757 phm_wait_on_indirect_register(hwmgr, mm##port##_INDEX, index, value, mask)
760 #define PHM_WAIT_INDIRECT_REGISTER(hwmgr, port, reg, value, mask) \ argument
761 PHM_WAIT_INDIRECT_REGISTER_GIVEN_INDEX(hwmgr, port, ix##reg, value, mask)
763 #define PHM_WAIT_INDIRECT_FIELD(hwmgr, port, reg, field, fieldval) \ argument
764 PHM_WAIT_INDIRECT_REGISTER(hwmgr, port, reg, (fieldval) \