Lines Matching defs:fsg_common
234 struct fsg_common { struct
235 struct usb_gadget *gadget;
236 struct usb_composite_dev *cdev;
237 struct fsg_dev *fsg;
238 wait_queue_head_t io_wait;
239 wait_queue_head_t fsg_wait;
242 struct rw_semaphore filesem;
245 spinlock_t lock;
247 struct usb_ep *ep0; /* Copy of gadget->ep0 */
248 struct usb_request *ep0req; /* Copy of cdev->req */
249 unsigned int ep0_req_tag;
251 struct fsg_buffhd *next_buffhd_to_fill;
252 struct fsg_buffhd *next_buffhd_to_drain;
253 struct fsg_buffhd *buffhds;
254 unsigned int fsg_num_buffers;
256 int cmnd_size;
257 u8 cmnd[MAX_COMMAND_SIZE];
259 unsigned int lun;
260 struct fsg_lun *luns[FSG_MAX_LUNS];
261 struct fsg_lun *curlun;
263 unsigned int bulk_out_maxpacket;
264 enum fsg_state state; /* For exception handling */
265 unsigned int exception_req_tag;
266 void *exception_arg;
268 enum data_direction data_dir;
269 u32 data_size;
270 u32 data_size_from_cmnd;
271 u32 tag;
295 struct fsg_common *common; argument