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_closed(struct ffs_data *ffs);
66 __ffs_data_got_descs(struct ffs_data *ffs, char *data, size_t len);
68 __ffs_data_got_strings(struct ffs_data *ffs, char *data, size_t len);
78 struct ffs_data *ffs;
96 ffs_setup_state_clear_cancelled(struct ffs_data *ffs) in ffs_setup_state_clear_cancelled()
139 struct ffs_data *ffs;
159 struct ffs_data *ffs;
258 struct ffs_data *ffs;
265 struct ffs_data *ffs;
270 static int __must_check ffs_epfiles_create(struct ffs_data *ffs);
285 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data);
287 static int ffs_ready(struct ffs_data *ffs);
288 static void ffs_closed(struct ffs_data *ffs);
302 struct ffs_data *ffs = req->context; in ffs_ep0_complete()
307 static int __ffs_ep0_queue_wait(struct ffs_data *ffs, char *data, size_t len) in __ffs_ep0_queue_wait()
349 static int __ffs_ep0_stall(struct ffs_data *ffs) in __ffs_ep0_stall()
365 struct ffs_data *ffs = file->private_data; in ffs_ep0_write()
502 static ssize_t __ffs_ep0_read_events(struct ffs_data *ffs, char __user *buf, in __ffs_ep0_read_events()
539 struct ffs_data *ffs = file->private_data; in ffs_ep0_read()
639 static void ffs_data_reset(struct ffs_data *ffs);
643 struct ffs_data *ffs = inode->i_sb->s_fs_info; in ffs_ep0_open()
664 struct ffs_data *ffs = file->private_data; in ffs_ep0_release()
673 struct ffs_data *ffs = file->private_data; in ffs_ep0_ioctl()
691 struct ffs_data *ffs = file->private_data; in ffs_ep0_poll()
889 struct ffs_data *ffs = io_data->ffs; in ffs_epfile_async_io_complete()
1204 struct ffs_data *ffs = inode->i_sb->s_fs_info; in ffs_epfile_open()
1357 struct ffs_data *ffs = epfile->ffs; in ffs_epfile_release()
1555 struct ffs_data *ffs = epfile->ffs; in ffs_dmabuf_detach()
1886 struct ffs_data *ffs = sb->s_fs_info; in ffs_sb_create_file()
1916 struct ffs_data *ffs_data; member
1923 struct ffs_data *ffs = data->ffs_data; in ffs_sb_fill()
1926 data->ffs_data = NULL; in ffs_sb_fill()
2019 struct ffs_data *ffs; in ffs_fs_get_tree()
2043 ctx->ffs_data = ffs; in ffs_fs_get_tree()
2052 if (ctx->ffs_data) { in ffs_fs_free_fc()
2053 ffs_data_put(ctx->ffs_data); in ffs_fs_free_fc()
2090 struct ffs_data *ffs = sb->s_fs_info; in ffs_fs_kill_sb()
2134 static void ffs_data_clear(struct ffs_data *ffs);
2136 static void ffs_data_get(struct ffs_data *ffs) in ffs_data_get()
2141 static void ffs_data_put(struct ffs_data *ffs) in ffs_data_put()
2156 static void ffs_data_closed(struct ffs_data *ffs) in ffs_data_closed()
2184 static struct ffs_data *ffs_data_new(const char *dev_name) in ffs_data_new()
2186 struct ffs_data *ffs = kzalloc_obj(*ffs); in ffs_data_new()
2211 static void ffs_data_clear(struct ffs_data *ffs) in ffs_data_clear()
2245 static void ffs_data_reset(struct ffs_data *ffs) in ffs_data_reset()
2277 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev) in functionfs_bind()
2311 static void functionfs_unbind(struct ffs_data *ffs) in functionfs_unbind()
2326 static int ffs_epfiles_create(struct ffs_data *ffs) in ffs_epfiles_create()
2406 struct ffs_data *ffs; in ffs_func_eps_enable()
2835 struct ffs_data *ffs = priv; in __ffs_data_do_os_desc()
2905 static int __ffs_data_got_descs(struct ffs_data *ffs, in __ffs_data_got_descs()
3035 static int __ffs_data_got_strings(struct ffs_data *ffs, in __ffs_data_got_strings()
3170 static void __ffs_event_add(struct ffs_data *ffs, in __ffs_event_add()
3237 static void ffs_event_add(struct ffs_data *ffs, in ffs_event_add()
3248 static int ffs_ep_addr2idx(struct ffs_data *ffs, u8 endpoint_address) in ffs_ep_addr2idx()
3497 struct ffs_data *ffs_data; in ffs_do_functionfs_bind() local
3510 ffs_data = ffs_opts->dev->ffs_data; in ffs_do_functionfs_bind()
3516 func->ffs = ffs_data; in ffs_do_functionfs_bind()
3542 struct ffs_data *ffs = func->ffs; in _ffs_func_bind()
3722 struct ffs_data *ffs = container_of(work, in ffs_reset_work()
3723 struct ffs_data, reset_work); in ffs_reset_work()
3740 struct ffs_data *ffs = func->ffs; in ffs_func_set_alt()
3779 struct ffs_data *ffs = func->ffs; in ffs_func_disable()
3805 struct ffs_data *ffs = func->ffs; in ffs_func_setup()
4064 struct ffs_data *ffs = func->ffs; in ffs_func_unbind()
4206 static int ffs_acquire_dev(const char *dev_name, struct ffs_data *ffs_data) in ffs_acquire_dev() argument
4223 ffs_dev->ffs_data = ffs_data; in ffs_acquire_dev()
4224 ffs_data->private_data = ffs_dev; in ffs_acquire_dev()
4237 if (ffs_dev->ffs_data) { in ffs_release_dev()
4238 ffs_dev->ffs_data->private_data = NULL; in ffs_release_dev()
4239 ffs_dev->ffs_data = NULL; in ffs_release_dev()
4249 static int ffs_ready(struct ffs_data *ffs) in ffs_ready()
4280 static void ffs_closed(struct ffs_data *ffs) in ffs_closed()