Lines Matching refs:ps
244 struct kv_ps *ps = rps->ps_priv; in kv_get_ps() local
246 return ps; in kv_get_ps()
2141 struct kv_ps *ps = kv_get_ps(new_rps); in kv_apply_state_adjust_rules() local
2185 ps->need_dfs_bypass = true; in kv_apply_state_adjust_rules()
2187 for (i = 0; i < ps->num_levels; i++) { in kv_apply_state_adjust_rules()
2188 if (ps->levels[i].sclk < sclk) in kv_apply_state_adjust_rules()
2189 ps->levels[i].sclk = sclk; in kv_apply_state_adjust_rules()
2193 for (i = 0; i < ps->num_levels; i++) { in kv_apply_state_adjust_rules()
2196 kv_convert_8bit_index_to_voltage(rdev, ps->levels[i].vddc_index))) { in kv_apply_state_adjust_rules()
2198 ps->levels[i].sclk = table->entries[limit].clk; in kv_apply_state_adjust_rules()
2205 for (i = 0; i < ps->num_levels; i++) { in kv_apply_state_adjust_rules()
2208 kv_convert_8bit_index_to_voltage(rdev, ps->levels[i].vddc_index))) { in kv_apply_state_adjust_rules()
2210 ps->levels[i].sclk = table->entries[limit].sclk_frequency; in kv_apply_state_adjust_rules()
2216 for (i = 0; i < ps->num_levels; i++) { in kv_apply_state_adjust_rules()
2217 ps->levels[i].sclk = stable_p_state_sclk; in kv_apply_state_adjust_rules()
2231 ps->dpm0_pg_nb_ps_lo = 0x1; in kv_apply_state_adjust_rules()
2232 ps->dpm0_pg_nb_ps_hi = 0x0; in kv_apply_state_adjust_rules()
2233 ps->dpmx_nb_ps_lo = 0x1; in kv_apply_state_adjust_rules()
2234 ps->dpmx_nb_ps_hi = 0x0; in kv_apply_state_adjust_rules()
2236 ps->dpm0_pg_nb_ps_lo = 0x3; in kv_apply_state_adjust_rules()
2237 ps->dpm0_pg_nb_ps_hi = 0x0; in kv_apply_state_adjust_rules()
2238 ps->dpmx_nb_ps_lo = 0x3; in kv_apply_state_adjust_rules()
2239 ps->dpmx_nb_ps_hi = 0x0; in kv_apply_state_adjust_rules()
2245 ps->dpm0_pg_nb_ps_lo = force_high ? 0x2 : 0x3; in kv_apply_state_adjust_rules()
2246 ps->dpm0_pg_nb_ps_hi = 0x2; in kv_apply_state_adjust_rules()
2247 ps->dpmx_nb_ps_lo = force_high ? 0x2 : 0x3; in kv_apply_state_adjust_rules()
2248 ps->dpmx_nb_ps_hi = 0x2; in kv_apply_state_adjust_rules()
2574 struct kv_ps *ps) in kv_patch_boot_state() argument
2578 ps->num_levels = 1; in kv_patch_boot_state()
2579 ps->levels[0] = pi->boot_pl; in kv_patch_boot_state()
2587 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info() local
2603 kv_patch_boot_state(rdev, ps); in kv_parse_pplib_non_clock_info()
2614 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_clock_info() local
2615 struct kv_pl *pl = &ps->levels[index]; in kv_parse_pplib_clock_info()
2623 ps->num_levels = index + 1; in kv_parse_pplib_clock_info()
2646 struct kv_ps *ps; in kv_parse_power_table() local
2663 rdev->pm.dpm.ps = kzalloc(sizeof(struct radeon_ps) * in kv_parse_power_table()
2665 if (!rdev->pm.dpm.ps) in kv_parse_power_table()
2676 ps = kzalloc(sizeof(struct kv_ps), GFP_KERNEL); in kv_parse_power_table()
2677 if (ps == NULL) { in kv_parse_power_table()
2678 kfree(rdev->pm.dpm.ps); in kv_parse_power_table()
2681 rdev->pm.dpm.ps[i].ps_priv = ps; in kv_parse_power_table()
2694 &rdev->pm.dpm.ps[i], k, in kv_parse_power_table()
2698 kv_parse_pplib_non_clock_info(rdev, &rdev->pm.dpm.ps[i], in kv_parse_power_table()
2850 struct kv_ps *ps = kv_get_ps(rps); in kv_dpm_print_power_state() local
2855 for (i = 0; i < ps->num_levels; i++) { in kv_dpm_print_power_state()
2856 struct kv_pl *pl = &ps->levels[i]; in kv_dpm_print_power_state()
2869 kfree(rdev->pm.dpm.ps[i].ps_priv); in kv_dpm_fini()
2871 kfree(rdev->pm.dpm.ps); in kv_dpm_fini()