Home
last modified time | relevance | path

Searched refs:voltage_table (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/regulator/
H A Dtps65910-regulator.c95 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 Dsmu_helper.c409 uint8_t phm_get_voltage_id(pp_atomctrl_voltage_table *voltage_table, in phm_get_voltage_id() argument
412 uint8_t count = (uint8_t) (voltage_table->count); in phm_get_voltage_id()
415 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_voltage_id()
422 if (voltage_table->entries[i].value >= voltage) in phm_get_voltage_id()
H A Dsmu_helper.h83 extern uint8_t phm_get_voltage_id(struct pp_atomctrl_voltage_table *voltage_table,
H A Dsmu7_hwmgr.c287 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 Dvega10_hwmgr.c2570 struct pp_atomfwctrl_voltage_table voltage_table; in vega10_init_smc_table() local
2593 VOLTAGE_OBJ_SVID2, &voltage_table); in vega10_init_smc_table()
2597 pp_table->MaxVidStep = voltage_table.max_vid_step; in vega10_init_smc_table()
2615 data->vddc_voltage_table.psi0_enable = voltage_table.psi0_enable; in vega10_init_smc_table()
2616 data->vddc_voltage_table.psi1_enable = voltage_table.psi1_enable; in vega10_init_smc_table()
/linux/drivers/gpu/drm/radeon/
H A Dcypress_dpm.c1471 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 Dsi_dpm.h234 struct atom_voltage_table *voltage_table);
H A Dsi_dpm.c3857 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument
3861 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table()
3864 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
3867 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table()
3869 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
3874 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument
3881 voltage_table->mask_low = 0; in si_get_svi2_voltage_table()
3882 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table()
3884 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table()
3885 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table()
[all …]
H A Dradeon_atombios.c3722 struct atom_voltage_table *voltage_table) in radeon_atom_get_voltage_table() argument
3754 voltage_table->entries[i].value = in radeon_atom_get_voltage_table()
3757 voltage_table->entries[i].value, in radeon_atom_get_voltage_table()
3759 &voltage_table->entries[i].smio_low, in radeon_atom_get_voltage_table()
3760 &voltage_table->mask_low); in radeon_atom_get_voltage_table()
3766 voltage_table->count = formula->ucNumOfVoltageEntries; in radeon_atom_get_voltage_table()
3789 voltage_table->entries[i].value = in radeon_atom_get_voltage_table()
3791 voltage_table->entries[i].smio_low = in radeon_atom_get_voltage_table()
3796 voltage_table->mask_low = le32_to_cpu(gpio->ulGpioMaskVal); in radeon_atom_get_voltage_table()
3797 voltage_table->count = gpio->ucGpioEntryNum; in radeon_atom_get_voltage_table()
[all …]
/linux/drivers/gpu/drm/amd/pm/legacy-dpm/
H A Dsi_dpm.c4421 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument
4425 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table()
4428 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
4431 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table()
4433 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
4438 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument
4445 voltage_table->mask_low = 0; in si_get_svi2_voltage_table()
4446 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table()
4448 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table()
4449 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table()
[all …]