Lines Matching refs:ffs_dev
285 static struct ffs_dev *_ffs_find_dev(const char *name);
286 static struct ffs_dev *_ffs_alloc_dev(void);
287 static void _ffs_free_dev(struct ffs_dev *dev);
289 static void ffs_release_dev(struct ffs_dev *ffs_dev);
3907 static struct ffs_dev *_ffs_do_find_dev(const char *name) in _ffs_do_find_dev()
3909 struct ffs_dev *dev; in _ffs_do_find_dev()
3925 static struct ffs_dev *_ffs_get_single_dev(void) in _ffs_get_single_dev()
3927 struct ffs_dev *dev; in _ffs_get_single_dev()
3930 dev = list_first_entry(&ffs_devices, struct ffs_dev, entry); in _ffs_get_single_dev()
3941 static struct ffs_dev *_ffs_find_dev(const char *name) in _ffs_find_dev()
3943 struct ffs_dev *dev; in _ffs_find_dev()
4013 if (strlen(name) >= sizeof_field(struct ffs_dev, name)) in ffs_set_inst_name()
4021 struct ffs_dev *dev; in ffs_alloc_inst()
4122 static struct ffs_dev *_ffs_alloc_dev(void) in _ffs_alloc_dev()
4124 struct ffs_dev *dev; in _ffs_alloc_dev()
4147 int ffs_name_dev(struct ffs_dev *dev, const char *name) in ffs_name_dev()
4149 struct ffs_dev *existing; in ffs_name_dev()
4166 int ffs_single_dev(struct ffs_dev *dev) in ffs_single_dev()
4186 static void _ffs_free_dev(struct ffs_dev *dev) in _ffs_free_dev()
4198 struct ffs_dev *ffs_dev; in ffs_acquire_dev() local
4202 ffs_dev = _ffs_find_dev(dev_name); in ffs_acquire_dev()
4203 if (!ffs_dev) { in ffs_acquire_dev()
4205 } else if (ffs_dev->mounted) { in ffs_acquire_dev()
4207 } else if (ffs_dev->ffs_acquire_dev_callback && in ffs_acquire_dev()
4208 ffs_dev->ffs_acquire_dev_callback(ffs_dev)) { in ffs_acquire_dev()
4211 ffs_dev->mounted = true; in ffs_acquire_dev()
4212 ffs_dev->ffs_data = ffs_data; in ffs_acquire_dev()
4213 ffs_data->private_data = ffs_dev; in ffs_acquire_dev()
4220 static void ffs_release_dev(struct ffs_dev *ffs_dev) in ffs_release_dev() argument
4224 if (ffs_dev && ffs_dev->mounted) { in ffs_release_dev()
4225 ffs_dev->mounted = false; in ffs_release_dev()
4226 if (ffs_dev->ffs_data) { in ffs_release_dev()
4227 ffs_dev->ffs_data->private_data = NULL; in ffs_release_dev()
4228 ffs_dev->ffs_data = NULL; in ffs_release_dev()
4231 if (ffs_dev->ffs_release_dev_callback) in ffs_release_dev()
4232 ffs_dev->ffs_release_dev_callback(ffs_dev); in ffs_release_dev()
4240 struct ffs_dev *ffs_obj; in ffs_ready()
4271 struct ffs_dev *ffs_obj; in ffs_closed()