Lines Matching defs:common

326 	struct fsg_common	*common;  member
340 static inline int __fsg_is_set(struct fsg_common *common, in __fsg_is_set()
350 #define fsg_is_set(common) likely(__fsg_is_set(common, __func__, __LINE__)) argument
359 static int exception_in_progress(struct fsg_common *common) in exception_in_progress()
365 static void set_bulk_out_req_length(struct fsg_common *common, in set_bulk_out_req_length()
400 static void wakeup_thread(struct fsg_common *common) in wakeup_thread()
409 static void raise_exception(struct fsg_common *common, enum fsg_state new_state) in raise_exception()
432 static int ep0_queue(struct fsg_common *common) in ep0_queue()
453 struct fsg_common *common = ep->driver_data; in bulk_in_complete() local
473 struct fsg_common *common = ep->driver_data; in bulk_out_complete() local
492 static int _fsg_common_get_max_lun(struct fsg_common *common) in _fsg_common_get_max_lun()
596 static bool start_in_transfer(struct fsg_common *common, struct fsg_buffhd *bh) in start_in_transfer()
605 static bool start_out_transfer(struct fsg_common *common, struct fsg_buffhd *bh) in start_out_transfer()
614 static int sleep_thread(struct fsg_common *common, bool can_freeze) in sleep_thread()
640 static int do_read(struct fsg_common *common) in do_read()
771 static int do_write(struct fsg_common *common) in do_write()
961 static int do_synchronize_cache(struct fsg_common *common) in do_synchronize_cache()
987 static int do_verify(struct fsg_common *common) in do_verify()
1089 static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh) in do_inquiry()
1114 static int do_request_sense(struct fsg_common *common, struct fsg_buffhd *bh) in do_request_sense()
1167 static int do_read_capacity(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_capacity()
1186 static int do_read_header(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_header()
1208 static int do_read_toc(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_toc()
1235 static int do_mode_sense(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_sense()
1321 static int do_start_stop(struct fsg_common *common) in do_start_stop()
1371 static int do_prevent_allow(struct fsg_common *common) in do_prevent_allow()
1395 static int do_read_format_capacities(struct fsg_common *common, in do_read_format_capacities()
1412 static int do_mode_select(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_select()
1470 static int throw_away_data(struct fsg_common *common) in throw_away_data()
1524 static int finish_reply(struct fsg_common *common) in finish_reply()
1626 static int send_status(struct fsg_common *common) in send_status()
1688 static int check_command(struct fsg_common *common, int cmnd_size, in check_command()
1817 static int check_command_size_in_blocks(struct fsg_common *common, in check_command_size_in_blocks()
1827 static int do_scsi_command(struct fsg_common *common) in do_scsi_command()
2112 struct fsg_common *common = fsg->common; in received_cbw() local
2180 static int get_next_command(struct fsg_common *common) in get_next_command()
2221 static int alloc_request(struct fsg_common *common, struct usb_ep *ep, in alloc_request()
2232 static int do_set_interface(struct fsg_common *common, struct fsg_dev *new_fsg) in do_set_interface()
2348 static void handle_exception(struct fsg_common *common) in handle_exception()
2501 struct fsg_common *common = common_; in fsg_main_thread() local
2650 void fsg_common_get(struct fsg_common *common) in fsg_common_get()
2656 void fsg_common_put(struct fsg_common *common) in fsg_common_put()
2672 static struct fsg_common *fsg_common_setup(struct fsg_common *common) in fsg_common_setup()
2693 void fsg_common_set_sysfs(struct fsg_common *common, bool sysfs) in fsg_common_set_sysfs()
2711 int fsg_common_set_num_buffers(struct fsg_common *common, unsigned int n) in fsg_common_set_num_buffers()
2764 static void _fsg_common_remove_luns(struct fsg_common *common, int n) in _fsg_common_remove_luns()
2776 void fsg_common_remove_luns(struct fsg_common *common) in fsg_common_remove_luns()
2781 void fsg_common_set_ops(struct fsg_common *common, in fsg_common_set_ops()
2788 void fsg_common_free_buffers(struct fsg_common *common) in fsg_common_free_buffers()
2795 int fsg_common_set_cdev(struct fsg_common *common, in fsg_common_set_cdev()
2853 int fsg_common_create_lun(struct fsg_common *common, struct fsg_lun_config *cfg, in fsg_common_create_lun()
2940 int fsg_common_create_luns(struct fsg_common *common, struct fsg_config *cfg) in fsg_common_create_luns()
2964 void fsg_common_set_inquiry_string(struct fsg_common *common, const char *vn, in fsg_common_set_inquiry_string()
2983 struct fsg_common *common = container_of(ref, struct fsg_common, ref); in fsg_common_release() local
3014 struct fsg_common *common = fsg->common; in fsg_bind() local
3109 struct fsg_common *common = fsg->common; in fsg_unbind() local
3537 struct fsg_common *common = opts->common; in fsg_alloc() local