Home
last modified time | relevance | path

Searched refs:voltage (Results 1 – 25 of 63) sorted by relevance

123

/dflybsd-src/sys/dev/drm/radeon/
H A Drs600.c220 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()
226 tmp = RREG32(voltage->gpio.reg); in rs600_pm_misc()
227 if (voltage->active_high) in rs600_pm_misc()
228 tmp |= voltage->gpio.mask; in rs600_pm_misc()
230 tmp &= ~(voltage->gpio.mask); in rs600_pm_misc()
231 WREG32(voltage->gpio.reg, tmp); in rs600_pm_misc()
232 if (voltage->delay) in rs600_pm_misc()
233 udelay(voltage->delay); in rs600_pm_misc()
235 tmp = RREG32(voltage->gpio.reg); in rs600_pm_misc()
[all …]
H A Dradeon_atombios.c2130 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_NONE; in radeon_atombios_parse_power_table_1_3()
2146 rdev->pm.power_state[state_index].clock_info[0].voltage.type = in radeon_atombios_parse_power_table_1_3()
2148 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio = in radeon_atombios_parse_power_table_1_3()
2152 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_atombios_parse_power_table_1_3()
2155 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_atombios_parse_power_table_1_3()
2158 rdev->pm.power_state[state_index].clock_info[0].voltage.type = in radeon_atombios_parse_power_table_1_3()
2160 rdev->pm.power_state[state_index].clock_info[0].voltage.vddc_id = in radeon_atombios_parse_power_table_1_3()
2182 rdev->pm.power_state[state_index].clock_info[0].voltage.type = in radeon_atombios_parse_power_table_1_3()
2184 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio = in radeon_atombios_parse_power_table_1_3()
2188 rdev->pm.power_state[state_index].clock_info[0].voltage.active_high = in radeon_atombios_parse_power_table_1_3()
[all …]
H A Drv770.c873 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 Drv770_dpm.h218 RV770_SMC_VOLTAGE_VALUE *voltage);
220 RV770_SMC_VOLTAGE_VALUE *voltage);
224 RV770_SMC_VOLTAGE_VALUE *voltage);
H A Dradeon_combios.c2740 rdev->pm.power_state[state_index].clock_info[0].voltage.type = VOLTAGE_GPIO; in radeon_combios_get_power_modes()
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()
2747 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.valid = true; 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()
2752 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.mask = (1 << tmp); 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()
2760 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.mask = (1 << tmp); in radeon_combios_get_power_modes()
2762 rdev->pm.power_state[state_index].clock_info[0].voltage.gpio.valid = false; 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()
[all …]
H A Dsi_dpm.c1748 u16 value, SISLANDS_SMC_VOLTAGE_VALUE *voltage);
1750 SISLANDS_SMC_VOLTAGE_VALUE *voltage,
2588 u16 voltage; in si_init_dte_leakage_table() local
2596 voltage = vddc_max - (vddc_step * j); in si_init_dte_leakage_table()
2600 voltage, in si_init_dte_leakage_table()
2626 u16 voltage; in si_init_simplified_leakage_table() local
2631 voltage = vddc_max - (vddc_step * j); in si_init_simplified_leakage_table()
2636 voltage, in si_init_simplified_leakage_table()
2924 if (highest_leakage < si_pi->leakage_voltage.entries[i].voltage) in si_get_lower_of_leakage_and_vce_voltage()
2925 highest_leakage = si_pi->leakage_voltage.entries[i].voltage; in si_get_lower_of_leakage_and_vce_voltage()
[all …]
H A Drv770_dpm.c571 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()
584 voltage->index = pi->vddc_table[i].vddc_index; 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()
603 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in rv770_populate_mvdd_value()
608 voltage->index = MVDD_LOW_INDEX; in rv770_populate_mvdd_value()
609 voltage->value = cpu_to_be16(MVDD_LOW_VALUE); in rv770_populate_mvdd_value()
[all …]
H A Dcypress_dpm.c405 u16 value, RV770_SMC_VOLTAGE_VALUE *voltage) in cypress_populate_voltage_value() argument
411 voltage->index = (u8)i; in cypress_populate_voltage_value()
412 voltage->value = cpu_to_be16(table->entries[i].value); 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()
[all …]
H A Datombios_dp.c671 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 Devergreen.c1611 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()
1633 clock_info[rdev->pm.profiles[PM_PROFILE_HIGH_MH_IDX].dpms_on_cm_idx].voltage; in evergreen_pm_misc()
1636 if ((voltage->vddci & 0xff00) == 0xff00) in evergreen_pm_misc()
[all …]
H A Dr100.c349 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()
354 tmp = RREG32(voltage->gpio.reg); in r100_pm_misc()
355 if (voltage->active_high) in r100_pm_misc()
356 tmp |= voltage->gpio.mask; in r100_pm_misc()
358 tmp &= ~(voltage->gpio.mask); in r100_pm_misc()
359 WREG32(voltage->gpio.reg, tmp); in r100_pm_misc()
360 if (voltage->delay) in r100_pm_misc()
361 udelay(voltage->delay); in r100_pm_misc()
363 tmp = RREG32(voltage->gpio.reg); in r100_pm_misc()
[all …]
H A Dbtc_dpm.h48 u32 clock, u16 max_voltage, u16 *voltage);
H A Dni_dpm.c1302 NISLANDS_SMC_VOLTAGE_VALUE *voltage) in ni_populate_voltage_value() argument
1308 voltage->index = (u8)i; in ni_populate_voltage_value()
1309 voltage->value = cpu_to_be16(table->entries[i].value); 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()
1329 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in ni_populate_mvdd_value()
1334 voltage->index = eg_pi->mvdd_low_index; in ni_populate_mvdd_value()
1335 voltage->value = cpu_to_be16(MVDD_LOW_VALUE); in ni_populate_mvdd_value()
1337 voltage->index = eg_pi->mvdd_high_index; in ni_populate_mvdd_value()
1338 voltage->value = cpu_to_be16(MVDD_HIGH_VALUE); in ni_populate_mvdd_value()
[all …]
/dflybsd-src/sys/dev/drm/amd/powerplay/hwmgr/
H A Dsmu_helper.c342 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 Dppatomctrl.h291 …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 Dsmu_helper.h72 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 Dppatomctrl.c646 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()
/dflybsd-src/sys/dev/drm/amd/amdgpu/
H A Damdgpu_atombios.h181 u16 *voltage);
204 u16 voltage_id, u16 *voltage);
206 u16 *voltage,
H A Dsi_dpm.c1838 u16 value, SISLANDS_SMC_VOLTAGE_VALUE *voltage);
1840 SISLANDS_SMC_VOLTAGE_VALUE *voltage,
2685 u16 voltage; in si_init_dte_leakage_table() local
2693 voltage = vddc_max - (vddc_step * j); in si_init_dte_leakage_table()
2697 voltage, in si_init_dte_leakage_table()
2723 u16 voltage; in si_init_simplified_leakage_table() local
2728 voltage = vddc_max - (vddc_step * j); in si_init_simplified_leakage_table()
2733 voltage, in si_init_simplified_leakage_table()
3023 if (highest_leakage < si_pi->leakage_voltage.entries[i].voltage) in si_get_lower_of_leakage_and_vce_voltage()
3024 highest_leakage = si_pi->leakage_voltage.entries[i].voltage; in si_get_lower_of_leakage_and_vce_voltage()
[all …]
H A Datombios_dp.c592 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()
/dflybsd-src/sys/dev/drm/i915/
H A Dintel_dp_link_training.c131 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 Dintel_ddi.c707 u32 voltage = I915_READ(CNL_PORT_COMP_DW3) & VOLTAGE_INFO_MASK; in cnl_get_buf_trans_hdmi() local
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()
728 u32 voltage = I915_READ(CNL_PORT_COMP_DW3) & VOLTAGE_INFO_MASK; in cnl_get_buf_trans_dp() local
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()
[all …]
/dflybsd-src/sys/dev/pccard/pccbb/
H A Dpccbb.c884 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()
/dflybsd-src/sys/dev/drm/amd/powerplay/smumgr/
H A Dvegam_smumgr.c602 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 …]
/dflybsd-src/sys/dev/drm/amd/display/dc/dml/
H A Ddisplay_mode_structs.h319 int voltage; member
356 int voltage; member

123