Home
last modified time | relevance | path

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

/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/powerplay/hwmgr/
H A Damdgpu_ppatomfwctrl.c102 struct pp_atomfwctrl_voltage_table *voltage_table) in pp_atomfwctrl_get_voltage_table_v4() argument
121 voltage_table->count = 0; in pp_atomfwctrl_get_voltage_table_v4()
132 voltage_table->entries[i].value = in pp_atomfwctrl_get_voltage_table_v4()
135 voltage_table->entries[i].smio_low = in pp_atomfwctrl_get_voltage_table_v4()
139 voltage_table->count = in pp_atomfwctrl_get_voltage_table_v4()
141 voltage_table->mask_low = in pp_atomfwctrl_get_voltage_table_v4()
144 voltage_table->phase_delay = in pp_atomfwctrl_get_voltage_table_v4()
148 voltage_table->psi1_enable = in pp_atomfwctrl_get_voltage_table_v4()
150 voltage_table->psi0_enable = in pp_atomfwctrl_get_voltage_table_v4()
152 voltage_table->max_vid_step = in pp_atomfwctrl_get_voltage_table_v4()
[all …]
H A Damdgpu_smu_helper.c413 uint8_t phm_get_voltage_id(pp_atomctrl_voltage_table *voltage_table, in phm_get_voltage_id() argument
416 uint8_t count = (uint8_t) (voltage_table->count); in phm_get_voltage_id()
419 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_voltage_id()
426 if (voltage_table->entries[i].value >= voltage) in phm_get_voltage_id()
H A Damdgpu_ppatomctrl.c534 pp_atomctrl_voltage_table *voltage_table) in atomctrl_get_voltage_table_v3() argument
558 voltage_table->entries[i].value = in atomctrl_get_voltage_table_v3()
560 voltage_table->entries[i].smio_low = in atomctrl_get_voltage_table_v3()
564 voltage_table->mask_low = in atomctrl_get_voltage_table_v3()
566 voltage_table->count = in atomctrl_get_voltage_table_v3()
568 voltage_table->phase_delay = in atomctrl_get_voltage_table_v3()
H A Dppatomfwctrl.h228 uint8_t voltage_mode, struct pp_atomfwctrl_voltage_table *voltage_table);
H A Dppatomctrl.h305 …wmgr *hwmgr, uint8_t voltage_type, uint8_t voltage_mode, pp_atomctrl_voltage_table *voltage_table);
H A Dsmu_helper.h85 extern uint8_t phm_get_voltage_id(struct pp_atomctrl_voltage_table *voltage_table,
H A Damdgpu_smu7_hwmgr.c230 static int phm_get_svi2_voltage_table_v0(pp_atomctrl_voltage_table *voltage_table, in phm_get_svi2_voltage_table_v0() argument
236 PP_ASSERT_WITH_CODE((NULL != voltage_table), in phm_get_svi2_voltage_table_v0()
239 voltage_table->mask_low = 0; in phm_get_svi2_voltage_table_v0()
240 voltage_table->phase_delay = 0; in phm_get_svi2_voltage_table_v0()
241 voltage_table->count = voltage_dependency_table->count; in phm_get_svi2_voltage_table_v0()
244 voltage_table->entries[i].value = in phm_get_svi2_voltage_table_v0()
246 voltage_table->entries[i].smio_low = 0; in phm_get_svi2_voltage_table_v0()
H A Damdgpu_vega10_hwmgr.c2510 struct pp_atomfwctrl_voltage_table voltage_table; in vega10_init_smc_table() local
2533 VOLTAGE_OBJ_SVID2, &voltage_table); in vega10_init_smc_table()
2534 pp_table->MaxVidStep = voltage_table.max_vid_step; in vega10_init_smc_table()
2552 data->vddc_voltage_table.psi0_enable = voltage_table.psi0_enable; in vega10_init_smc_table()
2553 data->vddc_voltage_table.psi1_enable = voltage_table.psi1_enable; in vega10_init_smc_table()
/netbsd-src/sys/dev/fdt/
H A Dpwmregulator.c144 struct voltage_duty *voltage_table = kmem_zalloc(len, KM_SLEEP); in pwmregulator_attach() local
146 (uint32_t *)voltage_table, len / sizeof(uint32_t)) == 0) { in pwmregulator_attach()
147 sc->sc_voltage_table = voltage_table; in pwmregulator_attach()
154 voltage_table[i].voltage, in pwmregulator_attach()
155 voltage_table[i].duty); in pwmregulator_attach()
/netbsd-src/sys/external/bsd/drm2/dist/drm/radeon/
H A Dradeon_cypress_dpm.c1474 struct atom_voltage_table *voltage_table) in cypress_trim_voltage_table_to_fit_state_table() argument
1478 if (voltage_table->count <= MAX_NO_VREG_STEPS) in cypress_trim_voltage_table_to_fit_state_table()
1481 diff = voltage_table->count - MAX_NO_VREG_STEPS; in cypress_trim_voltage_table_to_fit_state_table()
1484 voltage_table->entries[i] = voltage_table->entries[i + diff]; in cypress_trim_voltage_table_to_fit_state_table()
1486 voltage_table->count = MAX_NO_VREG_STEPS; in cypress_trim_voltage_table_to_fit_state_table()
1518 struct atom_voltage_table *voltage_table, in cypress_populate_smc_voltage_table() argument
1523 for (i = 0; i < voltage_table->count; i++) { in cypress_populate_smc_voltage_table()
1525 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in cypress_populate_smc_voltage_table()
H A Dradeon_ci_dpm.c178 struct atom_voltage_table *voltage_table);
186 struct atom_voltage_table_entry *voltage_table,
2121 struct atom_voltage_table *voltage_table) in ci_get_svi2_voltage_table() argument
2128 voltage_table->mask_low = 0; in ci_get_svi2_voltage_table()
2129 voltage_table->phase_delay = 0; in ci_get_svi2_voltage_table()
2131 voltage_table->count = voltage_dependency_table->count; in ci_get_svi2_voltage_table()
2132 for (i = 0; i < voltage_table->count; i++) { in ci_get_svi2_voltage_table()
2133 voltage_table->entries[i].value = voltage_dependency_table->entries[i].v; in ci_get_svi2_voltage_table()
2134 voltage_table->entries[i].smio_low = 0; in ci_get_svi2_voltage_table()
2203 struct atom_voltage_table_entry *voltage_table, in ci_populate_smc_voltage_table() argument
[all …]
H A Dradeon_si_dpm.c3925 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument
3929 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table()
3932 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
3935 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table()
3937 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
3942 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument
3949 voltage_table->mask_low = 0; in si_get_svi2_voltage_table()
3950 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table()
3952 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table()
3953 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table()
[all …]
H A Dradeon_atombios.c3719 struct atom_voltage_table *voltage_table) in radeon_atom_get_voltage_table() argument
3751 voltage_table->entries[i].value = in radeon_atom_get_voltage_table()
3754 voltage_table->entries[i].value, in radeon_atom_get_voltage_table()
3756 &voltage_table->entries[i].smio_low, in radeon_atom_get_voltage_table()
3757 &voltage_table->mask_low); in radeon_atom_get_voltage_table()
3763 voltage_table->count = formula->ucNumOfVoltageEntries; in radeon_atom_get_voltage_table()
3786 voltage_table->entries[i].value = in radeon_atom_get_voltage_table()
3788 voltage_table->entries[i].smio_low = in radeon_atom_get_voltage_table()
3793 voltage_table->mask_low = le32_to_cpu(gpio->ulGpioMaskVal); in radeon_atom_get_voltage_table()
3794 voltage_table->count = gpio->ucGpioEntryNum; in radeon_atom_get_voltage_table()
[all …]
H A Dradeon_ni_dpm.c1264 struct atom_voltage_table *voltage_table, in ni_populate_smc_voltage_table() argument
1269 for (i = 0; i < voltage_table->count; i++) { in ni_populate_smc_voltage_table()
1271 table->lowSMIO[i] |= cpu_to_be32(voltage_table->entries[i].smio_low); in ni_populate_smc_voltage_table()
H A Dradeon.h347 struct atom_voltage_table *voltage_table);
/netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
H A Damdgpu_atombios.h191 struct atom_voltage_table *voltage_table);
H A Damdgpu_atombios.c1505 struct atom_voltage_table *voltage_table) in amdgpu_atombios_get_voltage_table() argument
1534 voltage_table->entries[i].value = in amdgpu_atombios_get_voltage_table()
1536 voltage_table->entries[i].smio_low = in amdgpu_atombios_get_voltage_table()
1541 voltage_table->mask_low = le32_to_cpu(gpio->ulGpioMaskVal); in amdgpu_atombios_get_voltage_table()
1542 voltage_table->count = gpio->ucGpioEntryNum; in amdgpu_atombios_get_voltage_table()
1543 voltage_table->phase_delay = gpio->ucPhaseDelay; in amdgpu_atombios_get_voltage_table()
H A Damdgpu_si_dpm.c4389 struct atom_voltage_table *voltage_table) in si_trim_voltage_table_to_fit_state_table() argument
4393 if (voltage_table->count <= max_voltage_steps) in si_trim_voltage_table_to_fit_state_table()
4396 diff = voltage_table->count - max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
4399 voltage_table->entries[i] = voltage_table->entries[i + diff]; in si_trim_voltage_table_to_fit_state_table()
4401 voltage_table->count = max_voltage_steps; in si_trim_voltage_table_to_fit_state_table()
4406 struct atom_voltage_table *voltage_table) in si_get_svi2_voltage_table() argument
4413 voltage_table->mask_low = 0; in si_get_svi2_voltage_table()
4414 voltage_table->phase_delay = 0; in si_get_svi2_voltage_table()
4416 voltage_table->count = voltage_dependency_table->count; in si_get_svi2_voltage_table()
4417 for (i = 0; i < voltage_table->count; i++) { in si_get_svi2_voltage_table()
[all …]