Lines Matching defs:tables
82 /* if table was vmalloced make sure the page tables are synced
95 * verify_table_headers - verify that the tables headers are as expected
96 * @tables: array of dfa tables to check (NOT NULL)
104 static int verify_table_headers(struct table_header **tables, int flags)
109 /* check that required tables exist */
110 if (!(tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] &&
111 tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK]))
115 state_count = tables[YYTD_ID_BASE]->td_lolen;
117 if (!tables[YYTD_ID_ACCEPT])
119 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen)
123 if (!tables[YYTD_ID_ACCEPT2])
125 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen)
128 if (state_count != tables[YYTD_ID_DEF]->td_lolen)
132 trans_count = tables[YYTD_ID_NXT]->td_lolen;
133 if (trans_count != tables[YYTD_ID_CHK]->td_lolen)
137 if (tables[YYTD_ID_EC] && tables[YYTD_ID_EC]->td_lolen != 256)
146 * verify_dfa - verify that transitions and states in the tables are in bounds.
159 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen;
160 trans_count = dfa->tables[YYTD_ID_NXT]->td_lolen;
201 /* Now that all the other tables are verified, verify diffencoding */
249 for (i = 0; i < ARRAY_SIZE(dfa->tables); i++) {
250 kvfree(dfa->tables[i]);
251 dfa->tables[i] = NULL;
304 * aa_dfa_unpack - unpack the binary tables of a serialized dfa
307 * @flags: flags controlling what type of accept tables are acceptable
398 if (dfa->tables[table->td_id])
400 dfa->tables[table->td_id] = table;
417 dfa->tables[table->td_id] = table;
422 error = verify_table_headers(dfa->tables, flags);
483 if (dfa->tables[YYTD_ID_EC]) {
527 if (dfa->tables[YYTD_ID_EC]) {
566 if (dfa->tables[YYTD_ID_EC]) {
620 if (dfa->tables[YYTD_ID_EC]) {
682 if (dfa->tables[YYTD_ID_EC]) {
763 if (dfa->tables[YYTD_ID_EC]) {