Home
last modified time | relevance | path

Searched refs:hash_table (Results 1 – 17 of 17) sorted by relevance

/external/bluetooth/glib/glib/
Dghash.c78 GHashTable *hash_table; member
127 g_hash_table_set_shift (GHashTable *hash_table, gint shift) in g_hash_table_set_shift() argument
132 hash_table->size = 1 << shift; in g_hash_table_set_shift()
133 hash_table->mod = prime_mod [shift]; in g_hash_table_set_shift()
141 hash_table->mask = mask; in g_hash_table_set_shift()
156 g_hash_table_set_shift_from_size (GHashTable *hash_table, gint size) in g_hash_table_set_shift_from_size() argument
163 g_hash_table_set_shift (hash_table, shift); in g_hash_table_set_shift_from_size()
184 g_hash_table_lookup_node (GHashTable *hash_table, in g_hash_table_lookup_node() argument
195 hash_value = (* hash_table->hash_func) (key); in g_hash_table_lookup_node()
199 node_index = hash_value % hash_table->mod; in g_hash_table_lookup_node()
[all …]
Dghash.h66 void g_hash_table_destroy (GHashTable *hash_table);
67 void g_hash_table_insert (GHashTable *hash_table,
70 void g_hash_table_replace (GHashTable *hash_table,
73 gboolean g_hash_table_remove (GHashTable *hash_table,
75 void g_hash_table_remove_all (GHashTable *hash_table);
76 gboolean g_hash_table_steal (GHashTable *hash_table,
78 void g_hash_table_steal_all (GHashTable *hash_table);
79 gpointer g_hash_table_lookup (GHashTable *hash_table,
81 gboolean g_hash_table_lookup_extended (GHashTable *hash_table,
85 void g_hash_table_foreach (GHashTable *hash_table,
[all …]
/external/bluetooth/glib/tests/
Dhash-test.c48 fill_hash_table_and_array (GHashTable *hash_table) in fill_hash_table_and_array() argument
55 g_hash_table_insert (hash_table, &array[i], &array[i]); in fill_hash_table_and_array()
386 GHashTable *hash_table; in main() local
396 hash_table = g_hash_table_new (my_hash, my_hash_equal); in main()
397 fill_hash_table_and_array (hash_table); in main()
398 pvalue = g_hash_table_find (hash_table, find_first, &value); in main()
402 keys = g_hash_table_get_keys (hash_table); in main()
406 values = g_hash_table_get_values (hash_table); in main()
412 if (values_len != keys_len && keys_len != g_hash_table_size (hash_table)) in main()
419 g_hash_table_iter_init (&iter, hash_table); in main()
[all …]
Dtestglib.c1031 GHashTable *hash_table; in hash_table_tests() local
1037 hash_table = g_hash_table_new (my_hash, my_hash_equal); in hash_table_tests()
1041 g_hash_table_insert (hash_table, &array[i], &array[i]); in hash_table_tests()
1043 pvalue = g_hash_table_find (hash_table, find_first_that, &value); in hash_table_tests()
1046 g_hash_table_foreach (hash_table, my_hash_callback, NULL); in hash_table_tests()
1051 g_hash_table_remove (hash_table, &array[i]); in hash_table_tests()
1055 g_hash_table_insert (hash_table, &array[i], &array[i]); in hash_table_tests()
1057 if (g_hash_table_foreach_remove (hash_table, my_hash_callback_remove, NULL) != 5000 || in hash_table_tests()
1058 g_hash_table_size (hash_table) != 5000) in hash_table_tests()
1060 g_hash_table_foreach (hash_table, my_hash_callback_remove_test, NULL); in hash_table_tests()
[all …]
/external/e2fsprogs/e2fsck/
Drevoke.c96 struct list_head *hash_table; member
135 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
160 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
221 journal->j_revoke->hash_table = in journal_init_revoke()
223 if (!journal->j_revoke->hash_table) { in journal_init_revoke()
230 INIT_LIST_HEAD(&journal->j_revoke->hash_table[tmp]); in journal_init_revoke()
248 hash_list = &table->hash_table[i]; in journal_destroy_revoke()
252 kfree(table->hash_table); in journal_destroy_revoke()
452 hash_list = &revoke->hash_table[i]; in journal_write_revoke_records()
632 hash_list = &revoke->hash_table[i]; in journal_clear_revoke()
/external/bluetooth/glib/gobject/
Dgparam.c853 GHashTable *hash_table; member
901 pool->hash_table = g_hash_table_new (param_spec_pool_hash, param_spec_pool_equals); in g_param_spec_pool_new()
936 g_hash_table_insert (pool->hash_table, pspec, pspec); in g_param_spec_pool_insert()
962 if (g_hash_table_remove (pool->hash_table, pspec)) in g_param_spec_pool_remove()
976 param_spec_ht_lookup (GHashTable *hash_table, in param_spec_ht_lookup() argument
988 pspec = g_hash_table_lookup (hash_table, &key); in param_spec_ht_lookup()
995 pspec = g_hash_table_lookup (hash_table, &key); in param_spec_ht_lookup()
1007 pspec = g_hash_table_lookup (hash_table, &key); in param_spec_ht_lookup()
1017 pspec = g_hash_table_lookup (hash_table, &key); in param_spec_ht_lookup()
1058 pspec = param_spec_ht_lookup (pool->hash_table, param_name, owner_type, walk_ancestors); in g_param_spec_pool_lookup()
[all …]
Dgboxed.c241 GHashTable *hash_table = boxed; in hash_table_copy() local
242 return g_hash_table_ref (hash_table); in hash_table_copy()
248 GHashTable *hash_table = boxed; in hash_table_free() local
249 g_hash_table_unref (hash_table); in hash_table_free()
/external/dnsmasq/src/
Dcache.c19 static struct crec *cache_head = NULL, *cache_tail = NULL, **hash_table = NULL; variable
112 if (!hash_table) in rehash()
120 old = hash_table; in rehash()
122 hash_table = new; in rehash()
151 return hash_table + ((val ^ (val >> 16)) & (hash_size - 1)); in hash_bucket()
308 for (crecp = hash_table[i], up = &hash_table[i]; in cache_scan_free()
601 for (crecp = hash_table[i], up = &hash_table[i]; in cache_find_by_addr()
675 for (lookup = hash_table[i]; lookup; lookup = lookup->hash_next) in add_hosts_entry()
877 for (cache = hash_table[i], up = &hash_table[i]; cache; cache = tmp) in cache_reload()
1024 for (cache = hash_table[i], up = &hash_table[i]; cache; cache = cache->hash_next) in cache_unhash_dhcp()
[all …]
/external/bison/lib/
Dhash.h55 struct hash_table;
57 typedef struct hash_table Hash_table;
Dhash.c52 struct hash_table struct
/external/webkit/WebKitTools/android/flex-2.5.4a/
Dsym.c55 hash_table table;
132 hash_table table;
Dflexdef.h331 typedef struct hash_entry **hash_table; typedef
999 extern int addsym PROTO((register char[], char*, int, hash_table, int));
1008 extern struct hash_entry *findsym PROTO((register char[], hash_table, int ));
/external/bison/src/
Duniqstr.c38 static struct hash_table *uniqstrs_table = NULL;
Dmuscle_tab.c45 static struct hash_table *muscle_table = NULL;
Dstate.c257 static struct hash_table *state_table = NULL;
Dsymtab.c452 static struct hash_table *symbol_table = NULL;
/external/webkit/WebKitTools/android/flex-2.5.4a/MISC/Atari/
DAtari.patches308 X! typedef struct hash_entry *hash_table[];
316 X! typedef struct hash_entry **hash_table;