Lines Matching refs:dirs
44 struct fs_dir_stream *dirs; in fs_ls_generic() local
48 dirs = fs_opendir(dirname); in fs_ls_generic()
49 if (!dirs) in fs_ls_generic()
52 while ((dent = fs_readdir(dirs))) { in fs_ls_generic()
62 fs_closedir(dirs); in fs_ls_generic()
103 struct fs_dir_stream **dirs) in fs_opendir_unsupported() argument
142 int (*readdir)(struct fs_dir_stream *dirs, struct fs_dirent **dentp);
144 void (*closedir)(struct fs_dir_stream *dirs);
451 struct fs_dir_stream *dirs = NULL; in fs_opendir() local
454 ret = info->opendir(filename, &dirs); in fs_opendir()
461 dirs->desc = fs_dev_desc; in fs_opendir()
462 dirs->part = fs_dev_part; in fs_opendir()
464 return dirs; in fs_opendir()
467 struct fs_dirent *fs_readdir(struct fs_dir_stream *dirs) in fs_readdir() argument
473 fs_set_blk_dev_with_part(dirs->desc, dirs->part); in fs_readdir()
476 ret = info->readdir(dirs, &dirent); in fs_readdir()
486 void fs_closedir(struct fs_dir_stream *dirs) in fs_closedir() argument
490 if (!dirs) in fs_closedir()
493 fs_set_blk_dev_with_part(dirs->desc, dirs->part); in fs_closedir()
496 info->closedir(dirs); in fs_closedir()