Lines Matching full:sclk

273 	a_n = (int)state->medium.sclk * pi->lmp +  in rv770_populate_smc_t()
274 (int)state->low.sclk * (R600_AH_DFLT - pi->rlp); in rv770_populate_smc_t()
275 a_d = (int)state->low.sclk * (100 - (int)pi->rlp) + in rv770_populate_smc_t()
276 (int)state->medium.sclk * pi->lmp; in rv770_populate_smc_t()
281 a_n = (int)state->high.sclk * pi->lhp + (int)state->medium.sclk * in rv770_populate_smc_t()
283 a_d = (int)state->medium.sclk * (100 - (int)pi->rmp) + in rv770_populate_smc_t()
284 (int)state->high.sclk * pi->lhp; in rv770_populate_smc_t()
487 RV770_SMC_SCLK_VALUE *sclk) in rv770_populate_sclk_value() argument
557 sclk->sclk_value = cpu_to_be32(engine_clock); in rv770_populate_sclk_value()
558 sclk->vCG_SPLL_FUNC_CNTL = cpu_to_be32(spll_func_cntl); in rv770_populate_sclk_value()
559 sclk->vCG_SPLL_FUNC_CNTL_2 = cpu_to_be32(spll_func_cntl_2); in rv770_populate_sclk_value()
560 sclk->vCG_SPLL_FUNC_CNTL_3 = cpu_to_be32(spll_func_cntl_3); in rv770_populate_sclk_value()
561 sclk->vCG_SPLL_SPREAD_SPECTRUM = cpu_to_be32(cg_spll_spread_spectrum); in rv770_populate_sclk_value()
562 sclk->vCG_SPLL_SPREAD_SPECTRUM_2 = cpu_to_be32(cg_spll_spread_spectrum_2); in rv770_populate_sclk_value()
630 ret = rv740_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
631 &level->sclk); in rv770_convert_power_level_to_smc()
633 ret = rv730_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
634 &level->sclk); in rv770_convert_power_level_to_smc()
636 ret = rv770_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
637 &level->sclk); in rv770_convert_power_level_to_smc()
654 ret = rv740_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
657 ret = rv730_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
660 ret = rv770_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
749 if (state->high.sclk < (state->low.sclk * 0xFF / 0x40)) in rv770_program_memory_timing_parameters()
750 high_clock = state->high.sclk; in rv770_program_memory_timing_parameters()
752 high_clock = (state->low.sclk * 0xFF / 0x40); in rv770_program_memory_timing_parameters()
759 STATE1(64 * high_clock / state->low.sclk) | in rv770_program_memory_timing_parameters()
760 STATE2(64 * high_clock / state->medium.sclk) | in rv770_program_memory_timing_parameters()
761 STATE3(64 * high_clock / state->high.sclk); in rv770_program_memory_timing_parameters()
766 POWERMODE1(rv770_calculate_memory_refresh_rate(rdev, state->low.sclk)) | in rv770_program_memory_timing_parameters()
767 POWERMODE2(rv770_calculate_memory_refresh_rate(rdev, state->medium.sclk)) | in rv770_program_memory_timing_parameters()
768 POWERMODE3(rv770_calculate_memory_refresh_rate(rdev, state->high.sclk)); in rv770_program_memory_timing_parameters()
993 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL = cpu_to_be32(spll_func_cntl); in rv770_populate_smc_acpi_state()
994 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_2 = cpu_to_be32(spll_func_cntl_2); in rv770_populate_smc_acpi_state()
995 table->ACPIState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_3 = cpu_to_be32(spll_func_cntl_3); in rv770_populate_smc_acpi_state()
997 table->ACPIState.levels[0].sclk.sclk_value = 0; in rv770_populate_smc_acpi_state()
1053 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL = in rv770_populate_smc_initial_state()
1055 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_2 = in rv770_populate_smc_initial_state()
1057 table->initialState.levels[0].sclk.vCG_SPLL_FUNC_CNTL_3 = in rv770_populate_smc_initial_state()
1059 table->initialState.levels[0].sclk.vCG_SPLL_SPREAD_SPECTRUM = in rv770_populate_smc_initial_state()
1061 table->initialState.levels[0].sclk.vCG_SPLL_SPREAD_SPECTRUM_2 = in rv770_populate_smc_initial_state()
1064 table->initialState.levels[0].sclk.sclk_value = in rv770_populate_smc_initial_state()
1065 cpu_to_be32(initial_state->low.sclk); in rv770_populate_smc_initial_state()
1173 pi->boot_sclk = boot_state->low.sclk; in rv770_init_smc_table()
1444 if (new_state->high.sclk >= current_state->high.sclk) in rv770_set_uvd_clock_before_set_eng_clock()
1461 if (new_state->high.sclk < current_state->high.sclk) in rv770_set_uvd_clock_after_set_eng_clock()
2182 u32 sclk, mclk; in rv7xx_parse_pplib_clock_info() local
2199 sclk = le16_to_cpu(clock_info->evergreen.usEngineClockLow); in rv7xx_parse_pplib_clock_info()
2200 sclk |= clock_info->evergreen.ucEngineClockHigh << 16; in rv7xx_parse_pplib_clock_info()
2208 sclk = le16_to_cpu(clock_info->r600.usEngineClockLow); in rv7xx_parse_pplib_clock_info()
2209 sclk |= clock_info->r600.ucEngineClockHigh << 16; in rv7xx_parse_pplib_clock_info()
2218 pl->sclk = sclk; in rv7xx_parse_pplib_clock_info()
2254 pl->sclk = rdev->clock.default_sclk; in rv7xx_parse_pplib_clock_info()
2261 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.sclk = pl->sclk; in rv7xx_parse_pplib_clock_info()
2445 printk("\t\tpower level 0 sclk: %u mclk: %u vddc: %u vddci: %u\n", in rv770_dpm_print_power_state()
2446 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2448 printk("\t\tpower level 1 sclk: %u mclk: %u vddc: %u vddci: %u\n", in rv770_dpm_print_power_state()
2449 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2451 printk("\t\tpower level 2 sclk: %u mclk: %u vddc: %u vddci: %u\n", in rv770_dpm_print_power_state()
2452 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2455 printk("\t\tpower level 0 sclk: %u mclk: %u vddc: %u\n", in rv770_dpm_print_power_state()
2456 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2458 printk("\t\tpower level 1 sclk: %u mclk: %u vddc: %u\n", in rv770_dpm_print_power_state()
2459 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2461 printk("\t\tpower level 2 sclk: %u mclk: %u vddc: %u\n", in rv770_dpm_print_power_state()
2462 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2488 seq_printf(m, "power level %d sclk: %u mclk: %u vddc: %u vddci: %u\n", in rv770_dpm_debugfs_print_current_performance_level()
2489 current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_debugfs_print_current_performance_level()
2491 seq_printf(m, "power level %d sclk: %u mclk: %u vddc: %u\n", in rv770_dpm_debugfs_print_current_performance_level()
2492 current_index, pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_debugfs_print_current_performance_level()
2515 return pl->sclk; in rv770_dpm_get_current_sclk()
2557 return requested_state->low.sclk; in rv770_dpm_get_sclk()
2559 return requested_state->high.sclk; in rv770_dpm_get_sclk()