Lines Matching refs:head
70 base += le64toh(hwdb->head->node_size); in trie_node_child()
71 base += idx * le64toh(hwdb->head->child_entry_size); in trie_node_child()
78 base += le64toh(hwdb->head->node_size); in trie_node_value()
79 base += node->children_count * le64toh(hwdb->head->child_entry_size); in trie_node_value()
80 base += idx * le64toh(hwdb->head->value_entry_size); in trie_node_value()
104 …child = bsearch(&search, (const char *)node + le64toh(hwdb->head->node_size), node->children_count, in node_lookup_f()
105 le64toh(hwdb->head->child_entry_size), trie_children_cmp_f); in node_lookup_f()
128 if (le64toh(hwdb->head->value_entry_size) >= sizeof(struct trie_value_entry2_f)) { in hwdb_add_property()
222 node = trie_node_from_off(hwdb, hwdb->head->nodes_root_off); in trie_search_f()
324 if (memcmp(hwdb->map, sig, sizeof(hwdb->head->signature)) != 0 || in sd_hwdb_new()
325 (size_t) hwdb->st.st_size != le64toh(hwdb->head->file_size)) in sd_hwdb_new()
331 log_debug("tool version: %"PRIu64, le64toh(hwdb->head->tool_version)); in sd_hwdb_new()
333 log_debug("header size %8"PRIu64" bytes", le64toh(hwdb->head->header_size)); in sd_hwdb_new()
334 log_debug("strings %8"PRIu64" bytes", le64toh(hwdb->head->strings_len)); in sd_hwdb_new()
335 log_debug("nodes %8"PRIu64" bytes", le64toh(hwdb->head->nodes_len)); in sd_hwdb_new()