Lines Matching refs:sclk
1242 u32 *sclk, u32 *mclk) in btc_skip_blacklist_clocks() argument
1246 if ((sclk == NULL) || (mclk == NULL)) in btc_skip_blacklist_clocks()
1252 if ((btc_blacklist_clocks[i].sclk == *sclk) && in btc_skip_blacklist_clocks()
1259 *sclk = btc_get_valid_sclk(rdev, max_sclk, *sclk + 1); in btc_skip_blacklist_clocks()
1261 if (*sclk < max_sclk) in btc_skip_blacklist_clocks()
1262 btc_skip_blacklist_clocks(rdev, max_sclk, max_mclk, sclk, mclk); in btc_skip_blacklist_clocks()
1272 if ((pl->mclk == 0) || (pl->sclk == 0)) in btc_adjust_clock_combinations()
1275 if (pl->mclk == pl->sclk) in btc_adjust_clock_combinations()
1278 if (pl->mclk > pl->sclk) { in btc_adjust_clock_combinations()
1279 if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > rdev->pm.dpm.dyn_state.mclk_sclk_ratio) in btc_adjust_clock_combinations()
1280 pl->sclk = btc_get_valid_sclk(rdev, in btc_adjust_clock_combinations()
1281 max_limits->sclk, in btc_adjust_clock_combinations()
1286 if ((pl->sclk - pl->mclk) > rdev->pm.dpm.dyn_state.sclk_mclk_delta) in btc_adjust_clock_combinations()
1289 pl->sclk - in btc_adjust_clock_combinations()
1815 ulv_pl->sclk, in btc_set_ulv_dram_timing()
1818 val = rv770_calculate_memory_refresh_rate(rdev, ulv_pl->sclk); in btc_set_ulv_dram_timing()
1821 val = cypress_calculate_burst_time(rdev, ulv_pl->sclk, ulv_pl->mclk); in btc_set_ulv_dram_timing()
2099 u32 mclk, sclk; in btc_apply_state_adjust_rules() local
2116 if (ps->high.sclk > max_limits->sclk) in btc_apply_state_adjust_rules()
2117 ps->high.sclk = max_limits->sclk; in btc_apply_state_adjust_rules()
2125 if (ps->medium.sclk > max_limits->sclk) in btc_apply_state_adjust_rules()
2126 ps->medium.sclk = max_limits->sclk; in btc_apply_state_adjust_rules()
2134 if (ps->low.sclk > max_limits->sclk) in btc_apply_state_adjust_rules()
2135 ps->low.sclk = max_limits->sclk; in btc_apply_state_adjust_rules()
2145 sclk = ps->low.sclk; in btc_apply_state_adjust_rules()
2150 sclk = ps->low.sclk; in btc_apply_state_adjust_rules()
2157 ps->low.sclk = sclk; in btc_apply_state_adjust_rules()
2162 btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, in btc_apply_state_adjust_rules()
2163 &ps->low.sclk, &ps->low.mclk); in btc_apply_state_adjust_rules()
2166 if (ps->medium.sclk < ps->low.sclk) in btc_apply_state_adjust_rules()
2167 ps->medium.sclk = ps->low.sclk; in btc_apply_state_adjust_rules()
2170 if (ps->high.sclk < ps->medium.sclk) in btc_apply_state_adjust_rules()
2171 ps->high.sclk = ps->medium.sclk; in btc_apply_state_adjust_rules()
2198 btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, in btc_apply_state_adjust_rules()
2199 &ps->medium.sclk, &ps->medium.mclk); in btc_apply_state_adjust_rules()
2200 btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, in btc_apply_state_adjust_rules()
2201 &ps->high.sclk, &ps->high.mclk); in btc_apply_state_adjust_rules()
2208 ps->low.sclk, max_limits->vddc, &ps->low.vddc); in btc_apply_state_adjust_rules()
2217 ps->medium.sclk, max_limits->vddc, &ps->medium.vddc); in btc_apply_state_adjust_rules()
2226 ps->high.sclk, max_limits->vddc, &ps->high.vddc); in btc_apply_state_adjust_rules()
2712 if ((rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.sclk == 0) || in btc_dpm_init()
2755 current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); in btc_dpm_debugfs_print_current_performance_level()
2778 return pl->sclk; in btc_dpm_get_current_sclk()
2811 return requested_state->low.sclk; in btc_dpm_get_sclk()
2813 return requested_state->high.sclk; in btc_dpm_get_sclk()