Searched refs:usb_function (Results 1 – 8 of 8) sorted by relevance
| /rk3399_rockchip-uboot/include/linux/usb/ |
| H A D | composite.h | 97 struct usb_function { struct 114 struct usb_function *); argument 116 struct usb_function *); argument 119 int (*set_alt)(struct usb_function *, argument 121 int (*get_alt)(struct usb_function *, argument 123 void (*disable)(struct usb_function *); argument 124 int (*setup)(struct usb_function *, argument 126 void (*suspend)(struct usb_function *); argument 127 void (*resume)(struct usb_function *); argument 135 int usb_add_function(struct usb_configuration *, struct usb_function *); argument [all …]
|
| /rk3399_rockchip-uboot/drivers/usb/gadget/ |
| H A D | f_dfu.c | 31 struct usb_function usb_function; member 54 static inline struct f_dfu *func_to_dfu(struct usb_function *f) in func_to_dfu() 56 return container_of(f, struct f_dfu, usb_function); in func_to_dfu() 227 f_dfu->usb_function.strings = dfu_strings; in to_dfu_mode() 228 f_dfu->usb_function.hs_descriptors = f_dfu->function; in to_dfu_mode() 229 f_dfu->usb_function.descriptors = f_dfu->function; in to_dfu_mode() 235 f_dfu->usb_function.strings = NULL; in to_runtime_mode() 236 f_dfu->usb_function.hs_descriptors = dfu_runtime_descs; in to_runtime_mode() 237 f_dfu->usb_function.descriptors = dfu_runtime_descs; in to_runtime_mode() 585 dfu_handle(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in dfu_handle() [all …]
|
| H A D | f_sdp.c | 96 struct usb_function usb_function; member 122 static inline struct f_sdp *func_to_sdp(struct usb_function *f) in func_to_sdp() 124 return container_of(f, struct f_sdp, usb_function); in func_to_sdp() 415 static int sdp_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in sdp_setup() 470 static int sdp_bind(struct usb_configuration *c, struct usb_function *f) in sdp_bind() 499 static void sdp_unbind(struct usb_configuration *c, struct usb_function *f) in sdp_unbind() 539 static int sdp_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in sdp_set_alt() 561 static int sdp_get_alt(struct usb_function *f, unsigned intf) in sdp_get_alt() 568 static void sdp_disable(struct usb_function *f) in sdp_disable() 592 sdp_func->usb_function.name = "sdp"; in sdp_bind_config() [all …]
|
| H A D | f_thor.c | 38 static inline struct f_thor *func_to_thor(struct usb_function *f) in func_to_thor() 40 return container_of(f, struct f_thor, usb_function); in func_to_thor() 632 thor_func_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in thor_func_setup() 747 static int thor_func_bind(struct usb_configuration *c, struct usb_function *f) in thor_func_bind() 861 static void thor_unbind(struct usb_configuration *c, struct usb_function *f) in thor_unbind() 872 static void thor_func_disable(struct usb_function *f) in thor_func_disable() 898 static int thor_eps_setup(struct usb_function *f) in thor_eps_setup() 970 static int thor_func_set_alt(struct usb_function *f, in thor_func_set_alt() 1008 f_thor->usb_function.name = "f_thor"; in thor_func_init() 1009 f_thor->usb_function.bind = thor_func_bind; in thor_func_init() [all …]
|
| H A D | f_thor.h | 117 struct usb_function usb_function; member
|
| H A D | composite.c | 41 struct usb_function *function) in usb_add_function() 97 int usb_function_deactivate(struct usb_function *function) in usb_function_deactivate() 120 int usb_function_activate(struct usb_function *function) in usb_function_activate() 160 struct usb_function *function) in usb_interface_id() 180 struct usb_function *f; in config_buf() 319 struct usb_function *f; in reset_config() 343 struct usb_function *f; in set_config() 456 struct usb_function *f; in usb_add_config() 566 struct usb_function *f; in get_string() 803 struct usb_function *f = NULL; in composite_setup() [all …]
|
| H A D | f_fastboot.c | 72 struct usb_function usb_function; member 79 static inline struct f_fastboot *func_to_fastboot(struct usb_function *f) in func_to_fastboot() 81 return container_of(f, struct f_fastboot, usb_function); in func_to_fastboot() 331 static int fastboot_bind(struct usb_configuration *c, struct usb_function *f) in fastboot_bind() 385 static void fastboot_unbind(struct usb_configuration *c, struct usb_function *f) in fastboot_unbind() 390 static void fastboot_disable(struct usb_function *f) in fastboot_disable() 428 static int fastboot_set_alt(struct usb_function *f, in fastboot_set_alt() 498 f_fb->usb_function.name = "f_fastboot"; in fastboot_add() 499 f_fb->usb_function.bind = fastboot_bind; in fastboot_add() 500 f_fb->usb_function.unbind = fastboot_unbind; in fastboot_add() [all …]
|
| H A D | f_mass_storage.c | 373 struct usb_function function; 403 static inline struct fsg_dev *fsg_from_func(struct usb_function *f) in fsg_from_func() 532 static int fsg_setup(struct usb_function *f, in fsg_setup() 2305 static int fsg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in fsg_set_alt() 2313 static void fsg_disable(struct usb_function *f) in fsg_disable() 2678 static void fsg_unbind(struct usb_configuration *c, struct usb_function *f) in fsg_unbind() 2693 static int fsg_bind(struct usb_configuration *c, struct usb_function *f) in fsg_bind()
|