Lines Matching refs:ffs_data

55 static void ffs_data_get(struct ffs_data *ffs);
56 static void ffs_data_put(struct ffs_data *ffs);
58 static struct ffs_data *__must_check ffs_data_new(const char *dev_name)
62 static void ffs_data_opened(struct ffs_data *ffs);
63 static void ffs_data_closed(struct ffs_data *ffs);
67 __ffs_data_got_descs(struct ffs_data *ffs, char *data, size_t len);
69 __ffs_data_got_strings(struct ffs_data *ffs, char *data, size_t len);
79 struct ffs_data *ffs;
97 ffs_setup_state_clear_cancelled(struct ffs_data *ffs) in ffs_setup_state_clear_cancelled()
140 struct ffs_data *ffs;
160 struct ffs_data *ffs;
259 struct ffs_data *ffs;
266 struct ffs_data *ffs;
271 static int __must_check ffs_epfiles_create(struct ffs_data *ffs);
286 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data);
288 static int ffs_ready(struct ffs_data *ffs);
289 static void ffs_closed(struct ffs_data *ffs);
303 struct ffs_data *ffs = req->context; in ffs_ep0_complete()
308 static int __ffs_ep0_queue_wait(struct ffs_data *ffs, char *data, size_t len) in __ffs_ep0_queue_wait()
350 static int __ffs_ep0_stall(struct ffs_data *ffs) in __ffs_ep0_stall()
366 struct ffs_data *ffs = file->private_data; in ffs_ep0_write()
503 static ssize_t __ffs_ep0_read_events(struct ffs_data *ffs, char __user *buf, in __ffs_ep0_read_events()
540 struct ffs_data *ffs = file->private_data; in ffs_ep0_read()
641 struct ffs_data *ffs = inode->i_sb->s_fs_info; in ffs_ep0_open()
663 struct ffs_data *ffs = file->private_data; in ffs_ep0_release()
672 struct ffs_data *ffs = file->private_data; in ffs_ep0_ioctl()
690 struct ffs_data *ffs = file->private_data; in ffs_ep0_poll()
888 struct ffs_data *ffs = io_data->ffs; in ffs_epfile_async_io_complete()
1203 struct ffs_data *ffs = inode->i_sb->s_fs_info; in ffs_epfile_open()
1361 struct ffs_data *ffs = epfile->ffs; in ffs_epfile_release()
1559 struct ffs_data *ffs = epfile->ffs; in ffs_dmabuf_detach()
1896 struct ffs_data *ffs = sb->s_fs_info; in ffs_sb_create_file()
1926 struct ffs_data *ffs_data; member
1933 struct ffs_data *ffs = data->ffs_data; in ffs_sb_fill()
1936 data->ffs_data = NULL; in ffs_sb_fill()
2029 struct ffs_data *ffs; in ffs_fs_get_tree()
2053 ctx->ffs_data = ffs; in ffs_fs_get_tree()
2062 if (ctx->ffs_data) { in ffs_fs_free_fc()
2063 ffs_data_put(ctx->ffs_data); in ffs_fs_free_fc()
2095 static void ffs_data_reset(struct ffs_data *ffs);
2102 struct ffs_data *ffs = sb->s_fs_info; in ffs_fs_kill_sb()
2146 static void ffs_data_clear(struct ffs_data *ffs);
2148 static void ffs_data_get(struct ffs_data *ffs) in ffs_data_get()
2153 static void ffs_data_opened(struct ffs_data *ffs) in ffs_data_opened()
2162 static void ffs_data_put(struct ffs_data *ffs) in ffs_data_put()
2177 static void ffs_data_closed(struct ffs_data *ffs) in ffs_data_closed()
2204 static struct ffs_data *ffs_data_new(const char *dev_name) in ffs_data_new()
2206 struct ffs_data *ffs = kzalloc(sizeof *ffs, GFP_KERNEL); in ffs_data_new()
2231 static void ffs_data_clear(struct ffs_data *ffs) in ffs_data_clear()
2265 static void ffs_data_reset(struct ffs_data *ffs) in ffs_data_reset()
2295 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev) in functionfs_bind()
2329 static void functionfs_unbind(struct ffs_data *ffs) in functionfs_unbind()
2344 static int ffs_epfiles_create(struct ffs_data *ffs) in ffs_epfiles_create()
2424 struct ffs_data *ffs; in ffs_func_eps_enable()
2853 struct ffs_data *ffs = priv; in __ffs_data_do_os_desc()
2923 static int __ffs_data_got_descs(struct ffs_data *ffs, in __ffs_data_got_descs()
3053 static int __ffs_data_got_strings(struct ffs_data *ffs, in __ffs_data_got_strings()
3188 static void __ffs_event_add(struct ffs_data *ffs, in __ffs_event_add()
3255 static void ffs_event_add(struct ffs_data *ffs, in ffs_event_add()
3266 static int ffs_ep_addr2idx(struct ffs_data *ffs, u8 endpoint_address) in ffs_ep_addr2idx()
3515 struct ffs_data *ffs_data; in ffs_do_functionfs_bind() local
3528 ffs_data = ffs_opts->dev->ffs_data; in ffs_do_functionfs_bind()
3534 func->ffs = ffs_data; in ffs_do_functionfs_bind()
3560 struct ffs_data *ffs = func->ffs; in _ffs_func_bind()
3740 struct ffs_data *ffs = container_of(work, in ffs_reset_work()
3741 struct ffs_data, reset_work); in ffs_reset_work()
3758 struct ffs_data *ffs = func->ffs; in ffs_func_set_alt()
3793 struct ffs_data *ffs = func->ffs; in ffs_func_disable()
3815 struct ffs_data *ffs = func->ffs; in ffs_func_setup()
4074 struct ffs_data *ffs = func->ffs; in ffs_func_unbind()
4216 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data) in ffs_acquire_dev() argument
4233 ffs_dev->ffs_data = ffs_data; in ffs_acquire_dev()
4234 ffs_data->private_data = ffs_dev; in ffs_acquire_dev()
4247 if (ffs_dev->ffs_data) { in ffs_release_dev()
4248 ffs_dev->ffs_data->private_data = NULL; in ffs_release_dev()
4249 ffs_dev->ffs_data = NULL; in ffs_release_dev()
4259 static int ffs_ready(struct ffs_data *ffs) in ffs_ready()
4290 static void ffs_closed(struct ffs_data *ffs) in ffs_closed()