Lines Matching defs:fsg_common
262 struct fsg_common { struct
263 struct usb_gadget *gadget;
264 struct usb_composite_dev *cdev;
265 struct fsg_dev *fsg;
266 wait_queue_head_t io_wait;
267 wait_queue_head_t fsg_wait;
270 struct rw_semaphore filesem;
273 spinlock_t lock;
275 struct usb_ep *ep0; /* Copy of gadget->ep0 */
276 struct usb_request *ep0req; /* Copy of cdev->req */
277 unsigned int ep0_req_tag;
279 struct fsg_buffhd *next_buffhd_to_fill;
280 struct fsg_buffhd *next_buffhd_to_drain;
281 struct fsg_buffhd *buffhds;
282 unsigned int fsg_num_buffers;
284 int cmnd_size;
285 u8 cmnd[MAX_COMMAND_SIZE];
287 unsigned int lun;
288 struct fsg_lun *luns[FSG_MAX_LUNS];
289 struct fsg_lun *curlun;
291 unsigned int bulk_out_maxpacket;
292 enum fsg_state state; /* For exception handling */
293 unsigned int exception_req_tag;
294 void *exception_arg;
296 enum data_direction data_dir;
297 u32 data_size;
298 u32 data_size_from_cmnd;
299 u32 tag;
323 struct fsg_common *common; argument