Lines Matching refs:tab
130 did_hash_t *tab = (did_hash_t *)topo_mod_getspecific(mp); in did_hash_insert() local
132 int idx = did_dnhash(key) % tab->dph_hashlen; in did_hash_insert()
134 tab->dph_nelems++; in did_hash_insert()
136 topo_mod_dprintf(tab->dph_mod, "Insert [key=%p] into %p, bucket %d\n", in did_hash_insert()
137 key, (void *)tab, idx); in did_hash_insert()
138 if (tab->dph_hash[idx] == NULL) { in did_hash_insert()
139 tab->dph_hash[idx] = new; in did_hash_insert()
140 topo_mod_dprintf(tab->dph_mod, "first entry.\n"); in did_hash_insert()
145 for (assertchk = tab->dph_hash[idx]; in did_hash_insert()
149 new->dp_next = tab->dph_hash[idx]; in did_hash_insert()
150 tab->dph_hash[idx] = new; in did_hash_insert()
158 did_hash_t *tab = (did_hash_t *)topo_mod_getspecific(mp); in did_hash_lookup() local
159 int idx = did_dnhash(key) % tab->dph_hashlen; in did_hash_lookup()
161 e = tab->dph_hash[idx]; in did_hash_lookup()