Lines Matching defs:fsg_common
347 struct fsg_common { struct
348 struct usb_gadget *gadget;
349 struct usb_composite_dev *cdev;
350 struct fsg_dev *fsg, *new_fsg;
351 wait_queue_head_t fsg_wait;
354 struct rw_semaphore filesem;
357 spinlock_t lock;
359 struct usb_ep *ep0; /* Copy of gadget->ep0 */
360 struct usb_request *ep0req; /* Copy of cdev->req */
361 unsigned int ep0_req_tag;
363 struct fsg_buffhd *next_buffhd_to_fill;
364 struct fsg_buffhd *next_buffhd_to_drain;
365 struct fsg_buffhd *buffhds;
367 int cmnd_size;
368 u8 cmnd[MAX_COMMAND_SIZE];
370 unsigned int nluns;
371 unsigned int lun;
372 struct fsg_lun *luns;
373 struct fsg_lun *curlun;
375 unsigned int bulk_out_maxpacket;
376 enum fsg_state state; /* For exception handling */
377 unsigned int exception_req_tag;
379 enum data_direction data_dir;
380 u32 data_size;
381 u32 data_size_from_cmnd;
382 u32 tag;
383 u32 residue;
384 u32 usb_amount_left;
386 unsigned int can_stall:1;
387 unsigned int free_storage_on_release:1;
388 unsigned int phase_error:1;
389 unsigned int short_packet_received:1;
390 unsigned int bad_lun_okay:1;
391 unsigned int running:1;
393 int thread_wakeup_needed;
394 struct completion thread_notifier;
395 struct task_struct *thread_task;
398 const struct fsg_operations *ops;
400 void *private_data;
406 char inquiry_string[8 + 16 + 4 + 1];
408 struct kref ref;