/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_cdclk.c | 491 cdclk_config->voltage_level = (val & DSPFREQGUAR_MASK) >> in vlv_get_cdclk() 494 cdclk_config->voltage_level = (val & DSPFREQGUAR_MASK_CHV) >> in vlv_get_cdclk() 540 u32 val, cmd = cdclk_config->voltage_level; in vlv_set_cdclk() 629 u32 val, cmd = cdclk_config->voltage_level; in chv_set_cdclk() 722 cdclk_config->voltage_level = in bdw_get_cdclk() 795 cdclk_config->voltage_level); in bdw_set_cdclk() 936 cdclk_config->voltage_level = in skl_get_cdclk() 1098 cdclk_config->voltage_level); in skl_set_cdclk() 1169 cdclk_config.voltage_level = skl_calc_voltage_level(cdclk_config.cdclk); in skl_cdclk_init_hw() 1180 cdclk_config.voltage_level in skl_cdclk_uninit_hw() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/display/ |
H A D | intel_cdclk.c | 537 cdclk_config->voltage_level = (val & DSPFREQGUAR_MASK) >> in vlv_get_cdclk() 540 cdclk_config->voltage_level = (val & DSPFREQGUAR_MASK_CHV) >> in vlv_get_cdclk() 586 u32 val, cmd = cdclk_config->voltage_level; in vlv_set_cdclk() 675 u32 val, cmd = cdclk_config->voltage_level; in chv_set_cdclk() 768 cdclk_config->voltage_level = in bdw_get_cdclk() 834 cdclk_config->voltage_level); in bdw_set_cdclk() 975 cdclk_config->voltage_level = in skl_get_cdclk() 1138 cdclk_config->voltage_level); in skl_set_cdclk() 1209 cdclk_config.voltage_level = skl_calc_voltage_level(cdclk_config.cdclk); in skl_cdclk_init_hw() 1220 cdclk_config.voltage_level in skl_cdclk_uninit_hw() 2258 intel_pcode_notify(struct drm_i915_private *i915, u8 voltage_level, u8 active_pipe_count, u16 cdclk, bool cdclk_update_valid, bool pipe_count_update_valid) intel_pcode_notify() argument 2366 unsigned int cdclk = 0; u8 voltage_level, num_active_pipes = 0; intel_cdclk_pcode_pre_notify() local 2411 unsigned int cdclk = 0; u8 voltage_level, num_active_pipes = 0; intel_cdclk_pcode_post_notify() local [all...] |
H A D | intel_cdclk.h | 20 u8 voltage_level; member
|
H A D | intel_pmdemand.c | 294 new_cdclk_state->actual.voltage_level != in intel_pmdemand_needs_update() 295 old_cdclk_state->actual.voltage_level)) in intel_pmdemand_needs_update() 346 new_cdclk_state->actual.voltage_level; in intel_pmdemand_atomic_check()
|
/kernel/linux/linux-6.6/drivers/firmware/arm_scmi/ |
H A D | voltage.c | 57 __le32 voltage_level; member 62 __le32 voltage_level; member 339 cmd->voltage_level = cpu_to_le32(volt_uV); in scmi_voltage_level_set() 355 le32_to_cpu(resp->voltage_level)); in scmi_voltage_level_set()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/calcs/ |
H A D | dcn_calcs.c | 496 input.clks_cfg.voltage = v->voltage_level; in dcn_bw_calc_rq_dlg_ttu() 558 if (v->voltage_level < 2) { 588 if (v->voltage_level < 3) { 612 v->fabric_and_dram_bandwidth = v->fabric_and_dram_bandwidth_per_state[v->voltage_level]; 616 v->dcfclk = v->dcfclk_per_state[v->voltage_level]; 627 if (v->voltage_level >= 2) { 631 if (v->voltage_level >= 3) 1077 if (v->voltage_level != 0 in dcn_validate_bandwidth() 1084 if (v->voltage_level == 0 && in dcn_validate_bandwidth() 1137 if (v->voltage_level ! in dcn_validate_bandwidth() [all...] |
H A D | dcn_calc_auto.c | 1000 v->voltage_level = v->voltage_level_without_immediate_flip; in mode_support_and_system_configuration() 1004 v->voltage_level = v->voltage_level_with_immediate_flip; in mode_support_and_system_configuration() 1006 v->dcfclk = v->dcfclk_per_state[v->voltage_level]; in mode_support_and_system_configuration() 1007 v->fabric_and_dram_bandwidth = v->fabric_and_dram_bandwidth_per_state[v->voltage_level]; in mode_support_and_system_configuration() 1009 v->required_dispclk_per_ratio[j] = v->required_dispclk[v->voltage_level][j]; in mode_support_and_system_configuration() 1011 v->dpp_per_plane_per_ratio[j][k] = v->no_of_dpp[v->voltage_level][j][k]; in mode_support_and_system_configuration() 1013 v->dispclk_dppclk_support_per_ratio[j] = v->dispclk_dppclk_support[v->voltage_level][j]; in mode_support_and_system_configuration() 1015 v->max_phyclk = v->phyclk_per_state[v->voltage_level]; in mode_support_and_system_configuration()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
H A D | dcn_calcs.c | 499 input->clks_cfg.voltage = v->voltage_level; in dcn_bw_calc_rq_dlg_ttu() 560 if (v->voltage_level < 2) { 590 if (v->voltage_level < 3) { 614 v->fabric_and_dram_bandwidth = v->fabric_and_dram_bandwidth_per_state[v->voltage_level]; 618 v->dcfclk = v->dcfclk_per_state[v->voltage_level]; 629 if (v->voltage_level >= 2) { 633 if (v->voltage_level >= 3) 1062 if (v->voltage_level != 0 in dcn_validate_bandwidth() 1069 if (v->voltage_level == 0 && in dcn_validate_bandwidth() 1122 if (v->voltage_level ! in dcn_validate_bandwidth() [all...] |
H A D | dcn_calc_auto.c | 1000 v->voltage_level = v->voltage_level_without_immediate_flip; in mode_support_and_system_configuration() 1004 v->voltage_level = v->voltage_level_with_immediate_flip; in mode_support_and_system_configuration() 1006 v->dcfclk = v->dcfclk_per_state[v->voltage_level]; in mode_support_and_system_configuration() 1007 v->fabric_and_dram_bandwidth = v->fabric_and_dram_bandwidth_per_state[v->voltage_level]; in mode_support_and_system_configuration() 1009 v->required_dispclk_per_ratio[j] = v->required_dispclk[v->voltage_level][j]; in mode_support_and_system_configuration() 1011 v->dpp_per_plane_per_ratio[j][k] = v->no_of_dpp[v->voltage_level][j][k]; in mode_support_and_system_configuration() 1013 v->dispclk_dppclk_support_per_ratio[j] = v->dispclk_dppclk_support[v->voltage_level][j]; in mode_support_and_system_configuration() 1015 v->max_phyclk = v->phyclk_per_state[v->voltage_level]; in mode_support_and_system_configuration()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/ |
H A D | edp_ctrl.c | 467 u8 voltage_level, u8 pre_emphasis_level) in edp_lane_set_write() 472 if (voltage_level >= DPCD_LINK_VOLTAGE_MAX) in edp_lane_set_write() 473 voltage_level |= 0x04; in edp_lane_set_write() 481 buf[i] = voltage_level | pre_emphasis_level; in edp_lane_set_write() 483 DBG("%s: p|v=0x%x", __func__, voltage_level | pre_emphasis_level); in edp_lane_set_write() 466 edp_lane_set_write(struct edp_ctrl *ctrl, u8 voltage_level, u8 pre_emphasis_level) edp_lane_set_write() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | dcn_calcs.h | 211 int voltage_level; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | dcn_calcs.h | 211 int voltage_level; member
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | radeon_atombios.c | 3107 void radeon_atom_set_voltage(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type) in radeon_atom_set_voltage() argument 3111 u8 frev, crev, volt_index = voltage_level; in radeon_atom_set_voltage() 3117 if (voltage_level == 0xff01) in radeon_atom_set_voltage() 3129 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_set_voltage() 3134 args.v3.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_set_voltage() 3342 u16 voltage_level, u8 voltage_type, in radeon_atom_get_voltage_gpio_settings() 3358 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_get_voltage_gpio_settings() 3366 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_get_voltage_gpio_settings() 3341 radeon_atom_get_voltage_gpio_settings(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type, u32 *gpio_value, u32 *gpio_mask) radeon_atom_get_voltage_gpio_settings() argument
|
H A D | radeon.h | 303 void radeon_atom_set_voltage(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type); 305 u16 voltage_level, u8 voltage_type,
|
H A D | ci_dpm.c | 2979 SMU7_Discrete_VoltageLevel voltage_level; in ci_populate_smc_acpi_level() local 3046 if (ci_populate_mvdd_value(rdev, 0, &voltage_level)) in ci_populate_smc_acpi_level() 3050 cpu_to_be32(voltage_level.Voltage * VOLTAGE_SCALE); in ci_populate_smc_acpi_level()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/ |
H A D | radeon_atombios.c | 3102 void radeon_atom_set_voltage(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type) in radeon_atom_set_voltage() argument 3106 u8 frev, crev, volt_index = voltage_level; in radeon_atom_set_voltage() 3112 if (voltage_level == 0xff01) in radeon_atom_set_voltage() 3124 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_set_voltage() 3129 args.v3.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_set_voltage() 3337 u16 voltage_level, u8 voltage_type, in radeon_atom_get_voltage_gpio_settings() 3353 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_get_voltage_gpio_settings() 3361 args.v2.usVoltageLevel = cpu_to_le16(voltage_level); in radeon_atom_get_voltage_gpio_settings() 3336 radeon_atom_get_voltage_gpio_settings(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type, u32 *gpio_value, u32 *gpio_mask) radeon_atom_get_voltage_gpio_settings() argument
|
H A D | radeon.h | 303 void radeon_atom_set_voltage(struct radeon_device *rdev, u16 voltage_level, u8 voltage_type); 305 u16 voltage_level, u8 voltage_type,
|
H A D | ci_dpm.c | 2955 SMU7_Discrete_VoltageLevel voltage_level; in ci_populate_smc_acpi_level() local 3022 if (ci_populate_mvdd_value(rdev, 0, &voltage_level)) in ci_populate_smc_acpi_level() 3026 cpu_to_be32(voltage_level.Voltage * VOLTAGE_SCALE); in ci_populate_smc_acpi_level()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1430 SMU71_Discrete_VoltageLevel voltage_level; in iceland_populate_smc_acpi_level() local 1504 if (0 == iceland_populate_mvdd_value(hwmgr, 0, &voltage_level)) in iceland_populate_smc_acpi_level() 1506 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
|
H A D | ci_smumgr.c | 1383 SMU7_Discrete_VoltageLevel voltage_level; in ci_populate_smc_acpi_level() local 1457 if (0 == ci_populate_mvdd_value(hwmgr, 0, &voltage_level)) in ci_populate_smc_acpi_level() 1459 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in ci_populate_smc_acpi_level()
|
H A D | tonga_smumgr.c | 1182 SMIO_Pattern voltage_level; in tonga_populate_smc_acpi_level() local 1246 if (0 == tonga_populate_mvdd_value(hwmgr, 0, &voltage_level)) in tonga_populate_smc_acpi_level() 1248 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in tonga_populate_smc_acpi_level()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
H A D | iceland_smumgr.c | 1430 SMU71_Discrete_VoltageLevel voltage_level; in iceland_populate_smc_acpi_level() local 1504 if (0 == iceland_populate_mvdd_value(hwmgr, 0, &voltage_level)) in iceland_populate_smc_acpi_level() 1506 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in iceland_populate_smc_acpi_level()
|
H A D | tonga_smumgr.c | 1182 SMIO_Pattern voltage_level; in tonga_populate_smc_acpi_level() local 1246 if (0 == tonga_populate_mvdd_value(hwmgr, 0, &voltage_level)) in tonga_populate_smc_acpi_level() 1248 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in tonga_populate_smc_acpi_level()
|
H A D | ci_smumgr.c | 1384 SMU7_Discrete_VoltageLevel voltage_level; in ci_populate_smc_acpi_level() local 1458 if (0 == ci_populate_mvdd_value(hwmgr, 0, &voltage_level)) in ci_populate_smc_acpi_level() 1460 PP_HOST_TO_SMC_UL(voltage_level.Voltage * VOLTAGE_SCALE); in ci_populate_smc_acpi_level()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_drv.h | 808 u8 voltage_level; member
|