• Home
  • Raw
  • Download

Lines Matching refs:mclk

1244 			       u32 *sclk, u32 *mclk)  in btc_skip_blacklist_clocks()  argument
1248 if ((sclk == NULL) || (mclk == NULL)) in btc_skip_blacklist_clocks()
1255 (btc_blacklist_clocks[i].mclk == *mclk)) in btc_skip_blacklist_clocks()
1264 btc_skip_blacklist_clocks(rdev, max_sclk, max_mclk, sclk, mclk); in btc_skip_blacklist_clocks()
1274 if ((pl->mclk == 0) || (pl->sclk == 0)) in btc_adjust_clock_combinations()
1277 if (pl->mclk == pl->sclk) in btc_adjust_clock_combinations()
1280 if (pl->mclk > pl->sclk) { in btc_adjust_clock_combinations()
1281 if (((pl->mclk + (pl->sclk - 1)) / pl->sclk) > rdev->pm.dpm.dyn_state.mclk_sclk_ratio) in btc_adjust_clock_combinations()
1284 (pl->mclk + in btc_adjust_clock_combinations()
1288 if ((pl->sclk - pl->mclk) > rdev->pm.dpm.dyn_state.sclk_mclk_delta) in btc_adjust_clock_combinations()
1289 pl->mclk = btc_get_valid_mclk(rdev, in btc_adjust_clock_combinations()
1290 max_limits->mclk, in btc_adjust_clock_combinations()
1798 if (state->low.mclk != ulv_pl->mclk) in btc_is_state_ulv_compatible()
1818 ulv_pl->mclk); in btc_set_ulv_dram_timing()
1823 val = cypress_calculate_burst_time(rdev, ulv_pl->sclk, ulv_pl->mclk); in btc_set_ulv_dram_timing()
2101 u32 mclk, sclk; in btc_apply_state_adjust_rules() local
2116 if (ps->high.mclk > max_limits->mclk) in btc_apply_state_adjust_rules()
2117 ps->high.mclk = max_limits->mclk; in btc_apply_state_adjust_rules()
2125 if (ps->medium.mclk > max_limits->mclk) in btc_apply_state_adjust_rules()
2126 ps->medium.mclk = max_limits->mclk; in btc_apply_state_adjust_rules()
2134 if (ps->low.mclk > max_limits->mclk) in btc_apply_state_adjust_rules()
2135 ps->low.mclk = max_limits->mclk; in btc_apply_state_adjust_rules()
2148 mclk = ps->high.mclk; in btc_apply_state_adjust_rules()
2153 mclk = ps->low.mclk; in btc_apply_state_adjust_rules()
2160 ps->low.mclk = mclk; in btc_apply_state_adjust_rules()
2164 btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, in btc_apply_state_adjust_rules()
2165 &ps->low.sclk, &ps->low.mclk); in btc_apply_state_adjust_rules()
2178 mclk = ps->low.mclk; in btc_apply_state_adjust_rules()
2179 if (mclk < ps->medium.mclk) in btc_apply_state_adjust_rules()
2180 mclk = ps->medium.mclk; in btc_apply_state_adjust_rules()
2181 if (mclk < ps->high.mclk) in btc_apply_state_adjust_rules()
2182 mclk = ps->high.mclk; in btc_apply_state_adjust_rules()
2183 ps->low.mclk = mclk; in btc_apply_state_adjust_rules()
2185 ps->medium.mclk = mclk; in btc_apply_state_adjust_rules()
2187 ps->high.mclk = mclk; in btc_apply_state_adjust_rules()
2190 if (ps->medium.mclk < ps->low.mclk) in btc_apply_state_adjust_rules()
2191 ps->medium.mclk = ps->low.mclk; in btc_apply_state_adjust_rules()
2194 if (ps->high.mclk < ps->medium.mclk) in btc_apply_state_adjust_rules()
2195 ps->high.mclk = 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->medium.sclk, &ps->medium.mclk); in btc_apply_state_adjust_rules()
2202 btc_skip_blacklist_clocks(rdev, max_limits->sclk, max_limits->mclk, in btc_apply_state_adjust_rules()
2203 &ps->high.sclk, &ps->high.mclk); in btc_apply_state_adjust_rules()
2212 ps->low.mclk, max_limits->vddci, &ps->low.vddci); in btc_apply_state_adjust_rules()
2214 ps->low.mclk, max_limits->vddc, &ps->low.vddc); in btc_apply_state_adjust_rules()
2221 ps->medium.mclk, max_limits->vddci, &ps->medium.vddci); in btc_apply_state_adjust_rules()
2223 ps->medium.mclk, max_limits->vddc, &ps->medium.vddc); in btc_apply_state_adjust_rules()
2230 ps->high.mclk, max_limits->vddci, &ps->high.vddci); in btc_apply_state_adjust_rules()
2232 ps->high.mclk, max_limits->vddc, &ps->high.vddc); in btc_apply_state_adjust_rules()
2713 (rdev->pm.dpm.dyn_state.max_clock_voltage_on_dc.mclk == 0)) in btc_dpm_init()
2755 current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); in btc_dpm_debugfs_print_current_performance_level()
2801 return pl->mclk; in btc_dpm_get_current_mclk()
2822 return requested_state->low.mclk; in btc_dpm_get_mclk()
2824 return requested_state->high.mclk; in btc_dpm_get_mclk()