Home
last modified time | relevance | path

Searched refs:usb_function (Results 1 – 25 of 62) sorted by relevance

123

/openbmc/u-boot/include/linux/usb/
H A Dcomposite.h93 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
132 int usb_function_deactivate(struct usb_function *);
[all …]
/openbmc/linux/include/linux/usb/
H A Dcomposite.h181 struct usb_function { struct
202 struct usb_function *); argument
204 struct usb_function *); argument
209 int (*set_alt)(struct usb_function *, argument
211 int (*get_alt)(struct usb_function *, argument
213 void (*disable)(struct usb_function *); argument
214 int (*setup)(struct usb_function *, argument
216 bool (*req_match)(struct usb_function *, argument
219 void (*suspend)(struct usb_function *); argument
220 void (*resume)(struct usb_function *); argument
[all …]
/openbmc/linux/drivers/usb/gadget/legacy/
H A Dnokia.c106 static struct usb_function *f_acm_cfg1;
107 static struct usb_function *f_acm_cfg2;
108 static struct usb_function *f_ecm_cfg1;
109 static struct usb_function *f_ecm_cfg2;
116 static struct usb_function *f_msg_cfg1;
145 struct usb_function *f_acm; in nokia_bind_config()
146 struct usb_function *f_phonet = NULL; in nokia_bind_config()
147 struct usb_function *f_obex1 = NULL; in nokia_bind_config()
148 struct usb_function *f_ecm; in nokia_bind_config()
149 struct usb_function *f_obex2 = NULL; in nokia_bind_config()
[all …]
H A Dmulti.c130 static struct usb_function *f_acm_rndis;
131 static struct usb_function *f_rndis;
132 static struct usb_function *f_msg_rndis;
212 static struct usb_function *f_acm_multi;
213 static struct usb_function *f_ecm;
214 static struct usb_function *f_msg_multi;
H A Dether.c190 static struct usb_function *f_ecm;
193 static struct usb_function *f_eem;
196 static struct usb_function *f_geth;
199 static struct usb_function *f_rndis;
/openbmc/u-boot/drivers/usb/gadget/
H A Df_dfu.c30 struct usb_function usb_function; member
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()
234 f_dfu->usb_function.strings = NULL; in to_runtime_mode()
801 f_dfu->usb_function.name = "dfu"; in dfu_bind_config()
804 f_dfu->usb_function.bind = dfu_bind; in dfu_bind_config()
805 f_dfu->usb_function.unbind = dfu_unbind; in dfu_bind_config()
806 f_dfu->usb_function.set_alt = dfu_set_alt; in dfu_bind_config()
807 f_dfu->usb_function.get_alt = __dfu_get_alt; in dfu_bind_config()
808 f_dfu->usb_function.disable = dfu_disable; in dfu_bind_config()
[all …]
H A Df_sdp.c95 struct usb_function usb_function; member
123 return container_of(f, struct f_sdp, usb_function); in func_to_sdp()
567 static void sdp_disable(struct usb_function *f) in sdp_disable()
591 sdp_func->usb_function.name = "sdp"; in sdp_bind_config()
594 sdp_func->usb_function.bind = sdp_bind; in sdp_bind_config()
595 sdp_func->usb_function.unbind = sdp_unbind; in sdp_bind_config()
596 sdp_func->usb_function.set_alt = sdp_set_alt; in sdp_bind_config()
597 sdp_func->usb_function.get_alt = sdp_get_alt; in sdp_bind_config()
598 sdp_func->usb_function.disable = sdp_disable; in sdp_bind_config()
599 sdp_func->usb_function.strings = sdp_generic_strings; in sdp_bind_config()
[all …]
H A Df_fastboot.c39 struct usb_function usb_function; member
48 return container_of(f, struct f_fastboot, usb_function); in func_to_fastboot()
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()
308 f_fb->usb_function.set_alt = fastboot_set_alt; in fastboot_add()
309 f_fb->usb_function.disable = fastboot_disable; in fastboot_add()
310 f_fb->usb_function.strings = fastboot_strings; in fastboot_add()
[all …]
H A Df_thor.c39 return container_of(f, struct f_thor, usb_function); in func_to_thor()
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()
1002 f_thor->usb_function.unbind = thor_unbind; in thor_func_init()
1003 f_thor->usb_function.setup = thor_func_setup; in thor_func_init()
1004 f_thor->usb_function.set_alt = thor_func_set_alt; in thor_func_init()
1005 f_thor->usb_function.disable = thor_func_disable; in thor_func_init()
[all …]
H A Dcomposite.c32 struct usb_function *function) in usb_add_function()
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()
938 struct usb_function *f; in composite_unbind()
1030 struct usb_function *f; in composite_suspend()
[all …]
H A Df_rockusb.c20 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()
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()
303 f_rkusb->usb_function.disable = rockusb_disable; in rockusb_add()
304 f_rkusb->usb_function.strings = rkusb_strings; in rockusb_add()
[all …]
H A Df_thor.h116 struct usb_function usb_function; member
/openbmc/linux/drivers/usb/gadget/function/
H A Df_serial.c33 static inline struct f_gser *func_to_gser(struct usb_function *f) in func_to_gser()
146 static int gser_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in gser_set_alt()
172 static void gser_disable(struct usb_function *f) in gser_disable()
186 static int gser_bind(struct usb_configuration *c, struct usb_function *f) in gser_bind()
336 static void gser_free(struct usb_function *f) in gser_free()
344 static void gser_unbind(struct usb_configuration *c, struct usb_function *f) in gser_unbind()
353 static void gser_resume(struct usb_function *f) in gser_resume()
360 static void gser_suspend(struct usb_function *f) in gser_suspend()
367 static struct usb_function *gser_alloc(struct usb_function_instance *fi) in gser_alloc()
H A Df_obex.c37 static inline struct f_obex *func_to_obex(struct usb_function *f) in func_to_obex()
189 static int obex_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in obex_set_alt()
241 static int obex_get_alt(struct usb_function *f, unsigned intf) in obex_get_alt()
248 static void obex_disable(struct usb_function *f) in obex_disable()
302 static int obex_bind(struct usb_configuration *c, struct usb_function *f) in obex_bind()
445 static void obex_free(struct usb_function *f) in obex_free()
453 static void obex_unbind(struct usb_configuration *c, struct usb_function *f) in obex_unbind()
458 static struct usb_function *obex_alloc(struct usb_function_instance *fi) in obex_alloc()
H A Df_subset.c55 static inline struct f_gether *func_to_geth(struct usb_function *f) in func_to_geth()
253 static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in geth_set_alt()
278 static void geth_disable(struct usb_function *f) in geth_disable()
292 geth_bind(struct usb_configuration *c, struct usb_function *f) in geth_bind()
449 static void geth_free(struct usb_function *f) in geth_free()
457 static void geth_unbind(struct usb_configuration *c, struct usb_function *f) in geth_unbind()
463 static struct usb_function *geth_alloc(struct usb_function_instance *fi) in geth_alloc()
H A Df_phonet.c42 struct usb_function function;
56 static inline struct f_phonet *func_to_pn(struct usb_function *f) in func_to_pn()
380 static void __pn_reset(struct usb_function *f) in __pn_reset()
397 static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in pn_set_alt()
447 static int pn_get_alt(struct usb_function *f, unsigned intf) in pn_get_alt()
467 static void pn_disconnect(struct usb_function *f) in pn_disconnect()
481 static int pn_bind(struct usb_configuration *c, struct usb_function *f) in pn_bind()
644 static void phonet_free(struct usb_function *f) in phonet_free()
652 static void pn_unbind(struct usb_configuration *c, struct usb_function *f) in pn_unbind()
667 static struct usb_function *phonet_alloc(struct usb_function_instance *fi) in phonet_alloc()
H A Df_uac1_legacy.c294 static inline struct f_audio *func_to_audio(struct usb_function *f) in func_to_audio()
384 static int audio_set_intf_req(struct usb_function *f, in audio_set_intf_req()
420 static int audio_get_intf_req(struct usb_function *f, in audio_get_intf_req()
458 static int audio_set_endpoint_req(struct usb_function *f, in audio_set_endpoint_req()
494 static int audio_get_endpoint_req(struct usb_function *f, in audio_get_endpoint_req()
523 f_audio_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in f_audio_setup()
655 static int f_audio_get_alt(struct usb_function *f, unsigned intf) in f_audio_get_alt()
671 static void f_audio_disable(struct usb_function *f) in f_audio_disable()
700 f_audio_bind(struct usb_configuration *c, struct usb_function *f) in f_audio_bind()
964 static void f_audio_free(struct usb_function *f) in f_audio_free()
[all …]
H A Df_ecm.c63 static inline struct f_ecm *func_to_ecm(struct usb_function *f) in func_to_ecm()
457 static int ecm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in ecm_setup()
522 static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in ecm_set_alt()
600 static int ecm_get_alt(struct usb_function *f, unsigned intf) in ecm_get_alt()
609 static void ecm_disable(struct usb_function *f) in ecm_disable()
672 ecm_bind(struct usb_configuration *c, struct usb_function *f) in ecm_bind()
875 static void ecm_suspend(struct usb_function *f) in ecm_suspend()
885 static void ecm_resume(struct usb_function *f) in ecm_resume()
895 static void ecm_free(struct usb_function *f) in ecm_free()
908 static void ecm_unbind(struct usb_configuration *c, struct usb_function *f) in ecm_unbind()
[all …]
H A Df_acm.c64 static inline struct f_acm *func_to_acm(struct usb_function *f) in func_to_acm()
328 static int acm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in acm_setup()
420 static int acm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in acm_set_alt()
466 static void acm_disable(struct usb_function *f) in acm_disable()
608 acm_bind(struct usb_configuration *c, struct usb_function *f) in acm_bind()
709 static void acm_unbind(struct usb_configuration *c, struct usb_function *f) in acm_unbind()
719 static void acm_free_func(struct usb_function *f) in acm_free_func()
726 static void acm_resume(struct usb_function *f) in acm_resume()
733 static void acm_suspend(struct usb_function *f) in acm_suspend()
740 static struct usb_function *acm_alloc_func(struct usb_function_instance *fi) in acm_alloc_func()
H A Df_eem.c38 static inline struct f_eem *func_to_eem(struct usb_function *f) in func_to_eem()
171 static int eem_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in eem_setup()
187 static int eem_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in eem_set_alt()
230 static void eem_disable(struct usb_function *f) in eem_disable()
245 static int eem_bind(struct usb_configuration *c, struct usb_function *f) in eem_bind()
623 static void eem_free(struct usb_function *f) in eem_free()
636 static void eem_unbind(struct usb_configuration *c, struct usb_function *f) in eem_unbind()
643 static struct usb_function *eem_alloc(struct usb_function_instance *fi) in eem_alloc()
H A Df_loopback.c29 struct usb_function function;
38 static inline struct f_loopback *func_to_loop(struct usb_function *f) in func_to_loop()
166 static int loopback_bind(struct usb_configuration *c, struct usb_function *f) in loopback_bind()
219 static void lb_free_func(struct usb_function *f) in lb_free_func()
405 static int loopback_set_alt(struct usb_function *f, in loopback_set_alt()
416 static void loopback_disable(struct usb_function *f) in loopback_disable()
423 static struct usb_function *loopback_alloc(struct usb_function_instance *fi) in loopback_alloc()
H A Du_audio.h61 struct usb_function func;
84 static inline struct g_audio *func_to_g_audio(struct usb_function *f) in func_to_g_audio()
/openbmc/linux/drivers/usb/gadget/
H A Dfunctions.c57 struct usb_function *usb_get_function(struct usb_function_instance *fi) in usb_get_function()
59 struct usb_function *f; in usb_get_function()
82 void usb_put_function(struct usb_function *f) in usb_put_function()
H A Dcomposite.c152 struct usb_function *f, in config_ep_by_speed_and_alt()
289 struct usb_function *f, in config_ep_by_speed()
569 struct usb_function *f; in config_buf()
930 struct usb_function *f; in reset_config()
1274 struct usb_function *f; in get_string()
1625 struct usb_function *f; in count_ext_compat()
1650 struct usb_function *f; in fill_ext_compat()
1681 struct usb_function *f; in count_ext_prop()
1699 struct usb_function *f; in len_ext_prop()
1717 struct usb_function *f; in fill_ext_prop()
[all …]
/openbmc/u-boot/arch/arm/include/asm/arch-rockchip/
H A Df_rockusb.h116 struct usb_function usb_function; member

123