Lines Matching defs:tbl
27 __lookup_constant(const struct constant_table *tbl, const char *name)
29 for ( ; tbl->name; tbl++)
30 if (strcmp(name, tbl->name) == 0)
31 return tbl;
37 * @tbl: The table of constants to search.
41 int lookup_constant(const struct constant_table *tbl, const char *name, int not_found)
43 const struct constant_table *p = __lookup_constant(tbl, name);
328 * @tbl: The constant table to validate.
334 bool validate_constant_table(const struct constant_table *tbl, size_t tbl_size,
346 if (!tbl[i].name) {
349 } else if (i > 0 && tbl[i - 1].name) {
350 int c = strcmp(tbl[i-1].name, tbl[i].name);
354 i, tbl[i].name);
359 i, tbl[i-1].name, tbl[i].name);
364 if (tbl[i].value != special &&
365 (tbl[i].value < low || tbl[i].value > high)) {
367 i, tbl[i].name, tbl[i].value, low, high);