Lines Matching full:sclk
540 u32 index, u32 sclk) in trinity_set_divider_value() argument
548 sclk, false, ÷rs); in trinity_set_divider_value()
558 sclk/2, false, ÷rs); in trinity_set_divider_value()
678 trinity_set_divider_value(rdev, index, pl->sclk); in trinity_program_power_level()
925 if (new_ps->levels[new_ps->num_levels - 1].sclk >= in trinity_set_uvd_clock_before_set_eng_clock()
926 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_before_set_eng_clock()
939 if (new_ps->levels[new_ps->num_levels - 1].sclk < in trinity_set_uvd_clock_after_set_eng_clock()
940 current_ps->levels[current_ps->num_levels - 1].sclk) in trinity_set_uvd_clock_after_set_eng_clock()
1290 static u8 trinity_calculate_vce_wm(struct radeon_device *rdev, u32 sclk) in trinity_calculate_vce_wm() argument
1292 if (sclk < 20000) in trinity_calculate_vce_wm()
1301 pi->boot_pl.sclk = pi->sys_info.bootup_sclk; in trinity_construct_boot_state()
1314 u32 sclk, u32 min_sclk_in_sr) in trinity_get_sleep_divider_id_from_clock() argument
1322 if (sclk < min) in trinity_get_sleep_divider_id_from_clock()
1329 temp = sclk / sumo_get_sleep_divider_from_id(i); in trinity_get_sleep_divider_id_from_clock()
1366 current_sclk = current_ps->levels[current_index].sclk; in trinity_patch_thermal_state()
1369 current_sclk = pi->boot_pl.sclk; in trinity_patch_thermal_state()
1374 if (ps->levels[0].sclk > current_sclk) in trinity_patch_thermal_state()
1375 ps->levels[0].sclk = current_sclk; in trinity_patch_thermal_state()
1378 trinity_get_sleep_divider_id_from_clock(rdev, ps->levels[0].sclk, sclk_in_sr); in trinity_patch_thermal_state()
1384 trinity_calculate_vce_wm(rdev, ps->levels[0].sclk); in trinity_patch_thermal_state()
1400 else if (ps->levels[index].sclk < 30000) in trinity_calculate_display_wm()
1522 if (ps->levels[i].sclk < min_sclk) in trinity_apply_state_adjust_rules()
1523 ps->levels[i].sclk = in trinity_apply_state_adjust_rules()
1528 /* sclk */ in trinity_apply_state_adjust_rules()
1529 if (ps->levels[i].sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in trinity_apply_state_adjust_rules()
1530 ps->levels[i].sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in trinity_apply_state_adjust_rules()
1538 sumo_get_sleep_divider_id_from_clock(rdev, ps->levels[i].sclk, sclk_in_sr); in trinity_apply_state_adjust_rules()
1547 trinity_calculate_vce_wm(rdev, ps->levels[0].sclk); in trinity_apply_state_adjust_rules()
1670 u32 sclk; in trinity_parse_pplib_clock_info() local
1672 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in trinity_parse_pplib_clock_info()
1673 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in trinity_parse_pplib_clock_info()
1674 pl->sclk = sclk; in trinity_parse_pplib_clock_info()
1762 u32 sclk; in trinity_parse_power_table() local
1766 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in trinity_parse_power_table()
1767 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in trinity_parse_power_table()
1768 rdev->pm.dpm.vce_states[i].sclk = sclk; in trinity_parse_power_table()
1978 printk("\t\tpower level %d sclk: %u vddc: %u\n", in trinity_dpm_print_power_state()
1979 i, pl->sclk, in trinity_dpm_print_power_state()
2001 seq_printf(m, "power level %d sclk: %u vddc: %u\n", in trinity_dpm_debugfs_print_current_performance_level()
2002 current_index, pl->sclk, in trinity_dpm_debugfs_print_current_performance_level()
2021 return pl->sclk; in trinity_dpm_get_current_sclk()
2052 return requested_state->levels[0].sclk; in trinity_dpm_get_sclk()
2054 return requested_state->levels[requested_state->num_levels - 1].sclk; in trinity_dpm_get_sclk()