Lines Matching refs:dc
743 tmpfs_dir_first(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) in tmpfs_dir_first() argument
748 dc->tdc_tree = de; in tmpfs_dir_first()
751 dc->tdc_current = de; in tmpfs_dir_first()
753 return (dc->tdc_current); in tmpfs_dir_first()
757 tmpfs_dir_next(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) in tmpfs_dir_next() argument
761 MPASS(dc->tdc_tree != NULL); in tmpfs_dir_next()
762 if (tmpfs_dirent_dup(dc->tdc_current)) { in tmpfs_dir_next()
763 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries); in tmpfs_dir_next()
764 if (dc->tdc_current != NULL) in tmpfs_dir_next()
765 return (dc->tdc_current); in tmpfs_dir_next()
767 dc->tdc_tree = dc->tdc_current = RB_NEXT(tmpfs_dir, in tmpfs_dir_next()
768 &dnode->tn_dir.tn_dirhead, dc->tdc_tree); in tmpfs_dir_next()
769 if ((de = dc->tdc_current) != NULL && tmpfs_dirent_duphead(de)) { in tmpfs_dir_next()
770 dc->tdc_current = LIST_FIRST(&de->ud.td_duphead); in tmpfs_dir_next()
771 MPASS(dc->tdc_current != NULL); in tmpfs_dir_next()
774 return (dc->tdc_current); in tmpfs_dir_next()
791 struct tmpfs_dir_cursor *dc) in tmpfs_dir_lookup_cookie() argument
826 dc->tdc_tree = de; in tmpfs_dir_lookup_cookie()
827 dc->tdc_current = de; in tmpfs_dir_lookup_cookie()
829 dc->tdc_current = LIST_FIRST(&de->ud.td_duphead); in tmpfs_dir_lookup_cookie()
830 MPASS(dc->tdc_current != NULL); in tmpfs_dir_lookup_cookie()
832 return (dc->tdc_current); in tmpfs_dir_lookup_cookie()
835 dc->tdc_tree = de; in tmpfs_dir_lookup_cookie()
836 dc->tdc_current = de; in tmpfs_dir_lookup_cookie()
838 dc->tdc_tree = tmpfs_dir_xlookup_hash(node, in tmpfs_dir_lookup_cookie()
840 return (dc->tdc_current); in tmpfs_dir_lookup_cookie()
1154 struct tmpfs_dir_cursor dc; in tmpfs_dir_getdents() local
1184 de = tmpfs_dir_first(node, &dc); in tmpfs_dir_getdents()
1195 de = tmpfs_dir_lookup_cookie(node, uio->uio_offset, &dc); in tmpfs_dir_getdents()
1265 de = tmpfs_dir_next(node, &dc); in tmpfs_dir_getdents()