Lines Matching refs:ffs_data

47 static void ffs_data_get(struct ffs_data *ffs);
48 static void ffs_data_put(struct ffs_data *ffs);
50 static struct ffs_data *__must_check ffs_data_new(const char *dev_name)
54 static void ffs_data_opened(struct ffs_data *ffs);
55 static void ffs_data_closed(struct ffs_data *ffs);
59 __ffs_data_got_descs(struct ffs_data *ffs, char *data, size_t len);
61 __ffs_data_got_strings(struct ffs_data *ffs, char *data, size_t len);
71 struct ffs_data *ffs;
88 ffs_setup_state_clear_cancelled(struct ffs_data *ffs) in ffs_setup_state_clear_cancelled()
131 struct ffs_data *ffs;
227 struct ffs_data *ffs;
234 struct ffs_data *ffs;
239 static int __must_check ffs_epfiles_create(struct ffs_data *ffs);
254 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data);
256 static int ffs_ready(struct ffs_data *ffs);
257 static void ffs_closed(struct ffs_data *ffs);
271 struct ffs_data *ffs = req->context; in ffs_ep0_complete()
276 static int __ffs_ep0_queue_wait(struct ffs_data *ffs, char *data, size_t len) in __ffs_ep0_queue_wait()
318 static int __ffs_ep0_stall(struct ffs_data *ffs) in __ffs_ep0_stall()
334 struct ffs_data *ffs = file->private_data; in ffs_ep0_write()
471 static ssize_t __ffs_ep0_read_events(struct ffs_data *ffs, char __user *buf, in __ffs_ep0_read_events()
508 struct ffs_data *ffs = file->private_data; in ffs_ep0_read()
609 struct ffs_data *ffs = inode->i_private; in ffs_ep0_open()
622 struct ffs_data *ffs = file->private_data; in ffs_ep0_release()
631 struct ffs_data *ffs = file->private_data; in ffs_ep0_ioctl()
649 struct ffs_data *ffs = file->private_data; in ffs_ep0_poll()
846 struct ffs_data *ffs = io_data->ffs; in ffs_epfile_async_io_complete()
1403 struct ffs_data *ffs = sb->s_fs_info; in ffs_sb_create_file()
1432 struct ffs_data *ffs_data; member
1439 struct ffs_data *ffs = data->ffs_data; in ffs_sb_fill()
1442 data->ffs_data = NULL; in ffs_sb_fill()
1538 struct ffs_data *ffs; in ffs_fs_get_tree()
1562 ctx->ffs_data = ffs; in ffs_fs_get_tree()
1571 if (ctx->ffs_data) { in ffs_fs_free_fc()
1572 ffs_data_put(ctx->ffs_data); in ffs_fs_free_fc()
1646 static void ffs_data_clear(struct ffs_data *ffs);
1647 static void ffs_data_reset(struct ffs_data *ffs);
1649 static void ffs_data_get(struct ffs_data *ffs) in ffs_data_get()
1654 static void ffs_data_opened(struct ffs_data *ffs) in ffs_data_opened()
1664 static void ffs_data_put(struct ffs_data *ffs) in ffs_data_put()
1679 static void ffs_data_closed(struct ffs_data *ffs) in ffs_data_closed()
1712 static struct ffs_data *ffs_data_new(const char *dev_name) in ffs_data_new()
1714 struct ffs_data *ffs = kzalloc(sizeof *ffs, GFP_KERNEL); in ffs_data_new()
1739 static void ffs_data_clear(struct ffs_data *ffs) in ffs_data_clear()
1773 static void ffs_data_reset(struct ffs_data *ffs) in ffs_data_reset()
1803 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev) in functionfs_bind()
1837 static void functionfs_unbind(struct ffs_data *ffs) in functionfs_unbind()
1852 static int ffs_epfiles_create(struct ffs_data *ffs) in ffs_epfiles_create()
1927 struct ffs_data *ffs; in ffs_func_eps_enable()
2342 struct ffs_data *ffs = priv; in __ffs_data_do_os_desc()
2412 static int __ffs_data_got_descs(struct ffs_data *ffs, in __ffs_data_got_descs()
2542 static int __ffs_data_got_strings(struct ffs_data *ffs, in __ffs_data_got_strings()
2677 static void __ffs_event_add(struct ffs_data *ffs, in __ffs_event_add()
2744 static void ffs_event_add(struct ffs_data *ffs, in ffs_event_add()
2755 static int ffs_ep_addr2idx(struct ffs_data *ffs, u8 endpoint_address) in ffs_ep_addr2idx()
3005 struct ffs_data *ffs_data; in ffs_do_functionfs_bind() local
3018 ffs_data = ffs_opts->dev->ffs_data; in ffs_do_functionfs_bind()
3024 func->ffs = ffs_data; in ffs_do_functionfs_bind()
3050 struct ffs_data *ffs = func->ffs; in _ffs_func_bind()
3230 struct ffs_data *ffs = container_of(work, in ffs_reset_work()
3231 struct ffs_data, reset_work); in ffs_reset_work()
3239 struct ffs_data *ffs = func->ffs; in ffs_func_set_alt()
3283 struct ffs_data *ffs = func->ffs; in ffs_func_setup()
3522 struct ffs_data *ffs = func->ffs; in ffs_func_unbind()
3663 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data) in ffs_acquire_dev() argument
3680 ffs_dev->ffs_data = ffs_data; in ffs_acquire_dev()
3681 ffs_data->private_data = ffs_dev; in ffs_acquire_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()
3706 static int ffs_ready(struct ffs_data *ffs) in ffs_ready()
3737 static void ffs_closed(struct ffs_data *ffs) in ffs_closed()