Lines Matching refs:link
172 ipmi_hash_link_t *link, **nbuckets; in ipmi_hash_resize() local
193 while ((link = ihp->ih_buckets[idx]) != NULL) { in ipmi_hash_resize()
201 ihp->ih_buckets[idx] = link->ihl_next; in ipmi_hash_resize()
202 elem = (void *)((uintptr_t)link - ihp->ih_linkoffs); in ipmi_hash_resize()
205 link->ihl_next = nbuckets[nidx]; in ipmi_hash_resize()
206 nbuckets[nidx] = link; in ipmi_hash_resize()
233 void *link = ipmi_list_next(&(ihp)->ih_list); in ipmi_hash_first() local
235 if (link == NULL) in ipmi_hash_first()
238 return ((void *)((uintptr_t)link - ihp->ih_linkoffs)); in ipmi_hash_first()
244 void *link = ipmi_list_next((uintptr_t)elem + ihp->ih_linkoffs); in ipmi_hash_next() local
246 if (link == NULL) in ipmi_hash_next()
249 return ((void *)((uintptr_t)link - ihp->ih_linkoffs)); in ipmi_hash_next()
255 ipmi_hash_link_t *link = (void *)((uintptr_t)elem + ihp->ih_linkoffs); in ipmi_hash_insert() local
260 link->ihl_next = ihp->ih_buckets[idx]; in ipmi_hash_insert()
261 ihp->ih_buckets[idx] = link; in ipmi_hash_insert()
263 ipmi_list_append(&ihp->ih_list, link); in ipmi_hash_insert()
273 ipmi_hash_link_t *link = (void *)((uintptr_t)elem + ihp->ih_linkoffs); in ipmi_hash_remove() local
277 if (*hlp == link) in ipmi_hash_remove()
284 ipmi_list_delete(&ihp->ih_list, link); in ipmi_hash_remove()