| /openbmc/u-boot/include/linux/usb/ |
| H A D | composite.h | 93 struct usb_function { struct 109 struct usb_function *); argument 111 struct usb_function *); argument 114 int (*set_alt)(struct usb_function *, argument 116 int (*get_alt)(struct usb_function *, argument 118 void (*disable)(struct usb_function *); argument 119 int (*setup)(struct usb_function *, argument 121 void (*suspend)(struct usb_function *); argument 122 void (*resume)(struct usb_function *); argument 130 int usb_add_function(struct usb_configuration *, struct usb_function *); argument [all …]
|
| /openbmc/u-boot/drivers/usb/gadget/ |
| H A D | f_dfu.c | 30 struct usb_function usb_function; member 53 static inline struct f_dfu *func_to_dfu(struct usb_function *f) in func_to_dfu() 55 return container_of(f, struct f_dfu, usb_function); in func_to_dfu() 226 f_dfu->usb_function.strings = dfu_strings; in to_dfu_mode() 227 f_dfu->usb_function.hs_descriptors = f_dfu->function; in to_dfu_mode() 228 f_dfu->usb_function.descriptors = f_dfu->function; in to_dfu_mode() 234 f_dfu->usb_function.strings = NULL; in to_runtime_mode() 235 f_dfu->usb_function.hs_descriptors = dfu_runtime_descs; in to_runtime_mode() 236 f_dfu->usb_function.descriptors = dfu_runtime_descs; in to_runtime_mode() 584 dfu_handle(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in dfu_handle() [all …]
|
| H A D | f_sdp.c | 95 struct usb_function usb_function; member 121 static inline struct f_sdp *func_to_sdp(struct usb_function *f) in func_to_sdp() 123 return container_of(f, struct f_sdp, usb_function); in func_to_sdp() 414 static int sdp_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in sdp_setup() 469 static int sdp_bind(struct usb_configuration *c, struct usb_function *f) in sdp_bind() 498 static void sdp_unbind(struct usb_configuration *c, struct usb_function *f) in sdp_unbind() 538 static int sdp_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in sdp_set_alt() 560 static int sdp_get_alt(struct usb_function *f, unsigned intf) in sdp_get_alt() 567 static void sdp_disable(struct usb_function *f) in sdp_disable() 591 sdp_func->usb_function.name = "sdp"; in sdp_bind_config() [all …]
|
| H A D | f_fastboot.c | 39 struct usb_function usb_function; member 46 static inline struct f_fastboot *func_to_fastboot(struct usb_function *f) in func_to_fastboot() 48 return container_of(f, struct f_fastboot, usb_function); in func_to_fastboot() 148 static int fastboot_bind(struct usb_configuration *c, struct usb_function *f) in fastboot_bind() 194 static void fastboot_unbind(struct usb_configuration *c, struct usb_function *f) in fastboot_unbind() 199 static void fastboot_disable(struct usb_function *f) in fastboot_disable() 237 static int fastboot_set_alt(struct usb_function *f, in fastboot_set_alt() 305 f_fb->usb_function.name = "f_fastboot"; in fastboot_add() 306 f_fb->usb_function.bind = fastboot_bind; in fastboot_add() 307 f_fb->usb_function.unbind = fastboot_unbind; in fastboot_add() [all …]
|
| H A D | f_thor.c | 37 static inline struct f_thor *func_to_thor(struct usb_function *f) in func_to_thor() 39 return container_of(f, struct f_thor, usb_function); in func_to_thor() 631 thor_func_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in thor_func_setup() 746 static int thor_func_bind(struct usb_configuration *c, struct usb_function *f) in thor_func_bind() 860 static void thor_unbind(struct usb_configuration *c, struct usb_function *f) in thor_unbind() 871 static void thor_func_disable(struct usb_function *f) in thor_func_disable() 897 static int thor_eps_setup(struct usb_function *f) in thor_eps_setup() 962 static int thor_func_set_alt(struct usb_function *f, in thor_func_set_alt() 1000 f_thor->usb_function.name = "f_thor"; in thor_func_init() 1001 f_thor->usb_function.bind = thor_func_bind; in thor_func_init() [all …]
|
| H A D | composite.c | 32 struct usb_function *function) in usb_add_function() 86 int usb_function_deactivate(struct usb_function *function) in usb_function_deactivate() 109 int usb_function_activate(struct usb_function *function) in usb_function_activate() 149 struct usb_function *function) in usb_interface_id() 169 struct usb_function *f; in config_buf() 292 struct usb_function *f; in reset_config() 316 struct usb_function *f; in set_config() 420 struct usb_function *f; in usb_add_config() 530 struct usb_function *f; in get_string() 708 struct usb_function *f = NULL; in composite_setup() [all …]
|
| H A D | f_thor.h | 116 struct usb_function usb_function; member
|
| H A D | f_rockusb.c | 20 static inline struct f_rockusb *func_to_rockusb(struct usb_function *f) in func_to_rockusb() 22 return container_of(f, struct f_rockusb, usb_function); in func_to_rockusb() 147 static int rockusb_bind(struct usb_configuration *c, struct usb_function *f) in rockusb_bind() 191 static void rockusb_unbind(struct usb_configuration *c, struct usb_function *f) in rockusb_unbind() 197 static void rockusb_disable(struct usb_function *f) in rockusb_disable() 240 static int rockusb_set_alt(struct usb_function *f, unsigned int interface, in rockusb_set_alt() 299 f_rkusb->usb_function.name = "f_rockusb"; in rockusb_add() 300 f_rkusb->usb_function.bind = rockusb_bind; in rockusb_add() 301 f_rkusb->usb_function.unbind = rockusb_unbind; in rockusb_add() 302 f_rkusb->usb_function.set_alt = rockusb_set_alt; in rockusb_add() [all …]
|
| H A D | f_mass_storage.c | 370 struct usb_function function; 400 static inline struct fsg_dev *fsg_from_func(struct usb_function *f) in fsg_from_func() 529 static int fsg_setup(struct usb_function *f, in fsg_setup() 2261 static int fsg_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in fsg_set_alt() 2269 static void fsg_disable(struct usb_function *f) in fsg_disable() 2633 static void fsg_unbind(struct usb_configuration *c, struct usb_function *f) in fsg_unbind() 2648 static int fsg_bind(struct usb_configuration *c, struct usb_function *f) in fsg_bind()
|
| /openbmc/u-boot/arch/arm/include/asm/arch-rockchip/ |
| H A D | f_rockusb.h | 116 struct usb_function usb_function; member
|