Lines Matching refs:items

537 	htab_item_t **items;  in enlarge_htab()  local
549 items = (htab_item_t **)calloc( in enlarge_htab()
552 if (items != NULL) { in enlarge_htab()
559 item = tab->items[(i * oldsz) + j]; in enlarge_htab()
562 itemp = &items[(i * newsz) + in enlarge_htab()
578 free(tab->items); in enlarge_htab()
579 tab->items = items; in enlarge_htab()
621 htab_item_t **items = NULL; in htab_create() local
630 items = (htab_item_t **)calloc( in htab_create()
632 if (items != NULL) { in htab_create()
634 tab->items = items; in htab_create()
704 htab_item_t *items = NULL, **itemp; in htab_add() local
715 items = tab->items[hval & tab->mask]; in htab_add()
716 while (items != NULL) { in htab_add()
717 if (tab->c->cmp(items->p, p, 0) == 0) { in htab_add()
719 ec = tab->c->replace_hook(items->p, p, uid_p, in htab_add()
725 items = NULL; in htab_add()
728 items = items->next; in htab_add()
737 items = (htab_item_t *)calloc(tab->chunks, sizeof (htab_item_t)); in htab_add()
739 if (items == NULL || in htab_add()
781 items[i].hval = hval; in htab_add()
782 items[i].p = p; in htab_add()
783 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)]; in htab_add()
788 items[i].next = *itemp; in htab_add()
789 *itemp = &items[i]; in htab_add()
802 items = NULL; in htab_add()
814 if (ec != 0 && items != NULL) { in htab_add()
815 free(items); in htab_add()
844 htab_item_t *items = NULL; in htab_remove() local
869 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)]; in htab_remove()
881 items = item; in htab_remove()
915 if (items != NULL) { in htab_remove()
936 if (items != NULL) { in htab_remove()
937 free(items); in htab_remove()
994 itemp = &tab->items[(i * chunksz) + (hval & tab->mask)]; in htab_lookup()
1026 itemp = &tab->items[(hval & tab->mask)]; in htab_lookup()
1094 htab_item_t *items; in htab_dump() local
1101 items = tab->items[i]; in htab_dump()
1102 while (items != NULL) { in htab_dump()
1103 tab->c->dump(items->p); in htab_dump()
1104 items = items->next; in htab_dump()