Lines Matching defs:table

69  * unpack_table - unpack a dfa table (one of accept, default, base, next check)
73 * Returns: pointer to table else NULL on failure
79 struct table_header *table = NULL;
100 /* if we have a table it must have some entries */
107 table = kvzalloc(tsize, GFP_KERNEL);
108 if (table) {
109 table->td_id = th.td_id;
110 table->td_flags = th.td_flags;
111 table->td_lolen = th.td_lolen;
113 UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
116 UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
119 UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
123 /* if table was vmalloced make sure the page tables are synced
126 if (is_vmalloc_addr(table))
131 return table;
133 kvfree(table);
140 * @flags: flags controlling what type of accept table are acceptable
143 * NOTE: this does not valid accept table values
179 /* if equivalence classes then its table size must be 256 */
193 * NOTE: this does not valid accept table values
311 struct table_header *table = NULL;
320 /* get dfa table set header */
353 table = unpack_table(data, size);
354 if (!table)
357 switch (table->td_id) {
359 if (!(table->td_flags & ACCEPT1_FLAGS(flags)))
363 if (!(table->td_flags & ACCEPT2_FLAGS(flags)))
367 if (table->td_flags != YYTD_DATA32)
373 if (table->td_flags != YYTD_DATA16)
377 if (table->td_flags != YYTD_DATA8)
383 /* check for duplicate table entry */
384 if (dfa->tables[table->td_id])
386 dfa->tables[table->td_id] = table;
387 data += table_size(table->td_lolen, table->td_flags);
388 size -= table_size(table->td_lolen, table->td_flags);
389 table = NULL;
404 kvfree(table);
453 /* Equivalence class table defined */
493 /* Equivalence class table defined */
528 /* Equivalence class table defined */
582 /* Equivalence class table defined */
644 /* Equivalence class table defined */
724 /* Equivalence class table defined */