Lines Matching refs:fsg_common

290 struct fsg_common;
293 struct fsg_common { struct
375 struct fsg_common *common;
390 static inline int __fsg_is_set(struct fsg_common *common, in __fsg_is_set()
411 static int exception_in_progress(struct fsg_common *common) in exception_in_progress()
417 static void set_bulk_out_req_length(struct fsg_common *common, in set_bulk_out_req_length()
433 static struct fsg_common *the_fsg_common;
454 static void wakeup_thread(struct fsg_common *common) in wakeup_thread()
459 static void raise_exception(struct fsg_common *common, enum fsg_state new_state) in raise_exception()
473 static int ep0_queue(struct fsg_common *common) in ep0_queue()
494 struct fsg_common *common = ep->driver_data; in bulk_in_complete()
511 struct fsg_common *common = ep->driver_data; in bulk_out_complete()
650 static int sleep_thread(struct fsg_common *common) in sleep_thread()
692 static int do_read(struct fsg_common *common) in do_read()
819 static int do_write(struct fsg_common *common) in do_write()
999 static int do_synchronize_cache(struct fsg_common *common) in do_synchronize_cache()
1006 static int do_verify(struct fsg_common *common) in do_verify()
1094 static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh) in do_inquiry()
1122 static int do_request_sense(struct fsg_common *common, struct fsg_buffhd *bh) in do_request_sense()
1173 static int do_read_capacity(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_capacity()
1192 static int do_read_header(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_header()
1215 static int do_read_toc(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_toc()
1243 static int do_mode_sense(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_sense()
1324 static int do_start_stop(struct fsg_common *common) in do_start_stop()
1338 static int do_prevent_allow(struct fsg_common *common) in do_prevent_allow()
1361 static int do_read_format_capacities(struct fsg_common *common, in do_read_format_capacities()
1379 static int do_mode_select(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_select()
1461 static int throw_away_data(struct fsg_common *common) in throw_away_data()
1517 static int finish_reply(struct fsg_common *common) in finish_reply()
1613 static int send_status(struct fsg_common *common) in send_status()
1676 static int check_command(struct fsg_common *common, int cmnd_size, in check_command()
1790 static int do_scsi_command(struct fsg_common *common) in do_scsi_command()
2086 struct fsg_common *common = fsg->common; in received_cbw()
2146 static int get_next_command(struct fsg_common *common) in get_next_command()
2187 static int enable_endpoint(struct fsg_common *common, struct usb_ep *ep, in enable_endpoint()
2199 static int alloc_request(struct fsg_common *common, struct usb_ep *ep, in alloc_request()
2210 static int do_set_interface(struct fsg_common *common, struct fsg_dev *new_fsg) in do_set_interface()
2322 static void handle_exception(struct fsg_common *common) in handle_exception()
2433 struct fsg_common *common = the_fsg_common; in fsg_main_thread()
2476 static struct fsg_common *fsg_common_init(struct fsg_common *common, in fsg_common_init()
2595 struct fsg_common *common = container_of(ref, struct fsg_common, ref); in fsg_common_release()
2783 struct fsg_common *common) in fsg_bind_config()
2817 struct fsg_common *fsg_common; in fsg_add() local
2819 fsg_common = fsg_common_init(NULL, c->cdev); in fsg_add()
2821 fsg_common->vendor_name = 0; in fsg_add()
2822 fsg_common->product_name = 0; in fsg_add()
2823 fsg_common->release = 0xffff; in fsg_add()
2825 fsg_common->ops = NULL; in fsg_add()
2826 fsg_common->private_data = NULL; in fsg_add()
2828 the_fsg_common = fsg_common; in fsg_add()
2830 return fsg_bind_config(c->cdev, c, fsg_common); in fsg_add()