Lines Matching refs:dep

1105 	dcentry_t *dep;  in dnlc_dir_lookup()  local
1127 dep = dcp->dc_namehash[hash & dcp->dc_nhash_mask]; in dnlc_dir_lookup()
1128 while (dep != NULL) { in dnlc_dir_lookup()
1129 if ((dep->de_hash == hash) && in dnlc_dir_lookup()
1130 (namlen == dep->de_namelen) && in dnlc_dir_lookup()
1131 bcmp(dep->de_name, name, namlen) == 0) { in dnlc_dir_lookup()
1132 *handle = dep->de_handle; in dnlc_dir_lookup()
1137 dep = dep->de_next; in dnlc_dir_lookup()
1246 dcentry_t **hp, *dep; in dnlc_dir_add_entry() local
1259 dep = kmem_alloc(sizeof (dcentry_t) - 1 + namlen, KM_NOSLEEP); in dnlc_dir_add_entry()
1260 if (dep == NULL) { in dnlc_dir_add_entry()
1270 dep = kmem_alloc(sizeof (dcentry_t) - 1 + namlen, KM_NOSLEEP); in dnlc_dir_add_entry()
1271 if (dep != NULL) in dnlc_dir_add_entry()
1280 dep = kmem_alloc(sizeof (dcentry_t) - 1 + namlen, KM_NOSLEEP); in dnlc_dir_add_entry()
1281 if (dep == NULL) { in dnlc_dir_add_entry()
1313 kmem_free(dep, sizeof (dcentry_t) - 1 + namlen); in dnlc_dir_add_entry()
1328 dep->de_handle = handle; in dnlc_dir_add_entry()
1329 dep->de_hash = hash; in dnlc_dir_add_entry()
1340 dep->de_namelen = namlen; in dnlc_dir_add_entry()
1341 bcopy(name, dep->de_name, namlen); in dnlc_dir_add_entry()
1342 dep->de_next = *hp; in dnlc_dir_add_entry()
1343 *hp = dep; in dnlc_dir_add_entry()
1350 kmem_free(dep, sizeof (dcentry_t) - 1 + namlen); in dnlc_dir_add_entry()
1470 dcentry_t *dep, *nhp; in dnlc_dir_abort() local
1482 dep = nhp->de_next; in dnlc_dir_abort()
1485 nhp = dep; in dnlc_dir_abort()
1746 dcentry_t *dep; in dnlc_dir_update() local
1760 dep = dcp->dc_namehash[hash & dcp->dc_nhash_mask]; in dnlc_dir_update()
1761 while (dep != NULL) { in dnlc_dir_update()
1762 if ((dep->de_hash == hash) && in dnlc_dir_update()
1763 (namlen == dep->de_namelen) && in dnlc_dir_update()
1764 bcmp(dep->de_name, name, namlen) == 0) { in dnlc_dir_update()
1765 dep->de_handle = handle; in dnlc_dir_update()
1769 dep = dep->de_next; in dnlc_dir_update()
1885 dcentry_t **newhash, *dep, **nhp, *tep; in dnlc_dir_adjust_nhash() local
1914 dep = dcp->dc_namehash[i]; in dnlc_dir_adjust_nhash()
1915 while (dep != NULL) { /* for each chained entry */ in dnlc_dir_adjust_nhash()
1916 tep = dep; in dnlc_dir_adjust_nhash()
1917 dep = dep->de_next; in dnlc_dir_adjust_nhash()