Lines Matching defs:fsg

496 static int exception_in_progress(struct fsg_dev *fsg)  in exception_in_progress()
502 static void set_bulk_out_req_length(struct fsg_dev *fsg, in set_bulk_out_req_length()
520 static int fsg_set_halt(struct fsg_dev *fsg, struct usb_ep *ep) in fsg_set_halt()
590 static int populate_bos(struct fsg_dev *fsg, u8 *buf) in populate_bos()
640 static void wakeup_thread(struct fsg_dev *fsg) in wakeup_thread()
649 static void raise_exception(struct fsg_dev *fsg, enum fsg_state new_state) in raise_exception()
677 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_disconnect() local
684 static int ep0_queue(struct fsg_dev *fsg) in ep0_queue()
700 struct fsg_dev *fsg = ep->driver_data; in ep0_complete() local
722 struct fsg_dev *fsg = ep->driver_data; in bulk_in_complete() local
742 struct fsg_dev *fsg = ep->driver_data; in bulk_out_complete() local
766 struct fsg_dev *fsg = ep->driver_data; in intr_in_complete() local
795 static void received_cbi_adsc(struct fsg_dev *fsg, struct fsg_buffhd *bh) in received_cbi_adsc()
837 static void received_cbi_adsc(struct fsg_dev *fsg, struct fsg_buffhd *bh) in received_cbi_adsc()
842 static int class_setup_req(struct fsg_dev *fsg, in class_setup_req()
925 static int standard_setup_req(struct fsg_dev *fsg, in standard_setup_req()
1062 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_setup() local
1097 static void start_transfer(struct fsg_dev *fsg, struct usb_ep *ep, in start_transfer()
1129 static int sleep_thread(struct fsg_dev *fsg) in sleep_thread()
1153 static int do_read(struct fsg_dev *fsg) in do_read()
1276 static int do_write(struct fsg_dev *fsg) in do_write()
1457 static int do_synchronize_cache(struct fsg_dev *fsg) in do_synchronize_cache()
1483 static int do_verify(struct fsg_dev *fsg) in do_verify()
1580 static int do_inquiry(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_inquiry()
1612 static int do_request_sense(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_request_sense()
1666 static int do_read_capacity(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_read_capacity()
1686 static int do_read_header(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_read_header()
1709 static int do_read_toc(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_read_toc()
1737 static int do_mode_sense(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_mode_sense()
1818 static int do_start_stop(struct fsg_dev *fsg) in do_start_stop()
1868 static int do_prevent_allow(struct fsg_dev *fsg) in do_prevent_allow()
1891 static int do_read_format_capacities(struct fsg_dev *fsg, in do_read_format_capacities()
1909 static int do_mode_select(struct fsg_dev *fsg, struct fsg_buffhd *bh) in do_mode_select()
1921 static int halt_bulk_in_endpoint(struct fsg_dev *fsg) in halt_bulk_in_endpoint()
1943 static int wedge_bulk_in_endpoint(struct fsg_dev *fsg) in wedge_bulk_in_endpoint()
1966 static int throw_away_data(struct fsg_dev *fsg) in throw_away_data()
2017 static int finish_reply(struct fsg_dev *fsg) in finish_reply()
2123 static int send_status(struct fsg_dev *fsg) in send_status()
2209 static int check_command(struct fsg_dev *fsg, int cmnd_size, in check_command()
2353 static int check_command_size_in_blocks(struct fsg_dev *fsg, int cmnd_size, in check_command_size_in_blocks()
2363 static int do_scsi_command(struct fsg_dev *fsg) in do_scsi_command()
2609 static int received_cbw(struct fsg_dev *fsg, struct fsg_buffhd *bh) in received_cbw()
2672 static int get_next_command(struct fsg_dev *fsg) in get_next_command()
2745 static int enable_endpoint(struct fsg_dev *fsg, struct usb_ep *ep, in enable_endpoint()
2758 static int alloc_request(struct fsg_dev *fsg, struct usb_ep *ep, in alloc_request()
2773 static int do_set_interface(struct fsg_dev *fsg, int altsetting) in do_set_interface()
2881 static int do_set_config(struct fsg_dev *fsg, u8 new_config) in do_set_config()
2908 static void handle_exception(struct fsg_dev *fsg) in handle_exception()
3071 struct fsg_dev *fsg = fsg_; in fsg_main_thread() local
3152 struct fsg_dev *fsg = container_of(ref, struct fsg_dev, ref); in fsg_release() local
3161 struct fsg_dev *fsg = in lun_release() local
3169 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_unbind() local
3213 static int __init check_parameters(struct fsg_dev *fsg) in check_parameters()
3336 struct fsg_dev *fsg = the_fsg; in fsg_bind() local
3589 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_suspend() local
3597 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_resume() local
3627 struct fsg_dev *fsg; in fsg_alloc() local
3647 struct fsg_dev *fsg; in fsg_init() local
3665 struct fsg_dev *fsg = the_fsg; in fsg_cleanup() local