Lines Matching full:pl

229 		       struct rv7xx_pl *pl)  in rv770_get_seq_value()  argument
231 return (pl->flags & ATOM_PPLIB_R600_FLAGS_LOWPOWER) ? in rv770_get_seq_value()
616 struct rv7xx_pl *pl, in rv770_convert_power_level_to_smc() argument
624 ((pl->flags & ATOM_PPLIB_R600_FLAGS_PCIEGEN2) ? 1 : 0) : 0; in rv770_convert_power_level_to_smc()
625 level->gen2XSP = (pl->flags & ATOM_PPLIB_R600_FLAGS_PCIEGEN2) ? 1 : 0; in rv770_convert_power_level_to_smc()
626 level->backbias = (pl->flags & ATOM_PPLIB_R600_FLAGS_BACKBIASENABLE) ? 1 : 0; in rv770_convert_power_level_to_smc()
630 ret = rv740_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
633 ret = rv730_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
636 ret = rv770_populate_sclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
643 if (pl->mclk <= pi->mclk_strobe_mode_threshold) in rv770_convert_power_level_to_smc()
645 rv740_get_mclk_frequency_ratio(pl->mclk) | 0x10; in rv770_convert_power_level_to_smc()
649 if (pl->mclk > pi->mclk_edc_enable_threshold) in rv770_convert_power_level_to_smc()
654 ret = rv740_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
655 pl->mclk, &level->mclk); in rv770_convert_power_level_to_smc()
657 ret = rv730_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
658 pl->mclk, &level->mclk); in rv770_convert_power_level_to_smc()
660 ret = rv770_populate_mclk_value(rdev, pl->sclk, in rv770_convert_power_level_to_smc()
661 pl->mclk, &level->mclk); in rv770_convert_power_level_to_smc()
665 ret = rv770_populate_vddc_value(rdev, pl->vddc, in rv770_convert_power_level_to_smc()
670 ret = rv770_populate_mvdd_value(rdev, pl->mclk, &level->mvdd); in rv770_convert_power_level_to_smc()
2183 struct rv7xx_pl *pl; in rv7xx_parse_pplib_clock_info() local
2187 pl = &ps->low; in rv7xx_parse_pplib_clock_info()
2190 pl = &ps->medium; in rv7xx_parse_pplib_clock_info()
2194 pl = &ps->high; in rv7xx_parse_pplib_clock_info()
2204 pl->vddc = le16_to_cpu(clock_info->evergreen.usVDDC); in rv7xx_parse_pplib_clock_info()
2205 pl->vddci = le16_to_cpu(clock_info->evergreen.usVDDCI); in rv7xx_parse_pplib_clock_info()
2206 pl->flags = le32_to_cpu(clock_info->evergreen.ulFlags); in rv7xx_parse_pplib_clock_info()
2213 pl->vddc = le16_to_cpu(clock_info->r600.usVDDC); in rv7xx_parse_pplib_clock_info()
2214 pl->flags = le32_to_cpu(clock_info->r600.ulFlags); in rv7xx_parse_pplib_clock_info()
2217 pl->mclk = mclk; in rv7xx_parse_pplib_clock_info()
2218 pl->sclk = sclk; in rv7xx_parse_pplib_clock_info()
2221 if (pl->vddc == 0xff01) { in rv7xx_parse_pplib_clock_info()
2223 pl->vddc = pi->max_vddc; in rv7xx_parse_pplib_clock_info()
2227 pi->acpi_vddc = pl->vddc; in rv7xx_parse_pplib_clock_info()
2229 eg_pi->acpi_vddci = pl->vddci; in rv7xx_parse_pplib_clock_info()
2239 eg_pi->ulv.pl = pl; in rv7xx_parse_pplib_clock_info()
2243 if (pi->min_vddc_in_table > pl->vddc) in rv7xx_parse_pplib_clock_info()
2244 pi->min_vddc_in_table = pl->vddc; in rv7xx_parse_pplib_clock_info()
2246 if (pi->max_vddc_in_table < pl->vddc) in rv7xx_parse_pplib_clock_info()
2247 pi->max_vddc_in_table = pl->vddc; in rv7xx_parse_pplib_clock_info()
2253 pl->mclk = rdev->clock.default_mclk; in rv7xx_parse_pplib_clock_info()
2254 pl->sclk = rdev->clock.default_sclk; in rv7xx_parse_pplib_clock_info()
2255 pl->vddc = vddc; in rv7xx_parse_pplib_clock_info()
2256 pl->vddci = vddci; in rv7xx_parse_pplib_clock_info()
2261 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.sclk = pl->sclk; in rv7xx_parse_pplib_clock_info()
2262 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.mclk = pl->mclk; in rv7xx_parse_pplib_clock_info()
2263 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.vddc = pl->vddc; in rv7xx_parse_pplib_clock_info()
2264 rdev->pm.dpm.dyn_state.max_clock_voltage_on_ac.vddci = pl->vddci; in rv7xx_parse_pplib_clock_info()
2438 struct rv7xx_pl *pl; in rv770_dpm_print_power_state() local
2444 pl = &ps->low; in rv770_dpm_print_power_state()
2446 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2447 pl = &ps->medium; in rv770_dpm_print_power_state()
2449 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2450 pl = &ps->high; in rv770_dpm_print_power_state()
2452 pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_print_power_state()
2454 pl = &ps->low; in rv770_dpm_print_power_state()
2456 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2457 pl = &ps->medium; in rv770_dpm_print_power_state()
2459 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2460 pl = &ps->high; in rv770_dpm_print_power_state()
2462 pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_print_power_state()
2472 struct rv7xx_pl *pl; in rv770_dpm_debugfs_print_current_performance_level() local
2481 pl = &ps->low; in rv770_dpm_debugfs_print_current_performance_level()
2483 pl = &ps->medium; in rv770_dpm_debugfs_print_current_performance_level()
2485 pl = &ps->high; in rv770_dpm_debugfs_print_current_performance_level()
2489 current_index, pl->sclk, pl->mclk, pl->vddc, pl->vddci); in rv770_dpm_debugfs_print_current_performance_level()
2492 current_index, pl->sclk, pl->mclk, pl->vddc); in rv770_dpm_debugfs_print_current_performance_level()
2501 struct rv7xx_pl *pl; in rv770_dpm_get_current_sclk() local
2510 pl = &ps->low; in rv770_dpm_get_current_sclk()
2512 pl = &ps->medium; in rv770_dpm_get_current_sclk()
2514 pl = &ps->high; in rv770_dpm_get_current_sclk()
2515 return pl->sclk; in rv770_dpm_get_current_sclk()
2523 struct rv7xx_pl *pl; in rv770_dpm_get_current_mclk() local
2532 pl = &ps->low; in rv770_dpm_get_current_mclk()
2534 pl = &ps->medium; in rv770_dpm_get_current_mclk()
2536 pl = &ps->high; in rv770_dpm_get_current_mclk()
2537 return pl->mclk; in rv770_dpm_get_current_mclk()