Lines Matching defs:rdev
1765 static struct si_power_info *si_get_pi(struct radeon_device *rdev) in si_get_pi()
1799 static void si_calculate_leakage_for_v_and_t(struct radeon_device *rdev, in si_calculate_leakage_for_v_and_t()
1827 static void si_calculate_leakage_for_v(struct radeon_device *rdev, in si_calculate_leakage_for_v()
1838 static void si_update_dte_from_pl2(struct radeon_device *rdev, in si_update_dte_from_pl2()
1868 static void si_initialize_powertune_defaults(struct radeon_device *rdev) in si_initialize_powertune_defaults()
2094 static u32 si_get_smc_power_scaling_factor(struct radeon_device *rdev) in si_get_smc_power_scaling_factor()
2099 static u32 si_calculate_cac_wintime(struct radeon_device *rdev) in si_calculate_cac_wintime()
2124 static int si_calculate_adjusted_tdp_limits(struct radeon_device *rdev, in si_calculate_adjusted_tdp_limits()
2157 static int si_populate_smc_tdp_limits(struct radeon_device *rdev, in si_populate_smc_tdp_limits()
2222 static int si_populate_smc_tdp_limits_2(struct radeon_device *rdev, in si_populate_smc_tdp_limits_2()
2254 static u16 si_calculate_power_efficiency_ratio(struct radeon_device *rdev, in si_calculate_power_efficiency_ratio()
2276 static bool si_should_disable_uvd_powertune(struct radeon_device *rdev, in si_should_disable_uvd_powertune()
2288 static int si_populate_power_containment_values(struct radeon_device *rdev, in si_populate_power_containment_values()
2382 static int si_populate_sq_ramping_values(struct radeon_device *rdev, in si_populate_sq_ramping_values()
2439 static int si_enable_power_containment(struct radeon_device *rdev, in si_enable_power_containment()
2469 static int si_initialize_smc_dte_tables(struct radeon_device *rdev) in si_initialize_smc_dte_tables()
2534 static int si_get_cac_std_voltage_max_min(struct radeon_device *rdev, in si_get_cac_std_voltage_max_min()
2579 static int si_init_dte_leakage_table(struct radeon_device *rdev, in si_init_dte_leakage_table()
2619 static int si_init_simplified_leakage_table(struct radeon_device *rdev, in si_init_simplified_leakage_table()
2654 static int si_initialize_smc_cac_tables(struct radeon_device *rdev) in si_initialize_smc_cac_tables()
2738 static int si_program_cac_config_registers(struct radeon_device *rdev, in si_program_cac_config_registers()
2777 static int si_initialize_hardware_cac_manager(struct radeon_device *rdev) in si_initialize_hardware_cac_manager()
2800 static int si_enable_smc_cac(struct radeon_device *rdev, in si_enable_smc_cac()
2847 static int si_init_smc_spll_table(struct radeon_device *rdev) in si_init_smc_spll_table()
2918 static u16 si_get_lower_of_leakage_and_vce_voltage(struct radeon_device *rdev, in si_get_lower_of_leakage_and_vce_voltage()
2936 static int si_get_vce_clock_voltage(struct radeon_device *rdev, in si_get_vce_clock_voltage()
2968 static void si_apply_state_adjust_rules(struct radeon_device *rdev, in si_apply_state_adjust_rules()
3195 static int si_write_smc_soft_register(struct radeon_device *rdev, in si_write_smc_soft_register()
3205 static bool si_is_special_1gb_platform(struct radeon_device *rdev) in si_is_special_1gb_platform()
3233 static void si_get_leakage_vddc(struct radeon_device *rdev) in si_get_leakage_vddc()
3252 static int si_get_leakage_voltage_from_leakage_index(struct radeon_device *rdev, in si_get_leakage_voltage_from_leakage_index()
3279 static void si_set_dpm_event_sources(struct radeon_device *rdev, u32 sources) in si_set_dpm_event_sources()
3314 static void si_enable_auto_throttle_source(struct radeon_device *rdev, in si_enable_auto_throttle_source()
3333 static void si_start_dpm(struct radeon_device *rdev) in si_start_dpm()
3338 static void si_stop_dpm(struct radeon_device *rdev) in si_stop_dpm()
3343 static void si_enable_sclk_control(struct radeon_device *rdev, bool enable) in si_enable_sclk_control()
3385 static PPSMC_Result si_send_msg_to_smc_with_parameter(struct radeon_device *rdev, in si_send_msg_to_smc_with_parameter()
3392 static int si_restrict_performance_levels_before_switch(struct radeon_device *rdev) in si_restrict_performance_levels_before_switch()
3401 int si_dpm_force_performance_level(struct radeon_device *rdev, in si_dpm_force_performance_level()
3441 static int si_set_sw_state(struct radeon_device *rdev) in si_set_sw_state()
3447 static int si_halt_smc(struct radeon_device *rdev) in si_halt_smc()
3456 static int si_resume_smc(struct radeon_device *rdev) in si_resume_smc()
3465 static void si_dpm_start_smc(struct radeon_device *rdev) in si_dpm_start_smc()
3472 static void si_dpm_stop_smc(struct radeon_device *rdev) in si_dpm_stop_smc()
3478 static int si_process_firmware_header(struct radeon_device *rdev) in si_process_firmware_header()
3568 static void si_read_clock_registers(struct radeon_device *rdev) in si_read_clock_registers()
3589 static void si_enable_thermal_protection(struct radeon_device *rdev, in si_enable_thermal_protection()
3598 static void si_enable_acpi_power_management(struct radeon_device *rdev) in si_enable_acpi_power_management()
3631 static int si_notify_smc_display_change(struct radeon_device *rdev, in si_notify_smc_display_change()
3641 static void si_program_response_times(struct radeon_device *rdev) in si_program_response_times()
3670 static void si_program_ds_registers(struct radeon_device *rdev) in si_program_ds_registers()
3682 static void si_program_display_gap(struct radeon_device *rdev) in si_program_display_gap()
3727 static void si_enable_spread_spectrum(struct radeon_device *rdev, bool enable) in si_enable_spread_spectrum()
3740 static void si_setup_bsp(struct radeon_device *rdev) in si_setup_bsp()
3764 static void si_program_git(struct radeon_device *rdev) in si_program_git()
3769 static void si_program_tp(struct radeon_device *rdev) in si_program_tp()
3789 static void si_program_tpp(struct radeon_device *rdev) in si_program_tpp()
3794 static void si_program_sstp(struct radeon_device *rdev) in si_program_sstp()
3799 static void si_enable_display_gap(struct radeon_device *rdev) in si_enable_display_gap()
3813 static void si_program_vc(struct radeon_device *rdev) in si_program_vc()
3820 static void si_clear_vc(struct radeon_device *rdev) in si_clear_vc()
3860 static u8 si_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk) in si_get_strobe_mode_settings()
3880 static int si_upload_firmware(struct radeon_device *rdev) in si_upload_firmware()
3893 static bool si_validate_phase_shedding_tables(struct radeon_device *rdev, in si_validate_phase_shedding_tables()
3920 void si_trim_voltage_table_to_fit_state_table(struct radeon_device *rdev, in si_trim_voltage_table_to_fit_state_table()
3937 static int si_get_svi2_voltage_table(struct radeon_device *rdev, in si_get_svi2_voltage_table()
3958 static int si_construct_voltage_tables(struct radeon_device *rdev) in si_construct_voltage_tables()
4038 static void si_populate_smc_voltage_table(struct radeon_device *rdev, in si_populate_smc_voltage_table()
4048 static int si_populate_smc_voltage_tables(struct radeon_device *rdev, in si_populate_smc_voltage_tables()
4111 static int si_populate_voltage_value(struct radeon_device *rdev, in si_populate_voltage_value()
4131 static int si_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, in si_populate_mvdd_value()
4148 static int si_get_std_voltage_value(struct radeon_device *rdev, in si_get_std_voltage_value()
4199 static int si_populate_std_voltage_value(struct radeon_device *rdev, in si_populate_std_voltage_value()
4209 static int si_populate_phase_shedding_value(struct radeon_device *rdev, in si_populate_phase_shedding_value()
4228 static int si_init_arb_table_index(struct radeon_device *rdev) in si_init_arb_table_index()
4244 static int si_initial_switch_from_arb_f0_to_f1(struct radeon_device *rdev) in si_initial_switch_from_arb_f0_to_f1()
4249 static int si_reset_to_default(struct radeon_device *rdev) in si_reset_to_default()
4255 static int si_force_switch_to_arb_f0(struct radeon_device *rdev) in si_force_switch_to_arb_f0()
4274 static u32 si_calculate_memory_refresh_rate(struct radeon_device *rdev, in si_calculate_memory_refresh_rate()
4293 static int si_populate_memory_timing_parameters(struct radeon_device *rdev, in si_populate_memory_timing_parameters()
4319 static int si_do_program_memory_timing_parameters(struct radeon_device *rdev, in si_do_program_memory_timing_parameters()
4346 static int si_program_memory_timing_parameters(struct radeon_device *rdev, in si_program_memory_timing_parameters()
4353 static int si_populate_initial_mvdd_value(struct radeon_device *rdev, in si_populate_initial_mvdd_value()
4366 static int si_populate_smc_initial_state(struct radeon_device *rdev, in si_populate_smc_initial_state()
4489 static int si_populate_smc_acpi_state(struct radeon_device *rdev, in si_populate_smc_acpi_state()
4630 static int si_populate_ulv_state(struct radeon_device *rdev, in si_populate_ulv_state()
4661 static int si_program_ulv_memory_timing_parameters(struct radeon_device *rdev) in si_program_ulv_memory_timing_parameters()
4687 static void si_get_mvdd_configuration(struct radeon_device *rdev) in si_get_mvdd_configuration()
4694 static int si_init_smc_table(struct radeon_device *rdev) in si_init_smc_table()
4782 static int si_calculate_sclk_params(struct radeon_device *rdev, in si_calculate_sclk_params()
4852 static int si_populate_sclk_value(struct radeon_device *rdev, in si_populate_sclk_value()
4873 static int si_populate_mclk_value(struct radeon_device *rdev, in si_populate_mclk_value()
4962 static void si_populate_smc_sp(struct radeon_device *rdev, in si_populate_smc_sp()
4977 static int si_convert_power_level_to_smc(struct radeon_device *rdev, in si_convert_power_level_to_smc()
5086 static int si_populate_smc_t(struct radeon_device *rdev, in si_populate_smc_t()
5135 static int si_disable_ulv(struct radeon_device *rdev) in si_disable_ulv()
5147 static bool si_is_state_ulv_compatible(struct radeon_device *rdev, in si_is_state_ulv_compatible()
5175 static int si_set_power_state_conditionally_enable_ulv(struct radeon_device *rdev, in si_set_power_state_conditionally_enable_ulv()
5189 static int si_convert_power_state_to_smc(struct radeon_device *rdev, in si_convert_power_state_to_smc()
5269 static int si_upload_sw_state(struct radeon_device *rdev, in si_upload_sw_state()
5294 static int si_upload_ulv_state(struct radeon_device *rdev) in si_upload_ulv_state()
5317 static int si_upload_smc_data(struct radeon_device *rdev) in si_upload_smc_data()
5356 static int si_set_mc_special_registers(struct radeon_device *rdev, in si_set_mc_special_registers()
5533 static int si_initialize_mc_reg_table(struct radeon_device *rdev) in si_initialize_mc_reg_table()
5583 static void si_populate_mc_reg_addresses(struct radeon_device *rdev, in si_populate_mc_reg_addresses()
5617 static void si_convert_mc_reg_table_entry_to_smc(struct radeon_device *rdev, in si_convert_mc_reg_table_entry_to_smc()
5637 static void si_convert_mc_reg_table_to_smc(struct radeon_device *rdev, in si_convert_mc_reg_table_to_smc()
5651 static int si_populate_mc_reg_table(struct radeon_device *rdev, in si_populate_mc_reg_table()
5689 static int si_upload_mc_reg_table(struct radeon_device *rdev, in si_upload_mc_reg_table()
5711 static void si_enable_voltage_control(struct radeon_device *rdev, bool enable) in si_enable_voltage_control()
5719 static enum radeon_pcie_gen si_get_maximum_link_speed(struct radeon_device *rdev, in si_get_maximum_link_speed()
5734 static u16 si_get_current_pcie_speed(struct radeon_device *rdev) in si_get_current_pcie_speed()
5744 static void si_request_link_speed_change_before_state_change(struct radeon_device *rdev, in si_request_link_speed_change_before_state_change()
5784 static void si_notify_link_speed_change_after_state_change(struct radeon_device *rdev, in si_notify_link_speed_change_after_state_change()
5829 static void si_set_max_cu_value(struct radeon_device *rdev) in si_set_max_cu_value()
5870 static int si_patch_single_dependency_table_based_on_leakage(struct radeon_device *rdev, in si_patch_single_dependency_table_based_on_leakage()
5901 static int si_patch_dependency_tables_based_on_leakage(struct radeon_device *rdev) in si_patch_dependency_tables_based_on_leakage()
5914 static void si_set_pcie_lane_width_in_smc(struct radeon_device *rdev, in si_set_pcie_lane_width_in_smc()
5931 static void si_set_vce_clock(struct radeon_device *rdev, in si_set_vce_clock()
5946 void si_dpm_setup_asic(struct radeon_device *rdev) in si_dpm_setup_asic()
5958 static int si_thermal_enable_alert(struct radeon_device *rdev, in si_thermal_enable_alert()
5983 static int si_thermal_set_temperature_range(struct radeon_device *rdev, in si_thermal_set_temperature_range()
6008 static void si_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode) in si_fan_ctrl_set_static_mode()
6030 static int si_thermal_setup_fan_table(struct radeon_device *rdev) in si_thermal_setup_fan_table()
6107 static int si_fan_ctrl_start_smc_fan_control(struct radeon_device *rdev) in si_fan_ctrl_start_smc_fan_control()
6121 static int si_fan_ctrl_stop_smc_fan_control(struct radeon_device *rdev) in si_fan_ctrl_stop_smc_fan_control()
6136 int si_fan_ctrl_get_fan_speed_percent(struct radeon_device *rdev, in si_fan_ctrl_get_fan_speed_percent()
6161 int si_fan_ctrl_set_fan_speed_percent(struct radeon_device *rdev, in si_fan_ctrl_set_fan_speed_percent()
6194 void si_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode) in si_fan_ctrl_set_mode()
6210 u32 si_fan_ctrl_get_mode(struct radeon_device *rdev) in si_fan_ctrl_get_mode()
6274 static void si_fan_ctrl_set_default_mode(struct radeon_device *rdev) in si_fan_ctrl_set_default_mode()
6291 static void si_thermal_start_smc_fan_control(struct radeon_device *rdev) in si_thermal_start_smc_fan_control()
6299 static void si_thermal_initialize(struct radeon_device *rdev) in si_thermal_initialize()
6314 static int si_thermal_start_thermal_controller(struct radeon_device *rdev) in si_thermal_start_thermal_controller()
6341 static void si_thermal_stop_thermal_controller(struct radeon_device *rdev) in si_thermal_stop_thermal_controller()
6349 int si_dpm_enable(struct radeon_device *rdev) in si_dpm_enable()
6468 static int si_set_temperature_range(struct radeon_device *rdev) in si_set_temperature_range()
6485 int si_dpm_late_enable(struct radeon_device *rdev) in si_dpm_late_enable()
6496 void si_dpm_disable(struct radeon_device *rdev) in si_dpm_disable()
6520 int si_dpm_pre_set_power_state(struct radeon_device *rdev) in si_dpm_pre_set_power_state()
6533 static int si_power_control_set_level(struct radeon_device *rdev) in si_power_control_set_level()
6559 int si_dpm_set_power_state(struct radeon_device *rdev) in si_dpm_set_power_state()
6662 void si_dpm_post_set_power_state(struct radeon_device *rdev) in si_dpm_post_set_power_state()
6679 void si_dpm_display_configuration_changed(struct radeon_device *rdev) in si_dpm_display_configuration_changed()
6706 static void si_parse_pplib_non_clock_info(struct radeon_device *rdev, in si_parse_pplib_non_clock_info()
6732 static void si_parse_pplib_clock_info(struct radeon_device *rdev, in si_parse_pplib_clock_info()
6808 static int si_parse_power_table(struct radeon_device *rdev) in si_parse_power_table()
6900 int si_dpm_init(struct radeon_device *rdev) in si_dpm_init()
7079 void si_dpm_fini(struct radeon_device *rdev) in si_dpm_fini()
7092 void si_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, in si_dpm_debugfs_print_current_performance_level()
7113 u32 si_dpm_get_current_sclk(struct radeon_device *rdev) in si_dpm_get_current_sclk()
7131 u32 si_dpm_get_current_mclk(struct radeon_device *rdev) in si_dpm_get_current_mclk()