Lines Matching refs:compat
137 … const char *filename, uint16_t file_priority, uint32_t line_number, bool compat) { in trie_node_add_value() argument
148 if (!compat) { in trie_node_add_value()
192 … const char *filename, uint16_t file_priority, uint32_t line_number, bool compat) { in trie_insert() argument
245 … return trie_node_add_value(trie, node, key, value, filename, file_priority, line_number, compat); in trie_insert()
270 … return trie_node_add_value(trie, child, key, value, filename, file_priority, line_number, compat); in trie_insert()
288 static void trie_store_nodes_size(struct trie_f *trie, struct trie_node *node, bool compat) { in trie_store_nodes_size() argument
290 trie_store_nodes_size(trie, node->children[i].child, compat); in trie_store_nodes_size()
296 …trie->strings_off += compat ? sizeof(struct trie_value_entry_f) : sizeof(struct trie_value_entry2_… in trie_store_nodes_size()
299 static int64_t trie_store_nodes(struct trie_f *trie, struct trie_node *node, bool compat) { in trie_store_nodes() argument
318 child_off = trie_store_nodes(trie, node->children[i].child, compat); in trie_store_nodes()
349 …fwrite(&v, compat ? sizeof(struct trie_value_entry_f) : sizeof(struct trie_value_entry2_f), 1, tri… in trie_store_nodes()
356 static int trie_store(struct trie *trie, const char *filename, bool compat) { in trie_store() argument
370 ….value_entry_size = htole64(compat ? sizeof(struct trie_value_entry_f) : sizeof(struct trie_value_… in trie_store()
376 trie_store_nodes_size(&t, trie->root, compat); in trie_store()
387 root_off = trie_store_nodes(&t, trie->root, compat); in trie_store()
423 …t.values_count * (compat ? sizeof(struct trie_value_entry_f) : sizeof(struct trie_value_entry2_f))… in trie_store()
436 uint16_t file_priority, uint32_t line_number, bool compat) { in insert_data() argument
459 … trie_insert(trie, trie->root, *entry, line, value, filename, file_priority, line_number, compat); in insert_data()
464 static int import_file(struct trie *trie, const char *filename, uint16_t file_priority, bool compat… in import_file() argument
547 … err = insert_data(trie, match_list, line, filename, file_priority, line_number, compat); in import_file()
568 … err = insert_data(trie, match_list, line, filename, file_priority, line_number, compat); in import_file()
582 int hwdb_update(const char *root, const char *hwdb_bin_dir, bool strict, bool compat) { in hwdb_update() argument
616 err = import_file(trie, *f, file_priority++, compat); in hwdb_update()
642 err = trie_store(trie, hwdb_bin, compat); in hwdb_update()