| /linux/drivers/regulator/ |
| H A D | tps65910-regulator.c | 95 const unsigned int *voltage_table; member 104 .voltage_table = VRTC_VSEL_table, 111 .voltage_table = VIO_VSEL_table, 127 .voltage_table = VDD3_VSEL_table, 134 .voltage_table = VDIG1_VSEL_table, 141 .voltage_table = VDIG2_VSEL_table, 148 .voltage_table = VPLL_VSEL_table, 155 .voltage_table = VDAC_VSEL_table, 162 .voltage_table = VAUX1_VSEL_table, 169 .voltage_table = VAUX2_VSEL_table, [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | smu_helper.c | 408 uint8_t phm_get_voltage_id(pp_atomctrl_voltage_table *voltage_table, in phm_get_voltage_id() argument 411 uint8_t count = (uint8_t) (voltage_table->count); in phm_get_voltage_id() 414 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_voltage_id() 421 if (voltage_table->entries[i].value >= voltage) in phm_get_voltage_id()
|
| H A D | smu_helper.h | 83 extern uint8_t phm_get_voltage_id(struct pp_atomctrl_voltage_table *voltage_table,
|
| H A D | smu7_hwmgr.c | 287 static int phm_get_svi2_voltage_table_v0(pp_atomctrl_voltage_table *voltage_table, in phm_get_svi2_voltage_table_v0() argument 293 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_svi2_voltage_table_v0() 296 voltage_table->mask_low = 0; in phm_get_svi2_voltage_table_v0() 297 voltage_table->phase_delay = 0; in phm_get_svi2_voltage_table_v0() 298 voltage_table->count = voltage_dependency_table->count; in phm_get_svi2_voltage_table_v0() 301 voltage_table->entries[i].value = in phm_get_svi2_voltage_table_v0() 303 voltage_table->entries[i].smio_low = 0; in phm_get_svi2_voltage_table_v0()
|
| H A D | vega10_hwmgr.c | 2569 struct pp_atomfwctrl_voltage_table voltage_table; in vega10_init_smc_table() local 2592 VOLTAGE_OBJ_SVID2, &voltage_table); in vega10_init_smc_table() 2596 pp_table->MaxVidStep = voltage_table.max_vid_step; in vega10_init_smc_table() 2614 data->vddc_voltage_table.psi0_enable = voltage_table.psi0_enable; in vega10_init_smc_table() 2615 data->vddc_voltage_table.psi1_enable = voltage_table.psi1_enable; in vega10_init_smc_table()
|
| /linux/drivers/gpu/drm/radeon/ |
| H A D | cypress_dpm.c | 1471 struct atom_voltage_table *voltage_table) in cypress_trim_voltage_table_to_fit_state_table() argument 1475 if (voltage_table->count <= MAX_NO_VREG_STEPS) in cypress_trim_voltage_table_to_fit_state_table() 1478 diff = voltage_table->count - MAX_NO_VREG_STEPS; in cypress_trim_voltage_table_to_fit_state_table() 1481 voltage_table->entries[i] = voltage_table->entries[i + diff]; in cypress_trim_voltage_table_to_fit_state_table() 1483 voltage_table->count = MAX_NO_VREG_STEPS; in cypress_trim_voltage_table_to_fit_state_table() 1515 struct atom_voltage_table *voltage_table, in cypress_populate_smc_voltage_table() argument 1520 for (i = 0; i < voltage_table->count; i++) { in cypress_populate_smc_voltage_table() 1522 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in cypress_populate_smc_voltage_table()
|
| H A D | si_dpm.h | 234 struct atom_voltage_table *voltage_table);
|
| H A D | ci_dpm.c | 153 struct atom_voltage_table_entry *voltage_table, 2071 struct atom_voltage_table *voltage_table) in ci_get_svi2_voltage_table() argument 2078 voltage_table->mask_low = 0; in ci_get_svi2_voltage_table() 2079 voltage_table->phase_delay = 0; in ci_get_svi2_voltage_table() 2081 voltage_table->count = voltage_dependency_table->count; in ci_get_svi2_voltage_table() 2082 for (i = 0; i < voltage_table->count; i++) { in ci_get_svi2_voltage_table() 2083 voltage_table->entries[i].value = voltage_dependency_table->entries[i].v; in ci_get_svi2_voltage_table() 2084 voltage_table->entries[i].smio_low = 0; in ci_get_svi2_voltage_table() 2153 struct atom_voltage_table_entry *voltage_table, in ci_populate_smc_voltage_table() argument 2158 ret = ci_get_std_voltage_value_sidd(rdev, voltage_table, in ci_populate_smc_voltage_table() [all …]
|
| H A D | si_dpm.c | 3862 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument 3866 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table() 3869 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table() 3872 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table() 3874 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table() 3879 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument 3886 voltage_table->mask_low = 0; in si_get_svi2_voltage_table() 3887 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table() 3889 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table() 3890 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table() [all …]
|
| H A D | radeon_atombios.c | 3712 struct atom_voltage_table *voltage_table) in radeon_atom_get_voltage_table() argument 3744 voltage_table->entries[i].value = in radeon_atom_get_voltage_table() 3747 voltage_table->entries[i].value, in radeon_atom_get_voltage_table() 3749 &voltage_table->entries[i].smio_low, in radeon_atom_get_voltage_table() 3750 &voltage_table->mask_low); in radeon_atom_get_voltage_table() 3756 voltage_table->count = formula->ucNumOfVoltageEntries; in radeon_atom_get_voltage_table() 3779 voltage_table->entries[i].value = in radeon_atom_get_voltage_table() 3781 voltage_table->entries[i].smio_low = in radeon_atom_get_voltage_table() 3786 voltage_table->mask_low = le32_to_cpu(gpio->ulGpioMaskVal); in radeon_atom_get_voltage_table() 3787 voltage_table->count = gpio->ucGpioEntryNum; in radeon_atom_get_voltage_table() [all …]
|
| H A D | ni_dpm.c | 1258 struct atom_voltage_table *voltage_table, in ni_populate_smc_voltage_table() argument 1263 for (i = 0; i < voltage_table->count; i++) { in ni_populate_smc_voltage_table() 1265 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in ni_populate_smc_voltage_table()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_atombios.c | 1382 struct atom_voltage_table *voltage_table) in amdgpu_atombios_get_voltage_table() argument 1411 voltage_table->entries[i].value = in amdgpu_atombios_get_voltage_table() 1413 voltage_table->entries[i].smio_low = in amdgpu_atombios_get_voltage_table() 1418 voltage_table->mask_low = le32_to_cpu(gpio->ulGpioMaskVal); in amdgpu_atombios_get_voltage_table() 1419 voltage_table->count = gpio->ucGpioEntryNum; in amdgpu_atombios_get_voltage_table() 1420 voltage_table->phase_delay = gpio->ucPhaseDelay; in amdgpu_atombios_get_voltage_table()
|
| /linux/drivers/gpu/drm/amd/pm/legacy-dpm/ |
| H A D | si_dpm.c | 4427 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument 4431 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table() 4434 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table() 4437 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table() 4439 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table() 4444 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument 4451 voltage_table->mask_low = 0; in si_get_svi2_voltage_table() 4452 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table() 4454 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table() 4455 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table() [all …]
|