Lines Matching defs:tables
123 /* if table was vmalloced make sure the page tables are synced
138 * verify_table_headers - verify that the tables headers are as expected
139 * @tables - array of dfa tables to check (NOT NULL)
147 static int verify_table_headers(struct table_header **tables, int flags)
152 /* check that required tables exist */
153 if (!(tables[YYTD_ID_DEF] && tables[YYTD_ID_BASE] &&
154 tables[YYTD_ID_NXT] && tables[YYTD_ID_CHK]))
158 state_count = tables[YYTD_ID_BASE]->td_lolen;
160 if (!tables[YYTD_ID_ACCEPT])
162 if (state_count != tables[YYTD_ID_ACCEPT]->td_lolen)
166 if (!tables[YYTD_ID_ACCEPT2])
168 if (state_count != tables[YYTD_ID_ACCEPT2]->td_lolen)
171 if (state_count != tables[YYTD_ID_DEF]->td_lolen)
175 trans_count = tables[YYTD_ID_NXT]->td_lolen;
176 if (trans_count != tables[YYTD_ID_CHK]->td_lolen)
180 if (tables[YYTD_ID_EC] && tables[YYTD_ID_EC]->td_lolen != 256)
189 * verify_dfa - verify that transitions and states in the tables are in bounds.
202 state_count = dfa->tables[YYTD_ID_BASE]->td_lolen;
203 trans_count = dfa->tables[YYTD_ID_NXT]->td_lolen;
243 /* Now that all the other tables are verified, verify diffencoding */
276 for (i = 0; i < ARRAY_SIZE(dfa->tables); i++) {
277 kvfree(dfa->tables[i]);
278 dfa->tables[i] = NULL;
295 * aa_dfa_unpack - unpack the binary tables of a serialized dfa
298 * @flags: flags controlling what type of accept tables are acceptable
384 if (dfa->tables[table->td_id])
386 dfa->tables[table->td_id] = table;
391 error = verify_table_headers(dfa->tables, flags);
452 if (dfa->tables[YYTD_ID_EC]) {
492 if (dfa->tables[YYTD_ID_EC]) {
527 if (dfa->tables[YYTD_ID_EC]) {
581 if (dfa->tables[YYTD_ID_EC]) {
643 if (dfa->tables[YYTD_ID_EC]) {
723 if (dfa->tables[YYTD_ID_EC]) {