Lines Matching refs:rps
370 static struct kv_ps *kv_get_ps(struct amdgpu_ps *rps) in kv_get_ps() argument
372 struct kv_ps *ps = rps->ps_priv; in kv_get_ps()
1223 struct amdgpu_ps *rps) in kv_update_current_ps() argument
1225 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_current_ps()
1228 pi->current_rps = *rps; in kv_update_current_ps()
1235 struct amdgpu_ps *rps) in kv_update_requested_ps() argument
1237 struct kv_ps *new_ps = kv_get_ps(rps); in kv_update_requested_ps()
1240 pi->requested_rps = *rps; in kv_update_requested_ps()
2651 struct amdgpu_ps *rps, in kv_parse_pplib_non_clock_info() argument
2655 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_non_clock_info()
2657 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in kv_parse_pplib_non_clock_info()
2658 rps->class = le16_to_cpu(non_clock_info->usClassification); in kv_parse_pplib_non_clock_info()
2659 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in kv_parse_pplib_non_clock_info()
2662 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in kv_parse_pplib_non_clock_info()
2663 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in kv_parse_pplib_non_clock_info()
2665 rps->vclk = 0; in kv_parse_pplib_non_clock_info()
2666 rps->dclk = 0; in kv_parse_pplib_non_clock_info()
2669 if (rps->class & ATOM_PPLIB_CLASSIFICATION_BOOT) { in kv_parse_pplib_non_clock_info()
2670 adev->pm.dpm.boot_ps = rps; in kv_parse_pplib_non_clock_info()
2673 if (rps->class & ATOM_PPLIB_CLASSIFICATION_UVDSTATE) in kv_parse_pplib_non_clock_info()
2674 adev->pm.dpm.uvd_ps = rps; in kv_parse_pplib_non_clock_info()
2678 struct amdgpu_ps *rps, int index, in kv_parse_pplib_clock_info() argument
2682 struct kv_ps *ps = kv_get_ps(rps); in kv_parse_pplib_clock_info()
2893 struct amdgpu_ps *rps = (struct amdgpu_ps *)request_ps; in kv_dpm_print_power_state() local
2894 struct kv_ps *ps = kv_get_ps(rps); in kv_dpm_print_power_state()
2897 amdgpu_dpm_print_class_info(rps->class, rps->class2); in kv_dpm_print_power_state()
2898 amdgpu_dpm_print_cap_info(rps->caps); in kv_dpm_print_power_state()
2899 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in kv_dpm_print_power_state()
2906 amdgpu_dpm_print_ps_status(adev, rps); in kv_dpm_print_power_state()
3244 struct amdgpu_ps *rps = (struct amdgpu_ps *)request_ps; in kv_check_state_equal() local
3247 if (adev == NULL || cps == NULL || rps == NULL || equal == NULL) in kv_check_state_equal()
3251 kv_rps = kv_get_ps(rps); in kv_check_state_equal()
3272 *equal = ((cps->vclk == rps->vclk) && (cps->dclk == rps->dclk)); in kv_check_state_equal()
3273 *equal &= ((cps->evclk == rps->evclk) && (cps->ecclk == rps->ecclk)); in kv_check_state_equal()