Lines Matching defs:common

375 	struct fsg_common	*common;  member
390 static inline int __fsg_is_set(struct fsg_common *common, in __fsg_is_set()
404 #define fsg_is_set(common) likely(__fsg_is_set(common, __func__, __LINE__)) argument
415 static int exception_in_progress(struct fsg_common *common) in exception_in_progress()
421 static void set_bulk_out_req_length(struct fsg_common *common, in set_bulk_out_req_length()
459 static void wakeup_thread(struct fsg_common *common) in wakeup_thread()
464 static void raise_exception(struct fsg_common *common, enum fsg_state new_state) in raise_exception()
478 static int ep0_queue(struct fsg_common *common) in ep0_queue()
499 struct fsg_common *common = ep->driver_data; in bulk_in_complete() local
516 struct fsg_common *common = ep->driver_data; in bulk_out_complete() local
618 #define START_TRANSFER_OR(common, ep_name, req, pbusy, state) \ argument
624 #define START_TRANSFER(common, ep_name, req, pbusy, state) \ argument
655 static int sleep_thread(struct fsg_common *common) in sleep_thread()
691 static int do_read(struct fsg_common *common) in do_read()
818 static int do_write(struct fsg_common *common) in do_write()
993 static int do_synchronize_cache(struct fsg_common *common) in do_synchronize_cache()
1000 static int do_verify(struct fsg_common *common) in do_verify()
1088 static int do_inquiry(struct fsg_common *common, struct fsg_buffhd *bh) in do_inquiry()
1116 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()
1209 static int do_read_toc(struct fsg_common *common, struct fsg_buffhd *bh) in do_read_toc()
1237 static int do_mode_sense(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_sense()
1318 static int do_start_stop(struct fsg_common *common) in do_start_stop()
1332 static int do_prevent_allow(struct fsg_common *common) in do_prevent_allow()
1355 static int do_read_format_capacities(struct fsg_common *common, in do_read_format_capacities()
1373 static int do_mode_select(struct fsg_common *common, struct fsg_buffhd *bh) in do_mode_select()
1454 static int throw_away_data(struct fsg_common *common) in throw_away_data()
1509 static int finish_reply(struct fsg_common *common) in finish_reply()
1605 static int send_status(struct fsg_common *common) in send_status()
1665 static int check_command(struct fsg_common *common, int cmnd_size, in check_command()
1779 static int do_scsi_command(struct fsg_common *common) in do_scsi_command()
2054 struct fsg_common *common = fsg->common; in received_cbw() local
2114 static int get_next_command(struct fsg_common *common) in get_next_command()
2155 static int enable_endpoint(struct fsg_common *common, struct usb_ep *ep, in enable_endpoint()
2167 static int alloc_request(struct fsg_common *common, struct usb_ep *ep, in alloc_request()
2178 static int do_set_interface(struct fsg_common *common, struct fsg_dev *new_fsg) in do_set_interface()
2286 static void handle_exception(struct fsg_common *common) in handle_exception()
2397 struct fsg_common *common = the_fsg_common; in fsg_main_thread() local
2440 static struct fsg_common *fsg_common_init(struct fsg_common *common, in fsg_common_init()
2558 struct fsg_common *common = container_of(ref, struct fsg_common, ref); in fsg_common_release() local
2718 struct fsg_common *common) in fsg_bind_config()