/dragonfly/sys/dev/drm/radeon/ |
H A D | rs600.c | 220 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; in rs600_pm_misc() local 224 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) { in rs600_pm_misc() 227 if (voltage->active_high) in rs600_pm_misc() 228 tmp |= voltage->gpio.mask; in rs600_pm_misc() 232 if (voltage->delay) in rs600_pm_misc() 233 udelay(voltage->delay); in rs600_pm_misc() 236 if (voltage->active_high) in rs600_pm_misc() 239 tmp |= voltage->gpio.mask; in rs600_pm_misc() 241 if (voltage->delay) in rs600_pm_misc() 242 udelay(voltage->delay); in rs600_pm_misc() [all …]
|
H A D | radeon_atombios.c | 2436 rdev->pm.default_vddc = rdev->pm.power_state[state_index].clock_info[0].voltage.voltage; in radeon_atombios_parse_pplib_non_clock_info() 2452 rdev->pm.power_state[state_index].clock_info[j].voltage.voltage = in radeon_atombios_parse_pplib_non_clock_info() 2497 rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage = in radeon_atombios_parse_pplib_clock_info() 2510 rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage = in radeon_atombios_parse_pplib_clock_info() 2523 rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage = in radeon_atombios_parse_pplib_clock_info() 2528 switch (rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage) { in radeon_atombios_parse_pplib_clock_info() 2538 rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage, in radeon_atombios_parse_pplib_clock_info() 2540 rdev->pm.power_state[state_index].clock_info[mode_index].voltage.voltage = vddc; in radeon_atombios_parse_pplib_clock_info() 2801 rdev->pm.power_state[rdev->pm.default_power_state_index].clock_info[0].voltage.voltage; in radeon_atombios_get_power_modes() 3163 u16 *voltage, in radeon_atom_get_leakage_vddc_based_on_leakage_idx() argument [all …]
|
H A D | rv770.c | 873 struct radeon_voltage *voltage = &ps->clock_info[req_cm_idx].voltage; in rv770_pm_misc() local 875 if ((voltage->type == VOLTAGE_SW) && voltage->voltage) { in rv770_pm_misc() 877 if (voltage->voltage == 0xff01) in rv770_pm_misc() 879 if (voltage->voltage != rdev->pm.current_vddc) { in rv770_pm_misc() 880 radeon_atom_set_voltage(rdev, voltage->voltage, SET_VOLTAGE_TYPE_ASIC_VDDC); in rv770_pm_misc() 881 rdev->pm.current_vddc = voltage->voltage; in rv770_pm_misc() 882 DRM_DEBUG("Setting: v: %d\n", voltage->voltage); in rv770_pm_misc()
|
H A D | rv770_dpm.h | 218 RV770_SMC_VOLTAGE_VALUE *voltage); 220 RV770_SMC_VOLTAGE_VALUE *voltage); 224 RV770_SMC_VOLTAGE_VALUE *voltage);
|
H A D | radeon_combios.c | 2742 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_combios_get_power_modes() 2745 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_combios_get_power_modes() 2749 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.reg = in radeon_combios_get_power_modes() 2757 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.reg = in radeon_combios_get_power_modes() 2767 rdev->pm.power_state[state_index].clock_info[0].voltage.delay = 0; in radeon_combios_get_power_modes() 2770 rdev->pm.power_state[state_index].clock_info[0].voltage.delay = 33; in radeon_combios_get_power_modes() 2773 rdev->pm.power_state[state_index].clock_info[0].voltage.delay = 66; in radeon_combios_get_power_modes() 2776 rdev->pm.power_state[state_index].clock_info[0].voltage.delay = 99; in radeon_combios_get_power_modes() 2779 rdev->pm.power_state[state_index].clock_info[0].voltage.delay = 132; in radeon_combios_get_power_modes() 2806 rdev->pm.power_state[state_index].clock_info[0].voltage = in radeon_combios_get_power_modes() [all …]
|
H A D | si_dpm.c | 2588 u16 voltage; in si_init_dte_leakage_table() local 2600 voltage, in si_init_dte_leakage_table() 2626 u16 voltage; in si_init_simplified_leakage_table() local 2636 voltage, in si_init_simplified_leakage_table() 2944 *voltage = 0; in si_get_vce_clock_voltage() 2961 *voltage = si_get_lower_of_leakage_and_vce_voltage(rdev, *voltage); in si_get_vce_clock_voltage() 4117 voltage->index = (u8)i; in si_populate_voltage_value() 4137 voltage->index = 0; in si_populate_mvdd_value() 4141 voltage->value = cpu_to_be16(si_pi->mvdd_voltage_table.entries[voltage->index].value); in si_populate_mvdd_value() 4201 voltage->index = index; in si_populate_std_voltage_value() [all …]
|
H A D | rv770_dpm.c | 571 RV770_SMC_VOLTAGE_VALUE *voltage) in rv770_populate_vddc_value() argument 577 voltage->index = 0; in rv770_populate_vddc_value() 578 voltage->value = 0; in rv770_populate_vddc_value() 585 voltage->value = cpu_to_be16(vddc); in rv770_populate_vddc_value() 597 RV770_SMC_VOLTAGE_VALUE *voltage) in rv770_populate_mvdd_value() argument 602 voltage->index = MVDD_HIGH_INDEX; in rv770_populate_mvdd_value() 608 voltage->index = MVDD_LOW_INDEX; in rv770_populate_mvdd_value() 611 voltage->index = MVDD_HIGH_INDEX; in rv770_populate_mvdd_value() 1011 RV770_SMC_VOLTAGE_VALUE *voltage) in rv770_populate_initial_mvdd_value() argument 1017 voltage->index = MVDD_LOW_INDEX; in rv770_populate_initial_mvdd_value() [all …]
|
H A D | cypress_dpm.c | 411 voltage->index = (u8)i; in cypress_populate_voltage_value() 653 RV770_SMC_VOLTAGE_VALUE *voltage) in cypress_populate_mvdd_value() argument 659 voltage->index = eg_pi->mvdd_high_index; in cypress_populate_mvdd_value() 660 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in cypress_populate_mvdd_value() 665 voltage->index = eg_pi->mvdd_low_index; in cypress_populate_mvdd_value() 666 voltage->value = cpu_to_be16(MVDD_LOW_VALUE); in cypress_populate_mvdd_value() 668 voltage->index = eg_pi->mvdd_high_index; in cypress_populate_mvdd_value() 669 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in cypress_populate_mvdd_value() 1224 RV770_SMC_VOLTAGE_VALUE *voltage) in cypress_populate_initial_mvdd_value() argument 1228 voltage->index = eg_pi->mvdd_high_index; in cypress_populate_initial_mvdd_value() [all …]
|
H A D | atombios_dp.c | 671 u8 voltage; in radeon_dp_link_train_cr() local 683 voltage = 0xff; in radeon_dp_link_train_cr() 707 if ((dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK) == voltage) { in radeon_dp_link_train_cr() 716 voltage = dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK; in radeon_dp_link_train_cr()
|
H A D | evergreen.c | 1611 struct radeon_voltage *voltage = &ps->clock_info[req_cm_idx].voltage; in evergreen_pm_misc() local 1613 if (voltage->type == VOLTAGE_SW) { in evergreen_pm_misc() 1615 if ((voltage->voltage & 0xff00) == 0xff00) in evergreen_pm_misc() 1617 if (voltage->voltage && (voltage->voltage != rdev->pm.current_vddc)) { in evergreen_pm_misc() 1618 radeon_atom_set_voltage(rdev, voltage->voltage, SET_VOLTAGE_TYPE_ASIC_VDDC); in evergreen_pm_misc() 1619 rdev->pm.current_vddc = voltage->voltage; in evergreen_pm_misc() 1620 DRM_DEBUG("Setting: vddc: %d\n", voltage->voltage); in evergreen_pm_misc() 1632 voltage = &rdev->pm.power_state[req_ps_idx]. in evergreen_pm_misc() 1636 if ((voltage->vddci & 0xff00) == 0xff00) in evergreen_pm_misc() 1638 if (voltage->vddci && (voltage->vddci != rdev->pm.current_vddci)) { in evergreen_pm_misc() [all …]
|
H A D | r100.c | 349 struct radeon_voltage *voltage = &ps->clock_info[0].voltage; in r100_pm_misc() local 352 if ((voltage->type == VOLTAGE_GPIO) && (voltage->gpio.valid)) { in r100_pm_misc() 355 if (voltage->active_high) in r100_pm_misc() 356 tmp |= voltage->gpio.mask; in r100_pm_misc() 360 if (voltage->delay) in r100_pm_misc() 361 udelay(voltage->delay); in r100_pm_misc() 364 if (voltage->active_high) in r100_pm_misc() 369 if (voltage->delay) in r100_pm_misc() 370 udelay(voltage->delay); in r100_pm_misc() 394 if (voltage->delay) { in r100_pm_misc() [all …]
|
H A D | btc_dpm.h | 48 u32 clock, u16 max_voltage, u16 *voltage);
|
H A D | ni_dpm.c | 1302 NISLANDS_SMC_VOLTAGE_VALUE *voltage) in ni_populate_voltage_value() argument 1308 voltage->index = (u8)i; in ni_populate_voltage_value() 1322 NISLANDS_SMC_VOLTAGE_VALUE *voltage) in ni_populate_mvdd_value() argument 1328 voltage->index = eg_pi->mvdd_high_index; in ni_populate_mvdd_value() 1334 voltage->index = eg_pi->mvdd_low_index; in ni_populate_mvdd_value() 1337 voltage->index = eg_pi->mvdd_high_index; in ni_populate_mvdd_value() 1343 NISLANDS_SMC_VOLTAGE_VALUE *voltage, in ni_get_std_voltage_value() argument 1357 NISLANDS_SMC_VOLTAGE_VALUE *voltage) in ni_populate_std_voltage_value() argument 1359 voltage->index = index; in ni_populate_std_voltage_value() 1360 voltage->value = cpu_to_be16(value); in ni_populate_std_voltage_value() [all …]
|
/dragonfly/sys/dev/drm/amd/powerplay/hwmgr/ |
H A D | smu_helper.c | 342 struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage) in phm_get_voltage_index() argument 354 if (lookup_table->entries[i].us_vdd >= voltage) in phm_get_voltage_index() 362 uint32_t voltage) in phm_get_voltage_id() argument 374 if (voltage_table->entries[i].value >= voltage) in phm_get_voltage_id() 522 uint32_t sclk, uint16_t id, uint16_t *voltage) in phm_get_voltage_evv_on_sclk() argument 528 ret = atomctrl_get_voltage_evv(hwmgr, id, voltage); in phm_get_voltage_evv_on_sclk() 530 ret = atomctrl_get_voltage_evv_on_sclk(hwmgr, voltage_type, sclk, id, voltage); in phm_get_voltage_evv_on_sclk() 531 if (*voltage >= 2000 || *voltage == 0) in phm_get_voltage_evv_on_sclk() 532 *voltage = 1150; in phm_get_voltage_evv_on_sclk() 535 *voltage = (uint16_t)(vol/100); in phm_get_voltage_evv_on_sclk()
|
H A D | ppatomctrl.h | 291 …hwmgr *hwmgr, uint8_t voltage_type, uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage); 292 …t atomctrl_get_voltage_evv(struct pp_hwmgr *hwmgr, uint16_t virtual_voltage_id, uint16_t *voltage); 314 uint32_t sclk, uint16_t virtual_voltage_Id, uint16_t *voltage, uint16_t dpm_level, bool debug); 319 uint32_t sclk, uint16_t virtual_voltage_Id, uint32_t *voltage);
|
H A D | smu_helper.h | 72 uint32_t voltage); 73 …t8_t phm_get_voltage_index(struct phm_ppt_v1_voltage_lookup_table *lookup_table, uint16_t voltage); 83 uint32_t sclk, uint16_t id, uint16_t *voltage);
|
H A D | ppatomctrl.c | 646 uint16_t *voltage, in atomctrl_calculate_voltage_evv_on_sclk() argument 1067 *voltage = (uint16_t)fV_NL.partial.real; in atomctrl_calculate_voltage_evv_on_sclk() 1089 uint16_t *voltage) in atomctrl_get_voltage_evv_on_sclk() argument 1108 *voltage = result ? 0 : in atomctrl_get_voltage_evv_on_sclk() 1123 uint16_t *voltage) in atomctrl_get_voltage_evv() argument 1156 *voltage = le16_to_cpu(((GET_EVV_VOLTAGE_INFO_OUTPUT_PARAMETER_V1_2 *) in atomctrl_get_voltage_evv() 1340 uint32_t sclk, uint16_t virtual_voltage_Id, uint32_t *voltage) in atomctrl_get_voltage_evv_on_sclk_ai() argument 1355 *voltage = result ? 0 : in atomctrl_get_voltage_evv_on_sclk_ai()
|
/dragonfly/sys/dev/drm/amd/amdgpu/ |
H A D | amdgpu_atombios.h | 181 u16 *voltage); 204 u16 voltage_id, u16 *voltage); 206 u16 *voltage,
|
H A D | si_dpm.c | 2685 u16 voltage; in si_init_dte_leakage_table() local 2697 voltage, in si_init_dte_leakage_table() 2723 u16 voltage; in si_init_simplified_leakage_table() local 2733 voltage, in si_init_simplified_leakage_table() 3043 *voltage = 0; in si_get_vce_clock_voltage() 3060 *voltage = si_get_lower_of_leakage_and_vce_voltage(adev, *voltage); in si_get_vce_clock_voltage() 3282 *voltage = (*voltage > max_voltage) ? *voltage : max_voltage; in btc_apply_voltage_dependency_rules() 4580 voltage->index = (u8)i; in si_populate_voltage_value() 4600 voltage->index = 0; in si_populate_mvdd_value() 4664 voltage->index = index; in si_populate_std_voltage_value() [all …]
|
H A D | atombios_dp.c | 592 u8 voltage; in amdgpu_atombios_dp_link_train_cr() local 604 voltage = 0xff; in amdgpu_atombios_dp_link_train_cr() 628 if ((dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK) == voltage) { in amdgpu_atombios_dp_link_train_cr() 637 voltage = dp_info->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK; in amdgpu_atombios_dp_link_train_cr()
|
/dragonfly/sys/dev/drm/i915/ |
H A D | intel_dp_link_training.c | 131 uint8_t voltage; in intel_dp_link_training_clock_recovery() local 195 voltage = intel_dp->train_set[0] & DP_TRAIN_VOLTAGE_SWING_MASK; in intel_dp_link_training_clock_recovery() 205 voltage) in intel_dp_link_training_clock_recovery()
|
H A D | intel_ddi.c | 709 if (voltage == VOLTAGE_INFO_0_85V) { in cnl_get_buf_trans_hdmi() 712 } else if (voltage == VOLTAGE_INFO_0_95V) { in cnl_get_buf_trans_hdmi() 715 } else if (voltage == VOLTAGE_INFO_1_05V) { in cnl_get_buf_trans_hdmi() 720 MISSING_CASE(voltage); in cnl_get_buf_trans_hdmi() 730 if (voltage == VOLTAGE_INFO_0_85V) { in cnl_get_buf_trans_dp() 733 } else if (voltage == VOLTAGE_INFO_0_95V) { in cnl_get_buf_trans_dp() 736 } else if (voltage == VOLTAGE_INFO_1_05V) { in cnl_get_buf_trans_dp() 741 MISSING_CASE(voltage); in cnl_get_buf_trans_dp() 752 if (voltage == VOLTAGE_INFO_0_85V) { in cnl_get_buf_trans_edp() 755 } else if (voltage == VOLTAGE_INFO_0_95V) { in cnl_get_buf_trans_edp() [all …]
|
/dragonfly/sys/dev/pccard/pccbb/ |
H A D | pccbb.c | 884 uint32_t voltage, curpwr; in cbb_do_power() local 890 voltage = cbb_detect_voltage(brdev); in cbb_do_power() 893 if ((status & CBB_STATE_POWER_CYCLE) && (voltage & curpwr)) in cbb_do_power() 897 if (voltage & CARD_YV_CARD) in cbb_do_power() 899 else if (voltage & CARD_XV_CARD) in cbb_do_power() 901 else if (voltage & CARD_3V_CARD) in cbb_do_power() 903 else if (voltage & CARD_5V_CARD) in cbb_do_power()
|
/dragonfly/sys/dev/drm/amd/powerplay/smumgr/ |
H A D | vegam_smumgr.c | 602 uint32_t clock, SMU_VoltageLevel *voltage, uint32_t *mvdd) in vegam_get_dependency_volt_by_clk() argument 608 *voltage = *mvdd = 0; in vegam_get_dependency_volt_by_clk() 617 *voltage |= (dep_table->entries[i].vddc * in vegam_get_dependency_volt_by_clk() 620 *voltage |= (data->vbios_boot_state.vddci_bootup_value * in vegam_get_dependency_volt_by_clk() 623 *voltage |= (dep_table->entries[i].vddci * in vegam_get_dependency_volt_by_clk() 629 *voltage |= (vddci * VOLTAGE_SCALE) << VDDCI_SHIFT; in vegam_get_dependency_volt_by_clk() 639 *voltage |= 1 << PHASES_SHIFT; in vegam_get_dependency_volt_by_clk() 645 *voltage |= (dep_table->entries[i - 1].vddc * VOLTAGE_SCALE) << VDDC_SHIFT; in vegam_get_dependency_volt_by_clk() 648 *voltage |= (data->vbios_boot_state.vddci_bootup_value * in vegam_get_dependency_volt_by_clk() 651 *voltage |= (dep_table->entries[i - 1].vddci * in vegam_get_dependency_volt_by_clk() [all …]
|
/dragonfly/sys/dev/drm/amd/display/dc/dml/ |
H A D | display_mode_structs.h | 319 int voltage; member 356 int voltage; member
|