Lines Matching defs:rdev

1743 static struct si_power_info *si_get_pi(struct radeon_device *rdev)  in si_get_pi()
1777 static void si_calculate_leakage_for_v_and_t(struct radeon_device *rdev, in si_calculate_leakage_for_v_and_t()
1805 static void si_calculate_leakage_for_v(struct radeon_device *rdev, in si_calculate_leakage_for_v()
1816 static void si_update_dte_from_pl2(struct radeon_device *rdev, in si_update_dte_from_pl2()
1846 static void si_initialize_powertune_defaults(struct radeon_device *rdev) in si_initialize_powertune_defaults()
2072 static u32 si_get_smc_power_scaling_factor(struct radeon_device *rdev) in si_get_smc_power_scaling_factor()
2077 static u32 si_calculate_cac_wintime(struct radeon_device *rdev) in si_calculate_cac_wintime()
2102 static int si_calculate_adjusted_tdp_limits(struct radeon_device *rdev, in si_calculate_adjusted_tdp_limits()
2135 static int si_populate_smc_tdp_limits(struct radeon_device *rdev, in si_populate_smc_tdp_limits()
2200 static int si_populate_smc_tdp_limits_2(struct radeon_device *rdev, in si_populate_smc_tdp_limits_2()
2232 static u16 si_calculate_power_efficiency_ratio(struct radeon_device *rdev, in si_calculate_power_efficiency_ratio()
2254 static bool si_should_disable_uvd_powertune(struct radeon_device *rdev, in si_should_disable_uvd_powertune()
2266 static int si_populate_power_containment_values(struct radeon_device *rdev, in si_populate_power_containment_values()
2360 static int si_populate_sq_ramping_values(struct radeon_device *rdev, in si_populate_sq_ramping_values()
2417 static int si_enable_power_containment(struct radeon_device *rdev, in si_enable_power_containment()
2447 static int si_initialize_smc_dte_tables(struct radeon_device *rdev) in si_initialize_smc_dte_tables()
2512 static int si_get_cac_std_voltage_max_min(struct radeon_device *rdev, in si_get_cac_std_voltage_max_min()
2557 static int si_init_dte_leakage_table(struct radeon_device *rdev, in si_init_dte_leakage_table()
2597 static int si_init_simplified_leakage_table(struct radeon_device *rdev, in si_init_simplified_leakage_table()
2632 static int si_initialize_smc_cac_tables(struct radeon_device *rdev) in si_initialize_smc_cac_tables()
2716 static int si_program_cac_config_registers(struct radeon_device *rdev, in si_program_cac_config_registers()
2755 static int si_initialize_hardware_cac_manager(struct radeon_device *rdev) in si_initialize_hardware_cac_manager()
2778 static int si_enable_smc_cac(struct radeon_device *rdev, in si_enable_smc_cac()
2825 static int si_init_smc_spll_table(struct radeon_device *rdev) in si_init_smc_spll_table()
2896 static u16 si_get_lower_of_leakage_and_vce_voltage(struct radeon_device *rdev, in si_get_lower_of_leakage_and_vce_voltage()
2914 static int si_get_vce_clock_voltage(struct radeon_device *rdev, in si_get_vce_clock_voltage()
2946 static void si_apply_state_adjust_rules(struct radeon_device *rdev, in si_apply_state_adjust_rules()
3175 static int si_write_smc_soft_register(struct radeon_device *rdev, in si_write_smc_soft_register()
3185 static bool si_is_special_1gb_platform(struct radeon_device *rdev) in si_is_special_1gb_platform()
3213 static void si_get_leakage_vddc(struct radeon_device *rdev) in si_get_leakage_vddc()
3232 static int si_get_leakage_voltage_from_leakage_index(struct radeon_device *rdev, in si_get_leakage_voltage_from_leakage_index()
3259 static void si_set_dpm_event_sources(struct radeon_device *rdev, u32 sources) in si_set_dpm_event_sources()
3294 static void si_enable_auto_throttle_source(struct radeon_device *rdev, in si_enable_auto_throttle_source()
3313 static void si_start_dpm(struct radeon_device *rdev) in si_start_dpm()
3318 static void si_stop_dpm(struct radeon_device *rdev) in si_stop_dpm()
3323 static void si_enable_sclk_control(struct radeon_device *rdev, bool enable) in si_enable_sclk_control()
3365 static PPSMC_Result si_send_msg_to_smc_with_parameter(struct radeon_device *rdev, in si_send_msg_to_smc_with_parameter()
3372 static int si_restrict_performance_levels_before_switch(struct radeon_device *rdev) in si_restrict_performance_levels_before_switch()
3381 int si_dpm_force_performance_level(struct radeon_device *rdev, in si_dpm_force_performance_level()
3421 static int si_set_sw_state(struct radeon_device *rdev) in si_set_sw_state()
3427 static int si_halt_smc(struct radeon_device *rdev) in si_halt_smc()
3436 static int si_resume_smc(struct radeon_device *rdev) in si_resume_smc()
3445 static void si_dpm_start_smc(struct radeon_device *rdev) in si_dpm_start_smc()
3452 static void si_dpm_stop_smc(struct radeon_device *rdev) in si_dpm_stop_smc()
3458 static int si_process_firmware_header(struct radeon_device *rdev) in si_process_firmware_header()
3548 static void si_read_clock_registers(struct radeon_device *rdev) in si_read_clock_registers()
3569 static void si_enable_thermal_protection(struct radeon_device *rdev, in si_enable_thermal_protection()
3578 static void si_enable_acpi_power_management(struct radeon_device *rdev) in si_enable_acpi_power_management()
3611 static int si_notify_smc_display_change(struct radeon_device *rdev, in si_notify_smc_display_change()
3621 static void si_program_response_times(struct radeon_device *rdev) in si_program_response_times()
3649 static void si_program_ds_registers(struct radeon_device *rdev) in si_program_ds_registers()
3661 static void si_program_display_gap(struct radeon_device *rdev) in si_program_display_gap()
3706 static void si_enable_spread_spectrum(struct radeon_device *rdev, bool enable) in si_enable_spread_spectrum()
3719 static void si_setup_bsp(struct radeon_device *rdev) in si_setup_bsp()
3743 static void si_program_git(struct radeon_device *rdev) in si_program_git()
3748 static void si_program_tp(struct radeon_device *rdev) in si_program_tp()
3768 static void si_program_tpp(struct radeon_device *rdev) in si_program_tpp()
3773 static void si_program_sstp(struct radeon_device *rdev) in si_program_sstp()
3778 static void si_enable_display_gap(struct radeon_device *rdev) in si_enable_display_gap()
3792 static void si_program_vc(struct radeon_device *rdev) in si_program_vc()
3799 static void si_clear_vc(struct radeon_device *rdev) in si_clear_vc()
3839 static u8 si_get_strobe_mode_settings(struct radeon_device *rdev, u32 mclk) in si_get_strobe_mode_settings()
3859 static int si_upload_firmware(struct radeon_device *rdev) in si_upload_firmware()
3872 static bool si_validate_phase_shedding_tables(struct radeon_device *rdev, in si_validate_phase_shedding_tables()
3899 void si_trim_voltage_table_to_fit_state_table(struct radeon_device *rdev, in si_trim_voltage_table_to_fit_state_table()
3916 static int si_get_svi2_voltage_table(struct radeon_device *rdev, in si_get_svi2_voltage_table()
3937 static int si_construct_voltage_tables(struct radeon_device *rdev) in si_construct_voltage_tables()
4017 static void si_populate_smc_voltage_table(struct radeon_device *rdev, in si_populate_smc_voltage_table()
4027 static int si_populate_smc_voltage_tables(struct radeon_device *rdev, in si_populate_smc_voltage_tables()
4090 static int si_populate_voltage_value(struct radeon_device *rdev, in si_populate_voltage_value()
4110 static int si_populate_mvdd_value(struct radeon_device *rdev, u32 mclk, in si_populate_mvdd_value()
4127 static int si_get_std_voltage_value(struct radeon_device *rdev, in si_get_std_voltage_value()
4178 static int si_populate_std_voltage_value(struct radeon_device *rdev, in si_populate_std_voltage_value()
4188 static int si_populate_phase_shedding_value(struct radeon_device *rdev, in si_populate_phase_shedding_value()
4207 static int si_init_arb_table_index(struct radeon_device *rdev) in si_init_arb_table_index()
4223 static int si_initial_switch_from_arb_f0_to_f1(struct radeon_device *rdev) in si_initial_switch_from_arb_f0_to_f1()
4228 static int si_reset_to_default(struct radeon_device *rdev) in si_reset_to_default()
4234 static int si_force_switch_to_arb_f0(struct radeon_device *rdev) in si_force_switch_to_arb_f0()
4253 static u32 si_calculate_memory_refresh_rate(struct radeon_device *rdev, in si_calculate_memory_refresh_rate()
4272 static int si_populate_memory_timing_parameters(struct radeon_device *rdev, in si_populate_memory_timing_parameters()
4298 static int si_do_program_memory_timing_parameters(struct radeon_device *rdev, in si_do_program_memory_timing_parameters()
4325 static int si_program_memory_timing_parameters(struct radeon_device *rdev, in si_program_memory_timing_parameters()
4332 static int si_populate_initial_mvdd_value(struct radeon_device *rdev, in si_populate_initial_mvdd_value()
4345 static int si_populate_smc_initial_state(struct radeon_device *rdev, in si_populate_smc_initial_state()
4468 static int si_populate_smc_acpi_state(struct radeon_device *rdev, in si_populate_smc_acpi_state()
4609 static int si_populate_ulv_state(struct radeon_device *rdev, in si_populate_ulv_state()
4640 static int si_program_ulv_memory_timing_parameters(struct radeon_device *rdev) in si_program_ulv_memory_timing_parameters()
4666 static void si_get_mvdd_configuration(struct radeon_device *rdev) in si_get_mvdd_configuration()
4673 static int si_init_smc_table(struct radeon_device *rdev) in si_init_smc_table()
4763 static int si_calculate_sclk_params(struct radeon_device *rdev, in si_calculate_sclk_params()
4833 static int si_populate_sclk_value(struct radeon_device *rdev, in si_populate_sclk_value()
4854 static int si_populate_mclk_value(struct radeon_device *rdev, in si_populate_mclk_value()
4943 static void si_populate_smc_sp(struct radeon_device *rdev, in si_populate_smc_sp()
4958 static int si_convert_power_level_to_smc(struct radeon_device *rdev, in si_convert_power_level_to_smc()
5067 static int si_populate_smc_t(struct radeon_device *rdev, in si_populate_smc_t()
5116 static int si_disable_ulv(struct radeon_device *rdev) in si_disable_ulv()
5128 static bool si_is_state_ulv_compatible(struct radeon_device *rdev, in si_is_state_ulv_compatible()
5156 static int si_set_power_state_conditionally_enable_ulv(struct radeon_device *rdev, in si_set_power_state_conditionally_enable_ulv()
5170 static int si_convert_power_state_to_smc(struct radeon_device *rdev, in si_convert_power_state_to_smc()
5250 static int si_upload_sw_state(struct radeon_device *rdev, in si_upload_sw_state()
5274 static int si_upload_ulv_state(struct radeon_device *rdev) in si_upload_ulv_state()
5297 static int si_upload_smc_data(struct radeon_device *rdev) in si_upload_smc_data()
5336 static int si_set_mc_special_registers(struct radeon_device *rdev, in si_set_mc_special_registers()
5513 static int si_initialize_mc_reg_table(struct radeon_device *rdev) in si_initialize_mc_reg_table()
5563 static void si_populate_mc_reg_addresses(struct radeon_device *rdev, in si_populate_mc_reg_addresses()
5597 static void si_convert_mc_reg_table_entry_to_smc(struct radeon_device *rdev, in si_convert_mc_reg_table_entry_to_smc()
5617 static void si_convert_mc_reg_table_to_smc(struct radeon_device *rdev, in si_convert_mc_reg_table_to_smc()
5631 static int si_populate_mc_reg_table(struct radeon_device *rdev, in si_populate_mc_reg_table()
5669 static int si_upload_mc_reg_table(struct radeon_device *rdev, in si_upload_mc_reg_table()
5691 static void si_enable_voltage_control(struct radeon_device *rdev, bool enable) in si_enable_voltage_control()
5699 static enum radeon_pcie_gen si_get_maximum_link_speed(struct radeon_device *rdev, in si_get_maximum_link_speed()
5714 static u16 si_get_current_pcie_speed(struct radeon_device *rdev) in si_get_current_pcie_speed()
5724 static void si_request_link_speed_change_before_state_change(struct radeon_device *rdev, in si_request_link_speed_change_before_state_change()
5764 static void si_notify_link_speed_change_after_state_change(struct radeon_device *rdev, in si_notify_link_speed_change_after_state_change()
5809 static void si_set_max_cu_value(struct radeon_device *rdev) in si_set_max_cu_value()
5850 static int si_patch_single_dependency_table_based_on_leakage(struct radeon_device *rdev, in si_patch_single_dependency_table_based_on_leakage()
5881 static int si_patch_dependency_tables_based_on_leakage(struct radeon_device *rdev) in si_patch_dependency_tables_based_on_leakage()
5894 static void si_set_pcie_lane_width_in_smc(struct radeon_device *rdev, in si_set_pcie_lane_width_in_smc()
5911 static void si_set_vce_clock(struct radeon_device *rdev, in si_set_vce_clock()
5926 void si_dpm_setup_asic(struct radeon_device *rdev) in si_dpm_setup_asic()
5938 static int si_thermal_enable_alert(struct radeon_device *rdev, in si_thermal_enable_alert()
5963 static int si_thermal_set_temperature_range(struct radeon_device *rdev, in si_thermal_set_temperature_range()
5988 static void si_fan_ctrl_set_static_mode(struct radeon_device *rdev, u32 mode) in si_fan_ctrl_set_static_mode()
6010 static int si_thermal_setup_fan_table(struct radeon_device *rdev) in si_thermal_setup_fan_table()
6087 static int si_fan_ctrl_start_smc_fan_control(struct radeon_device *rdev) in si_fan_ctrl_start_smc_fan_control()
6101 static int si_fan_ctrl_stop_smc_fan_control(struct radeon_device *rdev) in si_fan_ctrl_stop_smc_fan_control()
6116 int si_fan_ctrl_get_fan_speed_percent(struct radeon_device *rdev, in si_fan_ctrl_get_fan_speed_percent()
6141 int si_fan_ctrl_set_fan_speed_percent(struct radeon_device *rdev, in si_fan_ctrl_set_fan_speed_percent()
6174 void si_fan_ctrl_set_mode(struct radeon_device *rdev, u32 mode) in si_fan_ctrl_set_mode()
6190 u32 si_fan_ctrl_get_mode(struct radeon_device *rdev) in si_fan_ctrl_get_mode()
6254 static void si_fan_ctrl_set_default_mode(struct radeon_device *rdev) in si_fan_ctrl_set_default_mode()
6271 static void si_thermal_start_smc_fan_control(struct radeon_device *rdev) in si_thermal_start_smc_fan_control()
6279 static void si_thermal_initialize(struct radeon_device *rdev) in si_thermal_initialize()
6294 static int si_thermal_start_thermal_controller(struct radeon_device *rdev) in si_thermal_start_thermal_controller()
6321 static void si_thermal_stop_thermal_controller(struct radeon_device *rdev) in si_thermal_stop_thermal_controller()
6329 int si_dpm_enable(struct radeon_device *rdev) in si_dpm_enable()
6448 static int si_set_temperature_range(struct radeon_device *rdev) in si_set_temperature_range()
6465 int si_dpm_late_enable(struct radeon_device *rdev) in si_dpm_late_enable()
6476 void si_dpm_disable(struct radeon_device *rdev) in si_dpm_disable()
6500 int si_dpm_pre_set_power_state(struct radeon_device *rdev) in si_dpm_pre_set_power_state()
6513 static int si_power_control_set_level(struct radeon_device *rdev) in si_power_control_set_level()
6539 int si_dpm_set_power_state(struct radeon_device *rdev) in si_dpm_set_power_state()
6642 void si_dpm_post_set_power_state(struct radeon_device *rdev) in si_dpm_post_set_power_state()
6659 void si_dpm_display_configuration_changed(struct radeon_device *rdev) in si_dpm_display_configuration_changed()
6686 static void si_parse_pplib_non_clock_info(struct radeon_device *rdev, in si_parse_pplib_non_clock_info()
6712 static void si_parse_pplib_clock_info(struct radeon_device *rdev, in si_parse_pplib_clock_info()
6788 static int si_parse_power_table(struct radeon_device *rdev) in si_parse_power_table()
6880 int si_dpm_init(struct radeon_device *rdev) in si_dpm_init()
7059 void si_dpm_fini(struct radeon_device *rdev) in si_dpm_fini()
7072 void si_dpm_debugfs_print_current_performance_level(struct radeon_device *rdev, in si_dpm_debugfs_print_current_performance_level()
7093 u32 si_dpm_get_current_sclk(struct radeon_device *rdev) in si_dpm_get_current_sclk()
7111 u32 si_dpm_get_current_mclk(struct radeon_device *rdev) in si_dpm_get_current_mclk()