Lines Matching refs:hash

103 	ulong_t hash;  in tsd_hash_search()  local
105 hash = hash_long((ulong_t)key * (ulong_t)pid, table->ht_bits); in tsd_hash_search()
106 bin = &table->ht_bins[hash]; in tsd_hash_search()
160 ulong_t hash; in tsd_hash_add() local
188 hash = hash_long((ulong_t)key * (ulong_t)pid, table->ht_bits); in tsd_hash_add()
189 bin = &table->ht_bins[hash]; in tsd_hash_add()
219 ulong_t hash; in tsd_hash_add_key() local
254 hash = hash_long((ulong_t)*keyp * (ulong_t)DTOR_PID, table->ht_bits); in tsd_hash_add_key()
255 bin = &table->ht_bins[hash]; in tsd_hash_add_key()
280 ulong_t hash; in tsd_hash_add_pid() local
296 hash = hash_long((ulong_t)PID_KEY * (ulong_t)pid, table->ht_bits); in tsd_hash_add_pid()
297 bin = &table->ht_bins[hash]; in tsd_hash_add_pid()
333 int hash, size = (1 << bits); in tsd_hash_table_init() local
345 for (hash = 0; hash < size; hash++) { in tsd_hash_table_init()
346 spin_lock_init(&table->ht_bins[hash].hb_lock); in tsd_hash_table_init()
347 INIT_HLIST_HEAD(&table->ht_bins[hash].hb_head); in tsd_hash_table_init()
407 ulong_t hash; in tsd_remove_entry() local
415 hash = hash_long((ulong_t)entry->he_key * in tsd_remove_entry()
417 entry_bin = &table->ht_bins[hash]; in tsd_remove_entry()
432 hash = hash_long((ulong_t)pid_entry->he_key * in tsd_remove_entry()
434 pid_entry_bin = &table->ht_bins[hash]; in tsd_remove_entry()
594 ulong_t hash; in tsd_destroy() local
617 hash = hash_long((ulong_t)entry->he_key * in tsd_destroy()
619 entry_bin = &table->ht_bins[hash]; in tsd_destroy()
627 hash = hash_long((ulong_t)dtor_entry->he_key * in tsd_destroy()
629 dtor_entry_bin = &table->ht_bins[hash]; in tsd_destroy()
657 ulong_t hash; in tsd_exit() local
680 hash = hash_long((ulong_t)entry->he_key * in tsd_exit()
682 entry_bin = &table->ht_bins[hash]; in tsd_exit()
690 hash = hash_long((ulong_t)pid_entry->he_key * in tsd_exit()
692 pid_entry_bin = &table->ht_bins[hash]; in tsd_exit()