Lines Matching refs:nde
870 struct tmpfs_dirent *nde; in tmpfs_alloc_dirent() local
872 nde = malloc(sizeof(*nde), M_TMPFSDIR, M_WAITOK); in tmpfs_alloc_dirent()
873 nde->td_node = node; in tmpfs_alloc_dirent()
875 nde->ud.td_name = malloc(len, M_TMPFSNAME, M_WAITOK); in tmpfs_alloc_dirent()
876 tmpfs_dirent_init(nde, name, len); in tmpfs_alloc_dirent()
878 nde->td_namelen = 0; in tmpfs_alloc_dirent()
882 *de = nde; in tmpfs_alloc_dirent()
1381 struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde) in tmpfs_dir_attach_dup() argument
1390 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
1392 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
1393 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
1394 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1395 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1412 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
1413 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1414 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1423 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MAX; in tmpfs_dir_attach_dup()
1424 LIST_INSERT_HEAD(dupindex, nde, in tmpfs_dir_attach_dup()
1426 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1432 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
1433 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
1434 MPASS(pde->td_cookie > nde->td_cookie); in tmpfs_dir_attach_dup()
1435 MPASS(nde->td_cookie > de->td_cookie); in tmpfs_dir_attach_dup()
1436 LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1437 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1451 struct tmpfs_dirent *xde, *nde; in tmpfs_dir_attach() local
1473 &nde); in tmpfs_dir_attach()
1475 memcpy(nde, xde, sizeof(*xde)); in tmpfs_dir_attach()
1480 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde); in tmpfs_dir_attach()
1539 struct tmpfs_dirent *de, *dde, *nde; in tmpfs_dir_destroy() local
1541 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) { in tmpfs_dir_destroy()
1648 struct tmpfs_dirent *de, *nde; in tmpfs_dir_getdents() local
1760 nde = tmpfs_dir_next(node, &dc); in tmpfs_dir_getdents()
1761 d.d_off = tmpfs_dirent_cookie(nde); in tmpfs_dir_getdents()
1770 de = nde; in tmpfs_dir_getdents()