Lines Matching refs:table
119 * Return a specific data element in a specific table, and verify
120 * that it is within the bounds of the table.
124 const struct dmi_table *table;
140 table = (const struct dmi_table *)(dmi->tbladdr + offset);
142 if (table->type == 127) /* End of table */
145 if (table->length < sizeof *table)
148 offset += table->length;
150 if (table->type == type && end <= table->length)
151 return (const char *)table + base;
153 /* Search for a double NUL terminating the string table */
165 * Return a specific string in a specific table.
169 const struct dmi_table *table;
183 table = (const struct dmi_table *)(dmi->tbladdr + offset);
185 if (table->type == 127) /* End of table */
188 if (table->length < sizeof *table)
191 offset += table->length;
193 if (table->type == type && base < table->length) {
194 uint8_t index = ((const uint8_t *)table)[base];
195 const char *p = (const char *)table + table->length;
223 /* Search for a double NUL terminating the string table */
259 * Install the string in the string table, if nonempty, after