Lines Matching refs:hp
55 dt_inthash_t *hp, *np; in dt_inttab_destroy() local
57 for (hp = ip->int_head; hp != NULL; hp = np) { in dt_inttab_destroy()
58 np = hp->inh_next; in dt_inttab_destroy()
59 dt_free(ip->int_hdl, hp); in dt_inttab_destroy()
70 dt_inthash_t *hp; in dt_inttab_insert() local
73 for (hp = ip->int_hash[h]; hp != NULL; hp = hp->inh_hash) { in dt_inttab_insert()
74 if (hp->inh_value == value && hp->inh_flags == flags) in dt_inttab_insert()
75 return (hp->inh_index); in dt_inttab_insert()
79 if ((hp = dt_alloc(ip->int_hdl, sizeof (dt_inthash_t))) == NULL) in dt_inttab_insert()
82 hp->inh_hash = ip->int_hash[h]; in dt_inttab_insert()
83 hp->inh_next = NULL; in dt_inttab_insert()
84 hp->inh_value = value; in dt_inttab_insert()
85 hp->inh_index = ip->int_index++; in dt_inttab_insert()
86 hp->inh_flags = flags; in dt_inttab_insert()
88 ip->int_hash[h] = hp; in dt_inttab_insert()
92 ip->int_head = hp; in dt_inttab_insert()
94 ip->int_tail->inh_next = hp; in dt_inttab_insert()
96 ip->int_tail = hp; in dt_inttab_insert()
97 return (hp->inh_index); in dt_inttab_insert()
109 const dt_inthash_t *hp; in dt_inttab_write() local
111 for (hp = ip->int_head; hp != NULL; hp = hp->inh_next) in dt_inttab_write()
112 *dst++ = hp->inh_value; in dt_inttab_write()