Lines Matching refs:levels
847 trinity_program_power_level(rdev, &new_ps->levels[i], i); in trinity_program_power_levels_0_to_n()
967 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock()
968 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_before_set_eng_clock()
981 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock()
982 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_after_set_eng_clock()
1313 ps->levels[0] = pi->boot_pl; in trinity_patch_boot_state()
1336 pi->current_ps.levels[0] = pi->boot_pl; in trinity_construct_boot_state()
1391 current_vddc = current_ps->levels[current_index].vddc_index; in trinity_patch_thermal_state()
1392 current_sclk = current_ps->levels[current_index].sclk; in trinity_patch_thermal_state()
1398 ps->levels[0].vddc_index = current_vddc; in trinity_patch_thermal_state()
1400 if (ps->levels[0].sclk > current_sclk) in trinity_patch_thermal_state()
1401 ps->levels[0].sclk = current_sclk; in trinity_patch_thermal_state()
1403 ps->levels[0].ds_divider_index = in trinity_patch_thermal_state()
1404 trinity_get_sleep_divider_id_from_clock(rdev, ps->levels[0].sclk, sclk_in_sr); in trinity_patch_thermal_state()
1405 ps->levels[0].ss_divider_index = ps->levels[0].ds_divider_index; in trinity_patch_thermal_state()
1406 ps->levels[0].allow_gnb_slow = 1; in trinity_patch_thermal_state()
1407 ps->levels[0].force_nbp_state = 0; in trinity_patch_thermal_state()
1408 ps->levels[0].display_wm = 0; in trinity_patch_thermal_state()
1409 ps->levels[0].vce_wm = in trinity_patch_thermal_state()
1410 trinity_calculate_vce_wm(rdev, ps->levels[0].sclk); in trinity_patch_thermal_state()
1426 else if (ps->levels[index].sclk < 30000) in trinity_calculate_display_wm()
1508 if (ps->levels[i].vddc_index < min_voltage) in trinity_apply_state_adjust_rules()
1509 ps->levels[i].vddc_index = min_voltage; in trinity_apply_state_adjust_rules()
1511 if (ps->levels[i].sclk < min_sclk) in trinity_apply_state_adjust_rules()
1512 ps->levels[i].sclk = in trinity_apply_state_adjust_rules()
1515 ps->levels[i].ds_divider_index = in trinity_apply_state_adjust_rules()
1516 sumo_get_sleep_divider_id_from_clock(rdev, ps->levels[i].sclk, sclk_in_sr); in trinity_apply_state_adjust_rules()
1518 ps->levels[i].ss_divider_index = ps->levels[i].ds_divider_index; in trinity_apply_state_adjust_rules()
1520 ps->levels[i].allow_gnb_slow = 1; in trinity_apply_state_adjust_rules()
1521 ps->levels[i].force_nbp_state = 0; in trinity_apply_state_adjust_rules()
1522 ps->levels[i].display_wm = in trinity_apply_state_adjust_rules()
1524 ps->levels[i].vce_wm = in trinity_apply_state_adjust_rules()
1525 trinity_calculate_vce_wm(rdev, ps->levels[0].sclk); in trinity_apply_state_adjust_rules()
1548 ps->levels[ps->num_levels - 1].allow_gnb_slow = 0; in trinity_apply_state_adjust_rules()
1647 struct trinity_pl *pl = &ps->levels[index]; in trinity_parse_pplib_clock_info()
1937 struct trinity_pl *pl = &ps->levels[i]; in trinity_dpm_print_power_state()
1959 pl = &ps->levels[current_index]; in trinity_dpm_debugfs_print_current_performance_level()
1980 pl = &ps->levels[current_index]; in trinity_dpm_get_current_sclk()
2011 return requested_state->levels[0].sclk; in trinity_dpm_get_sclk()
2013 return requested_state->levels[requested_state->num_levels - 1].sclk; in trinity_dpm_get_sclk()