Lines Matching full:sclk
377 u32 index, u32 sclk) in kv_set_divider_value() argument
384 sclk, false, ÷rs); in kv_set_divider_value()
389 pi->graphics_level[index].SclkFrequency = cpu_to_be32(sclk); in kv_set_divider_value()
566 if (table->entries[i].clk == pi->boot_pl.sclk) in kv_program_bootup_state()
580 if (table->entries[i].sclk_frequency == pi->boot_pl.sclk) in kv_program_bootup_state()
1537 if ((table->entries[i].clk >= new_ps->levels[0].sclk) || in kv_set_valid_clock_range()
1545 if (table->entries[i].clk <= new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1551 if ((new_ps->levels[0].sclk - table->entries[pi->highest_valid].clk) > in kv_set_valid_clock_range()
1552 (table->entries[pi->lowest_valid].clk - new_ps->levels[new_ps->num_levels - 1].sclk)) in kv_set_valid_clock_range()
1562 if (table->entries[i].sclk_frequency >= new_ps->levels[0].sclk || in kv_set_valid_clock_range()
1571 new_ps->levels[new_ps->num_levels - 1].sclk) in kv_set_valid_clock_range()
1577 if ((new_ps->levels[0].sclk - in kv_set_valid_clock_range()
1580 new_ps->levels[new_ps->num_levels -1].sclk)) in kv_set_valid_clock_range()
1771 table->sclk = in kv_construct_max_power_limits_table()
1827 pi->boot_pl.sclk = pi->sys_info.bootup_sclk; in kv_construct_boot_state()
1878 u32 sclk, u32 min_sclk_in_sr) in kv_get_sleep_divider_id_from_clock() argument
1886 if (sclk < min) in kv_get_sleep_divider_id_from_clock()
1893 temp = sclk / sumo_get_sleep_divider_from_id(i); in kv_get_sleep_divider_id_from_clock()
1942 u32 sclk, mclk = 0; in kv_apply_state_adjust_rules() local
1960 sclk = min_sclk; in kv_apply_state_adjust_rules()
1963 stable_p_state_sclk = (max_limits->sclk * 75) / 100; in kv_apply_state_adjust_rules()
1975 sclk = stable_p_state_sclk; in kv_apply_state_adjust_rules()
1979 if (sclk < rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk) in kv_apply_state_adjust_rules()
1980 sclk = rdev->pm.dpm.vce_states[rdev->pm.dpm.vce_level].sclk; in kv_apply_state_adjust_rules()
1986 if (ps->levels[i].sclk < sclk) in kv_apply_state_adjust_rules()
1987 ps->levels[i].sclk = sclk; in kv_apply_state_adjust_rules()
1996 ps->levels[i].sclk = table->entries[limit].clk; in kv_apply_state_adjust_rules()
2008 ps->levels[i].sclk = table->entries[limit].sclk_frequency; in kv_apply_state_adjust_rules()
2015 ps->levels[i].sclk = stable_p_state_sclk; in kv_apply_state_adjust_rules()
2414 u32 sclk; in kv_parse_pplib_clock_info() local
2416 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_pplib_clock_info()
2417 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in kv_parse_pplib_clock_info()
2418 pl->sclk = sclk; in kv_parse_pplib_clock_info()
2506 u32 sclk; in kv_parse_power_table() local
2510 sclk = le16_to_cpu(clock_info->sumo.usEngineClockLow); in kv_parse_power_table()
2511 sclk |= clock_info->sumo.ucEngineClockHigh << 16; in kv_parse_power_table()
2512 rdev->pm.dpm.vce_states[i].sclk = sclk; in kv_parse_power_table()
2605 u32 sclk, tmp; in kv_dpm_debugfs_print_current_performance_level() local
2611 sclk = be32_to_cpu(pi->graphics_level[current_index].SclkFrequency); in kv_dpm_debugfs_print_current_performance_level()
2617 seq_printf(m, "power level %d sclk: %u vddc: %u\n", in kv_dpm_debugfs_print_current_performance_level()
2618 current_index, sclk, vddc); in kv_dpm_debugfs_print_current_performance_level()
2628 u32 sclk; in kv_dpm_get_current_sclk() local
2633 sclk = be32_to_cpu(pi->graphics_level[current_index].SclkFrequency); in kv_dpm_get_current_sclk()
2634 return sclk; in kv_dpm_get_current_sclk()
2656 printk("\t\tpower level %d sclk: %u vddc: %u\n", in kv_dpm_print_power_state()
2657 i, pl->sclk, in kv_dpm_print_power_state()
2686 return requested_state->levels[0].sclk; in kv_dpm_get_sclk()
2688 return requested_state->levels[requested_state->num_levels - 1].sclk; in kv_dpm_get_sclk()