Lines Matching refs:cursor
98 static struct dentry *scan_positives(struct dentry *cursor, in scan_positives() argument
103 struct dentry *dentry = cursor->d_parent, *found = NULL; in scan_positives()
121 list_move(&cursor->d_child, p); in scan_positives()
122 p = &cursor->d_child; in scan_positives()
148 struct dentry *cursor = file->private_data; in dcache_dir_lseek() local
154 to = scan_positives(cursor, &dentry->d_subdirs, in dcache_dir_lseek()
158 list_move(&cursor->d_child, &to->d_child); in dcache_dir_lseek()
160 list_del_init(&cursor->d_child); in dcache_dir_lseek()
187 struct dentry *cursor = file->private_data; in dcache_readdir() local
197 else if (!list_empty(&cursor->d_child)) in dcache_readdir()
198 p = &cursor->d_child; in dcache_readdir()
202 while ((next = scan_positives(cursor, p, 1, next)) != NULL) { in dcache_readdir()
211 list_move_tail(&cursor->d_child, &next->d_child); in dcache_readdir()
213 list_del_init(&cursor->d_child); in dcache_readdir()