fsg_common
static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_request_sense(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_read_capacity(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_read_capacity_16(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_read_header(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_read_toc(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_mode_sense(struct fsg_common *common, struct fsg_buffhd *bh)
static int do_start_stop(struct fsg_common *common)
static int do_prevent_allow(struct fsg_common *common)
static int do_read_format_capacities(struct fsg_common *common,
static int do_mode_select(struct fsg_common *common, struct fsg_buffhd *bh)
static int throw_away_data(struct fsg_common *common)
static int finish_reply(struct fsg_common *common)
static void send_status(struct fsg_common *common)
static int check_command(struct fsg_common *common, int cmnd_size,
static int check_command_size_in_blocks(struct fsg_common *common,
static int do_scsi_command(struct fsg_common *common)
struct fsg_common *common = fsg->common;
static int get_next_command(struct fsg_common *common)
static int alloc_request(struct fsg_common *common, struct usb_ep *ep,
static int do_set_interface(struct fsg_common *common, struct fsg_dev *new_fsg)
struct fsg_common;
static void handle_exception(struct fsg_common *common)
struct fsg_common *common = common_;
static struct fsg_common *fsg_common_setup(struct fsg_common *common)
void fsg_common_set_sysfs(struct fsg_common *common, bool sysfs)
int fsg_common_set_num_buffers(struct fsg_common *common, unsigned int n)
static void _fsg_common_remove_luns(struct fsg_common *common, int n)
void fsg_common_remove_luns(struct fsg_common *common)
void fsg_common_free_buffers(struct fsg_common *common)
int fsg_common_set_cdev(struct fsg_common *common,
int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg,
struct fsg_common *common;
int fsg_common_create_luns(struct fsg_common *common, struct fsg_config *cfg)
void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
static void fsg_common_release(struct fsg_common *common)
struct fsg_common *common = fsg->common;
static inline int __fsg_is_set(struct fsg_common *common,
struct fsg_common *common = fsg->common;
static int exception_in_progress(struct fsg_common *common)
static void set_bulk_out_req_length(struct fsg_common *common,
struct fsg_common *common = opts->common;
static void __raise_exception(struct fsg_common *common, enum fsg_state new_state,
static void raise_exception(struct fsg_common *common, enum fsg_state new_state)
static int ep0_queue(struct fsg_common *common)
struct fsg_common *common = ep->driver_data;
struct fsg_common *common = ep->driver_data;
static int _fsg_common_get_max_lun(struct fsg_common *common)
static bool start_in_transfer(struct fsg_common *common, struct fsg_buffhd *bh)
static bool start_out_transfer(struct fsg_common *common, struct fsg_buffhd *bh)
static int sleep_thread(struct fsg_common *common, bool can_freeze,
static int do_read(struct fsg_common *common)
static int do_write(struct fsg_common *common)
static int do_synchronize_cache(struct fsg_common *common)
static int do_verify(struct fsg_common *common)
void fsg_common_set_sysfs(struct fsg_common *common, bool sysfs);
int fsg_common_set_num_buffers(struct fsg_common *common, unsigned int n);
void fsg_common_free_buffers(struct fsg_common *common);
int fsg_common_set_cdev(struct fsg_common *common,
void fsg_common_remove_luns(struct fsg_common *common);
int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg,
int fsg_common_create_luns(struct fsg_common *common, struct fsg_config *cfg);
void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn,
struct fsg_common;
struct fsg_common *common;