Lines Matching refs:ffs_dev

251 static struct ffs_dev *_ffs_find_dev(const char *name);
252 static struct ffs_dev *_ffs_alloc_dev(void);
253 static void _ffs_free_dev(struct ffs_dev *dev);
255 static void ffs_release_dev(struct ffs_dev *ffs_dev);
3396 static struct ffs_dev *_ffs_do_find_dev(const char *name) in _ffs_do_find_dev()
3398 struct ffs_dev *dev; in _ffs_do_find_dev()
3414 static struct ffs_dev *_ffs_get_single_dev(void) in _ffs_get_single_dev()
3416 struct ffs_dev *dev; in _ffs_get_single_dev()
3419 dev = list_first_entry(&ffs_devices, struct ffs_dev, entry); in _ffs_get_single_dev()
3430 static struct ffs_dev *_ffs_find_dev(const char *name) in _ffs_find_dev()
3432 struct ffs_dev *dev; in _ffs_find_dev()
3482 if (strlen(name) >= sizeof_field(struct ffs_dev, name)) in ffs_set_inst_name()
3490 struct ffs_dev *dev; in ffs_alloc_inst()
3590 static struct ffs_dev *_ffs_alloc_dev(void) in _ffs_alloc_dev()
3592 struct ffs_dev *dev; in _ffs_alloc_dev()
3615 int ffs_name_dev(struct ffs_dev *dev, const char *name) in ffs_name_dev()
3617 struct ffs_dev *existing; in ffs_name_dev()
3634 int ffs_single_dev(struct ffs_dev *dev) in ffs_single_dev()
3654 static void _ffs_free_dev(struct ffs_dev *dev) in _ffs_free_dev()
3666 struct ffs_dev *ffs_dev; in ffs_acquire_dev() local
3670 ffs_dev = _ffs_find_dev(dev_name); in ffs_acquire_dev()
3671 if (!ffs_dev) { in ffs_acquire_dev()
3673 } else if (ffs_dev->mounted) { in ffs_acquire_dev()
3675 } else if (ffs_dev->ffs_acquire_dev_callback && in ffs_acquire_dev()
3676 ffs_dev->ffs_acquire_dev_callback(ffs_dev)) { in ffs_acquire_dev()
3679 ffs_dev->mounted = true; in ffs_acquire_dev()
3680 ffs_dev->ffs_data = ffs_data; in ffs_acquire_dev()
3681 ffs_data->private_data = ffs_dev; in ffs_acquire_dev()
3688 static void ffs_release_dev(struct ffs_dev *ffs_dev) in ffs_release_dev() argument
3692 if (ffs_dev && ffs_dev->mounted) { in ffs_release_dev()
3693 ffs_dev->mounted = false; in ffs_release_dev()
3694 if (ffs_dev->ffs_data) { in ffs_release_dev()
3695 ffs_dev->ffs_data->private_data = NULL; in ffs_release_dev()
3696 ffs_dev->ffs_data = NULL; in ffs_release_dev()
3699 if (ffs_dev->ffs_release_dev_callback) in ffs_release_dev()
3700 ffs_dev->ffs_release_dev_callback(ffs_dev); in ffs_release_dev()
3708 struct ffs_dev *ffs_obj; in ffs_ready()
3739 struct ffs_dev *ffs_obj; in ffs_closed()