Lines Matching refs:table
64 static int build_opp_table(struct device *dev, const struct cvb_table *table, in build_opp_table() argument
67 const struct rail_alignment *align = &table->alignment; in build_opp_table()
70 min_mv = round_voltage(table->min_millivolts, align, UP); in build_opp_table()
71 max_mv = round_voltage(table->max_millivolts, align, DOWN); in build_opp_table()
74 const struct cvb_table_freq_entry *entry = &table->entries[i]; in build_opp_table()
79 dfll_mv = get_cvb_voltage(speedo_value, table->speedo_scale, in build_opp_table()
81 dfll_mv = round_cvb_voltage(dfll_mv, table->voltage_scale, in build_opp_table()
119 const struct cvb_table *table = &tables[i]; in tegra_cvb_add_opp_table() local
121 if (table->speedo_id != -1 && table->speedo_id != speedo_id) in tegra_cvb_add_opp_table()
124 if (table->process_id != -1 && table->process_id != process_id) in tegra_cvb_add_opp_table()
127 ret = build_opp_table(dev, table, speedo_value, max_freq); in tegra_cvb_add_opp_table()
128 return ret ? ERR_PTR(ret) : table; in tegra_cvb_add_opp_table()
135 const struct cvb_table *table, in tegra_cvb_remove_opp_table() argument
141 const struct cvb_table_freq_entry *entry = &table->entries[i]; in tegra_cvb_remove_opp_table()