Lines Matching refs:nde
753 struct tmpfs_dirent *nde; in tmpfs_alloc_dirent() local
755 nde = malloc(sizeof(*nde), M_TMPFSDIR, M_WAITOK); in tmpfs_alloc_dirent()
756 nde->td_node = node; in tmpfs_alloc_dirent()
758 nde->ud.td_name = malloc(len, M_TMPFSNAME, M_WAITOK); in tmpfs_alloc_dirent()
759 tmpfs_dirent_init(nde, name, len); in tmpfs_alloc_dirent()
761 nde->td_namelen = 0; in tmpfs_alloc_dirent()
765 *de = nde; in tmpfs_alloc_dirent()
1266 struct tmpfs_dir_duphead *duphead, struct tmpfs_dirent *nde) in tmpfs_dir_attach_dup() argument
1275 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
1277 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
1278 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
1279 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1280 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1297 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MIN; in tmpfs_dir_attach_dup()
1298 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1299 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1308 nde->td_cookie = TMPFS_DIRCOOKIE_DUP_MAX; in tmpfs_dir_attach_dup()
1309 LIST_INSERT_HEAD(dupindex, nde, in tmpfs_dir_attach_dup()
1311 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1317 nde->td_cookie = de->td_cookie + 1; in tmpfs_dir_attach_dup()
1318 MPASS(tmpfs_dirent_dup(nde)); in tmpfs_dir_attach_dup()
1319 MPASS(pde->td_cookie > nde->td_cookie); in tmpfs_dir_attach_dup()
1320 MPASS(nde->td_cookie > de->td_cookie); in tmpfs_dir_attach_dup()
1321 LIST_INSERT_BEFORE(de, nde, uh.td_dup.index_entries); in tmpfs_dir_attach_dup()
1322 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); in tmpfs_dir_attach_dup()
1336 struct tmpfs_dirent *xde, *nde; in tmpfs_dir_attach() local
1358 &nde); in tmpfs_dir_attach()
1360 memcpy(nde, xde, sizeof(*xde)); in tmpfs_dir_attach()
1365 tmpfs_dir_attach_dup(dnode, &xde->ud.td_duphead, nde); in tmpfs_dir_attach()
1424 struct tmpfs_dirent *de, *dde, *nde; in tmpfs_dir_destroy() local
1426 RB_FOREACH_SAFE(de, tmpfs_dir, &dnode->tn_dir.tn_dirhead, nde) { in tmpfs_dir_destroy()
1533 struct tmpfs_dirent *de, *nde; in tmpfs_dir_getdents() local
1645 nde = tmpfs_dir_next(node, &dc); in tmpfs_dir_getdents()
1646 d.d_off = tmpfs_dirent_cookie(nde); in tmpfs_dir_getdents()
1655 de = nde; in tmpfs_dir_getdents()