Lines Matching full:hp
104 dt_strhash_t *hp, *hq; in dt_strtab_destroy() local
108 for (hp = sp->str_hash[i]; hp != NULL; hp = hq) { in dt_strtab_destroy()
109 hq = hp->str_next; in dt_strtab_destroy()
110 free(hp); in dt_strtab_destroy()
148 dt_strtab_compare(dt_strtab_t *sp, dt_strhash_t *hp, in dt_strtab_compare() argument
151 ulong_t b = hp->str_buf; in dt_strtab_compare()
152 const char *buf = hp->str_data; in dt_strtab_compare()
219 dt_strhash_t *hp; in dt_strtab_index() local
228 for (hp = sp->str_hash[h]; hp != NULL; hp = hp->str_next) { in dt_strtab_index()
229 if (dt_strtab_compare(sp, hp, str, len + 1) == 0) in dt_strtab_index()
230 return (hp->str_off); in dt_strtab_index()
239 dt_strhash_t *hp; in dt_strtab_insert() local
253 if ((hp = malloc(sizeof (dt_strhash_t))) == NULL) in dt_strtab_insert()
256 hp->str_data = sp->str_ptr; in dt_strtab_insert()
257 hp->str_buf = sp->str_nbufs - 1; in dt_strtab_insert()
258 hp->str_off = sp->str_size; in dt_strtab_insert()
259 hp->str_len = len; in dt_strtab_insert()
260 hp->str_next = sp->str_hash[h]; in dt_strtab_insert()
267 free(hp); in dt_strtab_insert()
273 sp->str_hash[h] = hp; in dt_strtab_insert()
275 return (hp->str_off); in dt_strtab_insert()