Lines Matching refs:pdi
689 dt_pfdict_t *pdi; in dt_pfdict_create() local
691 if ((pdi = malloc(sizeof (dt_pfdict_t))) == NULL || in dt_pfdict_create()
692 (pdi->pdi_buckets = malloc(sizeof (dt_pfconv_t *) * n)) == NULL) { in dt_pfdict_create()
693 free(pdi); in dt_pfdict_create()
697 dtp->dt_pfdict = pdi; in dt_pfdict_create()
698 bzero(pdi->pdi_buckets, sizeof (dt_pfconv_t *) * n); in dt_pfdict_create()
699 pdi->pdi_nbuckets = n; in dt_pfdict_create()
713 pfc->pfc_next = pdi->pdi_buckets[h]; in dt_pfdict_create()
714 pdi->pdi_buckets[h] = pfc; in dt_pfdict_create()
762 dt_pfdict_t *pdi = dtp->dt_pfdict; in dt_pfdict_destroy() local
766 if (pdi == NULL) in dt_pfdict_destroy()
769 for (i = 0; i < pdi->pdi_nbuckets; i++) { in dt_pfdict_destroy()
770 for (pfc = pdi->pdi_buckets[i]; pfc != NULL; pfc = nfc) { in dt_pfdict_destroy()
776 free(pdi->pdi_buckets); in dt_pfdict_destroy()
777 free(pdi); in dt_pfdict_destroy()
784 dt_pfdict_t *pdi = dtp->dt_pfdict; in dt_pfdict_lookup() local
785 uint_t h = dt_strtab_hash(name, NULL) % pdi->pdi_nbuckets; in dt_pfdict_lookup()
788 for (pfc = pdi->pdi_buckets[h]; pfc != NULL; pfc = pfc->pfc_next) { in dt_pfdict_lookup()