Lines Matching refs:rps
304 static struct trinity_ps *trinity_get_ps(struct radeon_ps *rps) in trinity_get_ps() argument
306 struct trinity_ps *ps = rps->ps_priv; in trinity_get_ps()
826 struct radeon_ps *rps) in trinity_setup_uvd_clock_table() argument
828 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_setup_uvd_clock_table()
852 static bool trinity_uvd_clocks_zero(struct radeon_ps *rps) in trinity_uvd_clocks_zero() argument
854 if ((rps->vclk == 0) && (rps->dclk == 0)) in trinity_uvd_clocks_zero()
1024 struct radeon_ps *rps) in trinity_update_current_ps() argument
1026 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_current_ps()
1029 pi->current_rps = *rps; in trinity_update_current_ps()
1035 struct radeon_ps *rps) in trinity_update_requested_ps() argument
1037 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_update_requested_ps()
1040 pi->requested_rps = *rps; in trinity_update_requested_ps()
1140 struct radeon_ps *rps) in trinity_setup_nbp_sim() argument
1143 struct trinity_ps *new_ps = trinity_get_ps(rps); in trinity_setup_nbp_sim()
1161 struct radeon_ps *rps = &pi->current_rps; in trinity_dpm_force_performance_level() local
1162 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_dpm_force_performance_level()
1408 struct radeon_ps *rps) in trinity_get_uvd_clock_index() argument
1414 if ((rps->vclk == pi->sys_info.uvd_clock_table_entries[i].vclk) && in trinity_get_uvd_clock_index()
1415 (rps->dclk == pi->sys_info.uvd_clock_table_entries[i].dclk)) in trinity_get_uvd_clock_index()
1427 struct radeon_ps *rps) in trinity_adjust_uvd_state() argument
1429 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_adjust_uvd_state()
1434 if (pi->uvd_dpm && r600_is_uvd_state(rps->class, rps->class2)) { in trinity_adjust_uvd_state()
1435 high_index = trinity_get_uvd_clock_index(rdev, rps); in trinity_adjust_uvd_state()
1637 struct radeon_ps *rps, in trinity_parse_pplib_non_clock_info() argument
1641 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_parse_pplib_non_clock_info()
1643 rps->caps = le32_to_cpu(non_clock_info->ulCapsAndSettings); in trinity_parse_pplib_non_clock_info()
1644 rps->class = le16_to_cpu(non_clock_info->usClassification); in trinity_parse_pplib_non_clock_info()
1645 rps->class2 = le16_to_cpu(non_clock_info->usClassification2); in trinity_parse_pplib_non_clock_info()
1648 rps->vclk = le32_to_cpu(non_clock_info->ulVCLK); in trinity_parse_pplib_non_clock_info()
1649 rps->dclk = le32_to_cpu(non_clock_info->ulDCLK); in trinity_parse_pplib_non_clock_info()
1651 rps->vclk = 0; in trinity_parse_pplib_non_clock_info()
1652 rps->dclk = 0; in trinity_parse_pplib_non_clock_info()
1655 if (rps->class & ATOM_PPLIB_CLASSIFICATION_BOOT) { in trinity_parse_pplib_non_clock_info()
1656 rdev->pm.dpm.boot_ps = rps; in trinity_parse_pplib_non_clock_info()
1659 if (rps->class & ATOM_PPLIB_CLASSIFICATION_UVDSTATE) in trinity_parse_pplib_non_clock_info()
1660 rdev->pm.dpm.uvd_ps = rps; in trinity_parse_pplib_non_clock_info()
1664 struct radeon_ps *rps, int index, in trinity_parse_pplib_clock_info() argument
1668 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_parse_pplib_clock_info()
1968 struct radeon_ps *rps) in trinity_dpm_print_power_state() argument
1971 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_dpm_print_power_state()
1973 r600_dpm_print_class_info(rps->class, rps->class2); in trinity_dpm_print_power_state()
1974 r600_dpm_print_cap_info(rps->caps); in trinity_dpm_print_power_state()
1975 printk("\tuvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in trinity_dpm_print_power_state()
1982 r600_dpm_print_ps_status(rdev, rps); in trinity_dpm_print_power_state()
1989 struct radeon_ps *rps = &pi->current_rps; in trinity_dpm_debugfs_print_current_performance_level() local
1990 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_dpm_debugfs_print_current_performance_level()
2000 seq_printf(m, "uvd vclk: %d dclk: %d\n", rps->vclk, rps->dclk); in trinity_dpm_debugfs_print_current_performance_level()
2010 struct radeon_ps *rps = &pi->current_rps; in trinity_dpm_get_current_sclk() local
2011 struct trinity_ps *ps = trinity_get_ps(rps); in trinity_dpm_get_current_sclk()