Lines Matching refs:dc

782 tmpfs_dir_first(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc)  in tmpfs_dir_first()  argument
787 dc->tdc_tree = de; in tmpfs_dir_first()
790 dc->tdc_current = de; in tmpfs_dir_first()
792 return (dc->tdc_current); in tmpfs_dir_first()
796 tmpfs_dir_next(struct tmpfs_node *dnode, struct tmpfs_dir_cursor *dc) in tmpfs_dir_next() argument
800 MPASS(dc->tdc_tree != NULL); in tmpfs_dir_next()
801 if (tmpfs_dirent_dup(dc->tdc_current)) { in tmpfs_dir_next()
802 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries); in tmpfs_dir_next()
803 if (dc->tdc_current != NULL) in tmpfs_dir_next()
804 return (dc->tdc_current); in tmpfs_dir_next()
806 dc->tdc_tree = dc->tdc_current = RB_NEXT(tmpfs_dir, in tmpfs_dir_next()
807 &dnode->tn_dir.tn_dirhead, dc->tdc_tree); in tmpfs_dir_next()
808 if ((de = dc->tdc_current) != NULL && tmpfs_dirent_duphead(de)) { in tmpfs_dir_next()
809 dc->tdc_current = LIST_FIRST(&de->ud.td_duphead); in tmpfs_dir_next()
810 MPASS(dc->tdc_current != NULL); in tmpfs_dir_next()
813 return (dc->tdc_current); in tmpfs_dir_next()
830 struct tmpfs_dir_cursor *dc) in tmpfs_dir_lookup_cookie() argument
868 dc->tdc_tree = de; in tmpfs_dir_lookup_cookie()
869 dc->tdc_current = de; in tmpfs_dir_lookup_cookie()
871 dc->tdc_current = LIST_FIRST(&de->ud.td_duphead); in tmpfs_dir_lookup_cookie()
872 MPASS(dc->tdc_current != NULL); in tmpfs_dir_lookup_cookie()
874 return (dc->tdc_current); in tmpfs_dir_lookup_cookie()
877 dc->tdc_tree = de; in tmpfs_dir_lookup_cookie()
878 dc->tdc_current = de; in tmpfs_dir_lookup_cookie()
880 dc->tdc_tree = tmpfs_dir_xlookup_hash(node, in tmpfs_dir_lookup_cookie()
882 return (dc->tdc_current); in tmpfs_dir_lookup_cookie()
1201 struct tmpfs_dir_cursor dc; in tmpfs_dir_getdents() local
1228 de = tmpfs_dir_first(node, &dc); in tmpfs_dir_getdents()
1243 de = tmpfs_dir_lookup_cookie(node, uio->uio_offset, &dc); in tmpfs_dir_getdents()
1314 nde = tmpfs_dir_next(node, &dc); in tmpfs_dir_getdents()