Lines Matching refs:vol_table

204 int phm_trim_voltage_table(struct pp_atomctrl_voltage_table *vol_table)  in phm_trim_voltage_table()  argument
211 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_trim_voltage_table()
220 table->mask_low = vol_table->mask_low; in phm_trim_voltage_table()
221 table->phase_delay = vol_table->phase_delay; in phm_trim_voltage_table()
223 for (i = 0; i < vol_table->count; i++) { in phm_trim_voltage_table()
224 vvalue = vol_table->entries[i].value; in phm_trim_voltage_table()
237 vol_table->entries[i].smio_low; in phm_trim_voltage_table()
242 memcpy(vol_table, table, sizeof(struct pp_atomctrl_voltage_table)); in phm_trim_voltage_table()
248 int phm_get_svi2_mvdd_voltage_table(struct pp_atomctrl_voltage_table *vol_table, in phm_get_svi2_mvdd_voltage_table() argument
257 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_mvdd_voltage_table()
260 vol_table->mask_low = 0; in phm_get_svi2_mvdd_voltage_table()
261 vol_table->phase_delay = 0; in phm_get_svi2_mvdd_voltage_table()
262 vol_table->count = dep_table->count; in phm_get_svi2_mvdd_voltage_table()
265 vol_table->entries[i].value = dep_table->entries[i].mvdd; in phm_get_svi2_mvdd_voltage_table()
266 vol_table->entries[i].smio_low = 0; in phm_get_svi2_mvdd_voltage_table()
269 result = phm_trim_voltage_table(vol_table); in phm_get_svi2_mvdd_voltage_table()
276 int phm_get_svi2_vddci_voltage_table(struct pp_atomctrl_voltage_table *vol_table, in phm_get_svi2_vddci_voltage_table() argument
285 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_vddci_voltage_table()
288 vol_table->mask_low = 0; in phm_get_svi2_vddci_voltage_table()
289 vol_table->phase_delay = 0; in phm_get_svi2_vddci_voltage_table()
290 vol_table->count = dep_table->count; in phm_get_svi2_vddci_voltage_table()
293 vol_table->entries[i].value = dep_table->entries[i].vddci; in phm_get_svi2_vddci_voltage_table()
294 vol_table->entries[i].smio_low = 0; in phm_get_svi2_vddci_voltage_table()
297 result = phm_trim_voltage_table(vol_table); in phm_get_svi2_vddci_voltage_table()
304 int phm_get_svi2_vdd_voltage_table(struct pp_atomctrl_voltage_table *vol_table, in phm_get_svi2_vdd_voltage_table() argument
312 PP_ASSERT_WITH_CODE((NULL != vol_table), in phm_get_svi2_vdd_voltage_table()
315 vol_table->mask_low = 0; in phm_get_svi2_vdd_voltage_table()
316 vol_table->phase_delay = 0; in phm_get_svi2_vdd_voltage_table()
318 vol_table->count = lookup_table->count; in phm_get_svi2_vdd_voltage_table()
320 for (i = 0; i < vol_table->count; i++) { in phm_get_svi2_vdd_voltage_table()
321 vol_table->entries[i].value = lookup_table->entries[i].us_vdd; in phm_get_svi2_vdd_voltage_table()
322 vol_table->entries[i].smio_low = 0; in phm_get_svi2_vdd_voltage_table()
329 struct pp_atomctrl_voltage_table *vol_table) in phm_trim_voltage_table_to_fit_state_table() argument
333 if (vol_table->count <= max_vol_steps) in phm_trim_voltage_table_to_fit_state_table()
336 diff = vol_table->count - max_vol_steps; in phm_trim_voltage_table_to_fit_state_table()
339 vol_table->entries[i] = vol_table->entries[i + diff]; in phm_trim_voltage_table_to_fit_state_table()
341 vol_table->count = max_vol_steps; in phm_trim_voltage_table_to_fit_state_table()