Lines Matching refs:hp
99 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local
103 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy()
104 hq = hp->str_next; in dt_strtab_destroy()
105 free(hp); in dt_strtab_destroy()
143 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, in dt_strtab_compare() argument
146 ulong_t b = hp->str_buf; in dt_strtab_compare()
147 const char *buf = hp->str_data; in dt_strtab_compare()
207 dt_strhash_t *hp; in dt_strtab_index() local
216 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index()
217 if (dt_strtab_compare(sp, hp, str, len + 1) == 0) in dt_strtab_index()
218 return (hp->str_off); in dt_strtab_index()
227 dt_strhash_t *hp; in dt_strtab_insert() local
241 if ((hp = malloc(sizeof (dt_strhash_t))) == NULL) in dt_strtab_insert()
244 hp->str_data = sp->str_ptr; in dt_strtab_insert()
245 hp->str_buf = sp->str_nbufs - 1; in dt_strtab_insert()
246 hp->str_off = sp->str_size; in dt_strtab_insert()
247 hp->str_len = len; in dt_strtab_insert()
248 hp->str_next = sp->str_hash[h]; in dt_strtab_insert()
259 sp->str_hash[h] = hp; in dt_strtab_insert()
261 return (hp->str_off); in dt_strtab_insert()