Lines Matching full:hp
57 dt_inthash_t *hp, *np; in dt_inttab_destroy() local
59 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy()
60 np = hp->inh_next; in dt_inttab_destroy()
61 dt_free(ip->int_hdl, hp); in dt_inttab_destroy()
72 dt_inthash_t *hp; in dt_inttab_insert() local
75 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert()
76 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert()
77 return (hp->inh_index); in dt_inttab_insert()
81 if ((hp = dt_alloc(ip->int_hdl, sizeof (dt_inthash_t))) == NULL) in dt_inttab_insert()
84 hp->inh_hash = ip->int_hash[h]; in dt_inttab_insert()
85 hp->inh_next = NULL; in dt_inttab_insert()
86 hp->inh_value = value; in dt_inttab_insert()
87 hp->inh_index = ip->int_index++; in dt_inttab_insert()
88 hp->inh_flags = flags; in dt_inttab_insert()
90 ip->int_hash[h] = hp; in dt_inttab_insert()
94 ip->int_head = hp; in dt_inttab_insert()
96 ip->int_tail->inh_next = hp; in dt_inttab_insert()
98 ip->int_tail = hp; in dt_inttab_insert()
99 return (hp->inh_index); in dt_inttab_insert()
111 const dt_inthash_t *hp; in dt_inttab_write() local
113 for (hp = ip->int_head; hp != NULL; hp = hp->inh_next) in dt_inttab_write()
114 *dst++ = hp->inh_value; in dt_inttab_write()