Lines Matching full:entries
224 vvalue = vol_table->entries[i].value; in phm_trim_voltage_table()
228 if (vvalue == table->entries[j].value) { in phm_trim_voltage_table()
235 table->entries[table->count].value = vvalue; in phm_trim_voltage_table()
236 table->entries[table->count].smio_low = in phm_trim_voltage_table()
237 vol_table->entries[i].smio_low; in phm_trim_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()
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()
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()
339 vol_table->entries[i] = vol_table->entries[i + diff]; in phm_trim_voltage_table_to_fit_state_table()
402 if (lookup_table->entries[i].us_vdd >= voltage) in phm_get_voltage_index()
422 if (voltage_table->entries[i].value >= voltage) in phm_get_voltage_id()
435 if (vddci_table->entries[i].value >= vddci) in phm_find_closest_vddci()
436 return vddci_table->entries[i].value; in phm_find_closest_vddci()
440 return vddci_table->entries[i-1].value; in phm_find_closest_vddci()
473 voltage_id = table_info->vdd_dep_on_sclk->entries[entry_id].vddInd; in phm_get_sclk_for_voltage_evv()
474 if (lookup_table->entries[voltage_id].us_vdd == virtual_voltage_id) in phm_get_sclk_for_voltage_evv()
483 *sclk = table_info->vdd_dep_on_sclk->entries[entry_id].clk; in phm_get_sclk_for_voltage_evv()
499 table_clk_vlt = kzalloc(struct_size(table_clk_vlt, entries, 4), in phm_initializa_dynamic_state_adjustment_rule_settings()
507 table_clk_vlt->entries[0].clk = PP_DAL_POWERLEVEL_ULTRALOW; in phm_initializa_dynamic_state_adjustment_rule_settings()
510 table_clk_vlt->entries[0].v = 700; in phm_initializa_dynamic_state_adjustment_rule_settings()
512 table_clk_vlt->entries[0].v = 0; in phm_initializa_dynamic_state_adjustment_rule_settings()
513 table_clk_vlt->entries[1].clk = PP_DAL_POWERLEVEL_LOW; in phm_initializa_dynamic_state_adjustment_rule_settings()
516 table_clk_vlt->entries[1].v = 740; in phm_initializa_dynamic_state_adjustment_rule_settings()
518 table_clk_vlt->entries[1].v = 720; in phm_initializa_dynamic_state_adjustment_rule_settings()
519 table_clk_vlt->entries[2].clk = PP_DAL_POWERLEVEL_NOMINAL; in phm_initializa_dynamic_state_adjustment_rule_settings()
522 table_clk_vlt->entries[2].v = 800; in phm_initializa_dynamic_state_adjustment_rule_settings()
524 table_clk_vlt->entries[2].v = 810; in phm_initializa_dynamic_state_adjustment_rule_settings()
525 table_clk_vlt->entries[3].clk = PP_DAL_POWERLEVEL_PERFORMANCE; in phm_initializa_dynamic_state_adjustment_rule_settings()
526 table_clk_vlt->entries[3].v = 900; in phm_initializa_dynamic_state_adjustment_rule_settings()
561 if (dal_power_level == table->entries[i].clk) { in phm_apply_dal_min_voltage_request()
562 req_vddc = table->entries[i].v; in phm_apply_dal_min_voltage_request()
569 if (req_vddc <= vddc_table->entries[i].vddc) { in phm_apply_dal_min_voltage_request()
570 req_volt = (((uint32_t)vddc_table->entries[i].vddc) * VOLTAGE_SCALE); in phm_apply_dal_min_voltage_request()
700 dep_table->entries[i].clk = allowed_dep_table->entries[i].clk; in smu_get_voltage_dependency_table_ppt_v1()
701 dep_table->entries[i].vddInd = allowed_dep_table->entries[i].vddInd; in smu_get_voltage_dependency_table_ppt_v1()
702 dep_table->entries[i].vdd_offset = allowed_dep_table->entries[i].vdd_offset; in smu_get_voltage_dependency_table_ppt_v1()
703 dep_table->entries[i].vddc = allowed_dep_table->entries[i].vddc; in smu_get_voltage_dependency_table_ppt_v1()
704 dep_table->entries[i].vddgfx = allowed_dep_table->entries[i].vddgfx; in smu_get_voltage_dependency_table_ppt_v1()
705 dep_table->entries[i].vddci = allowed_dep_table->entries[i].vddci; in smu_get_voltage_dependency_table_ppt_v1()
706 dep_table->entries[i].mvdd = allowed_dep_table->entries[i].mvdd; in smu_get_voltage_dependency_table_ppt_v1()
707 dep_table->entries[i].phases = allowed_dep_table->entries[i].phases; in smu_get_voltage_dependency_table_ppt_v1()
708 dep_table->entries[i].cks_enable = allowed_dep_table->entries[i].cks_enable; in smu_get_voltage_dependency_table_ppt_v1()
709 dep_table->entries[i].cks_voffset = allowed_dep_table->entries[i].cks_voffset; in smu_get_voltage_dependency_table_ppt_v1()