Lines Matching defs:table
55 static int build_opp_table(struct device *dev, const struct cvb_table *table,
61 min_mv = round_voltage(table->min_millivolts, align, UP);
62 max_mv = round_voltage(table->max_millivolts, align, DOWN);
65 const struct cvb_table_freq_entry *entry = &table->entries[i];
70 dfll_mv = get_cvb_voltage(speedo_value, table->speedo_scale,
72 dfll_mv = round_cvb_voltage(dfll_mv, table->voltage_scale,
85 * tegra_cvb_add_opp_table - build OPP table from Tegra CVB tables
86 * @dev: the struct device * for which the OPP table is built
95 * On Tegra, a CVB table encodes the relationship between operating voltage
112 const struct cvb_table *table = &tables[i];
114 if (table->speedo_id != -1 && table->speedo_id != speedo_id)
117 if (table->process_id != -1 && table->process_id != process_id)
120 ret = build_opp_table(dev, table, align, speedo_value,
122 return ret ? ERR_PTR(ret) : table;
129 const struct cvb_table *table,
135 const struct cvb_table_freq_entry *entry = &table->entries[i];