Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/usb/
Dcomposite.h191 struct usb_function { struct
212 struct usb_function *); argument
214 struct usb_function *); argument
215 void (*free_func)(struct usb_function *f); argument
219 int (*set_alt)(struct usb_function *, argument
221 int (*get_alt)(struct usb_function *, argument
223 void (*disable)(struct usb_function *); argument
224 int (*setup)(struct usb_function *, argument
226 bool (*req_match)(struct usb_function *, argument
229 void (*suspend)(struct usb_function *); argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/gadget/legacy/
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;
110 static struct usb_function *f_obex1_cfg1;
111 static struct usb_function *f_obex2_cfg1;
112 static struct usb_function *f_obex1_cfg2;
113 static struct usb_function *f_obex2_cfg2;
114 static struct usb_function *f_phonet_cfg1;
115 static struct usb_function *f_phonet_cfg2;
[all …]
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;
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;
Dg_ffs.c36 static struct usb_function *f_ecm;
38 static struct usb_function *f_geth;
43 static struct usb_function *f_rndis;
161 static struct usb_function **f_ffs[] = {
Dcdc2.c80 static struct usb_function *f_acm;
83 static struct usb_function *f_ecm;
/kernel/linux/linux-5.10/drivers/usb/gadget/function/
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()
338 static void gser_free(struct usb_function *f) in gser_free()
346 static void gser_unbind(struct usb_configuration *c, struct usb_function *f) in gser_unbind()
351 static void gser_resume(struct usb_function *f) in gser_resume()
358 static void gser_suspend(struct usb_function *f) in gser_suspend()
365 static struct usb_function *gser_alloc(struct usb_function_instance *fi) in gser_alloc()
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()
446 static void obex_free(struct usb_function *f) in obex_free()
454 static void obex_unbind(struct usb_configuration *c, struct usb_function *f) in obex_unbind()
459 static struct usb_function *obex_alloc(struct usb_function_instance *fi) in obex_alloc()
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()
451 static void geth_free(struct usb_function *f) in geth_free()
459 static void geth_unbind(struct usb_configuration *c, struct usb_function *f) in geth_unbind()
465 static struct usb_function *geth_alloc(struct usb_function_instance *fi) in geth_alloc()
Df_phonet.c42 struct usb_function function;
56 static inline struct f_phonet *func_to_pn(struct usb_function *f) in func_to_pn()
377 static void __pn_reset(struct usb_function *f) in __pn_reset()
394 static int pn_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in pn_set_alt()
444 static int pn_get_alt(struct usb_function *f, unsigned intf) in pn_get_alt()
464 static void pn_disconnect(struct usb_function *f) in pn_disconnect()
478 static int pn_bind(struct usb_configuration *c, struct usb_function *f) in pn_bind()
641 static void phonet_free(struct usb_function *f) in phonet_free()
649 static void pn_unbind(struct usb_configuration *c, struct usb_function *f) in pn_unbind()
664 static struct usb_function *phonet_alloc(struct usb_function_instance *fi) in phonet_alloc()
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()
574 static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in f_audio_set_alt()
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()
[all …]
Df_uac1.c31 static inline struct f_uac1 *func_to_uac1(struct usb_function *f) in func_to_uac1()
329 static int audio_set_endpoint_req(struct usb_function *f, in audio_set_endpoint_req()
365 static int audio_get_endpoint_req(struct usb_function *f, in audio_get_endpoint_req()
394 f_audio_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in f_audio_setup()
437 static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in f_audio_set_alt()
482 static int f_audio_get_alt(struct usb_function *f, unsigned intf) in f_audio_get_alt()
503 static void f_audio_disable(struct usb_function *f) in f_audio_disable()
547 static int f_audio_bind(struct usb_configuration *c, struct usb_function *f) in f_audio_bind()
792 static void f_audio_free(struct usb_function *f) in f_audio_free()
805 static void f_audio_unbind(struct usb_configuration *c, struct usb_function *f) in f_audio_unbind()
[all …]
Du_audio.h29 struct usb_function func;
46 static inline struct g_audio *func_to_g_audio(struct usb_function *f) in func_to_g_audio()
Df_acm.c74 static inline struct f_acm *func_to_acm(struct usb_function *f) in func_to_acm()
336 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()
711 static void acm_unbind(struct usb_configuration *c, struct usb_function *f) in acm_unbind()
721 static void acm_free_func(struct usb_function *f) in acm_free_func()
728 static void acm_resume(struct usb_function *f) in acm_resume()
735 static void acm_suspend(struct usb_function *f) in acm_suspend()
742 static struct usb_function *acm_alloc_func(struct usb_function_instance *fi) in acm_alloc_func()
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()
625 static void eem_free(struct usb_function *f) in eem_free()
638 static void eem_unbind(struct usb_configuration *c, struct usb_function *f) in eem_unbind()
645 static struct usb_function *eem_alloc(struct usb_function_instance *fi) in eem_alloc()
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()
221 static void lb_free_func(struct usb_function *f) in lb_free_func()
407 static int loopback_set_alt(struct usb_function *f, in loopback_set_alt()
418 static void loopback_disable(struct usb_function *f) in loopback_disable()
425 static struct usb_function *loopback_alloc(struct usb_function_instance *fi) in loopback_alloc()
Df_uac2.c54 static inline struct f_uac2 *func_to_uac2(struct usb_function *f) in func_to_uac2()
641 afunc_bind(struct usb_configuration *cfg, struct usb_function *fn) in afunc_bind()
808 afunc_set_alt(struct usb_function *fn, unsigned intf, unsigned alt) in afunc_set_alt()
854 afunc_get_alt(struct usb_function *fn, unsigned intf) in afunc_get_alt()
874 afunc_disable(struct usb_function *fn) in afunc_disable()
885 in_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_cur()
926 in_rq_range(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_range()
968 ac_rq_in(struct usb_function *fn, const struct usb_ctrlrequest *cr) in ac_rq_in()
979 out_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in out_rq_cur()
992 setup_rq_inf(struct usb_function *fn, const struct usb_ctrlrequest *cr) in setup_rq_inf()
[all …]
Df_ecm.c63 static inline struct f_ecm *func_to_ecm(struct usb_function *f) in func_to_ecm()
468 static int ecm_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in ecm_setup()
533 static int ecm_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in ecm_set_alt()
611 static int ecm_get_alt(struct usb_function *f, unsigned intf) in ecm_get_alt()
620 static void ecm_disable(struct usb_function *f) in ecm_disable()
683 ecm_bind(struct usb_configuration *c, struct usb_function *f) in ecm_bind()
892 static void ecm_free(struct usb_function *f) in ecm_free()
905 static void ecm_unbind(struct usb_configuration *c, struct usb_function *f) in ecm_unbind()
922 static struct usb_function *ecm_alloc(struct usb_function_instance *fi) in ecm_alloc()
Duvc.h119 struct usb_function func;
145 static inline struct uvc_device *to_uvc(struct usb_function *f) in to_uvc()
Df_rndis.c82 static inline struct f_rndis *func_to_rndis(struct usb_function *f) in func_to_rndis()
465 rndis_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in rndis_setup()
539 static int rndis_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in rndis_set_alt()
609 static void rndis_disable(struct usb_function *f) in rndis_disable()
669 rndis_bind(struct usb_configuration *c, struct usb_function *f) in rndis_bind()
956 static void rndis_free(struct usb_function *f) in rndis_free()
970 static void rndis_unbind(struct usb_configuration *c, struct usb_function *f) in rndis_unbind()
982 static struct usb_function *rndis_alloc(struct usb_function_instance *fi) in rndis_alloc()
Df_uvc.c224 uvc_function_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in uvc_function_setup()
261 uvc_function_get_alt(struct usb_function *f, unsigned interface) in uvc_function_get_alt()
276 uvc_function_set_alt(struct usb_function *f, unsigned interface, unsigned alt) in uvc_function_set_alt()
361 uvc_function_disable(struct usb_function *f) in uvc_function_disable()
586 uvc_function_bind(struct usb_configuration *c, struct usb_function *f) in uvc_function_bind()
878 static void uvc_free(struct usb_function *f) in uvc_free()
888 struct usb_function *f) in uvc_function_unbind()
929 static struct usb_function *uvc_alloc(struct usb_function_instance *fi) in uvc_alloc()
Df_sourcesink.c35 struct usb_function function;
53 static inline struct f_sourcesink *func_to_ss(struct usb_function *f) in func_to_ss()
317 sourcesink_bind(struct usb_configuration *c, struct usb_function *f) in sourcesink_bind()
449 sourcesink_free_func(struct usb_function *f) in sourcesink_free_func()
737 static int sourcesink_set_alt(struct usb_function *f, in sourcesink_set_alt()
747 static int sourcesink_get_alt(struct usb_function *f, unsigned intf) in sourcesink_get_alt()
754 static void sourcesink_disable(struct usb_function *f) in sourcesink_disable()
763 static int sourcesink_setup(struct usb_function *f, in sourcesink_setup()
835 static struct usb_function *source_sink_alloc_func( in source_sink_alloc_func()
Df_midi.c80 struct usb_function func;
105 static inline struct f_midi *func_to_midi(struct usb_function *f) in func_to_midi()
338 struct usb_function *f, in f_midi_start_ep()
363 static int f_midi_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in f_midi_set_alt()
417 static void f_midi_disable(struct usb_function *f) in f_midi_disable()
865 static int f_midi_bind(struct usb_configuration *c, struct usb_function *f) in f_midi_bind()
1249 static void f_midi_free(struct usb_function *f) in f_midi_free()
1275 static void f_midi_unbind(struct usb_configuration *c, struct usb_function *f) in f_midi_unbind()
1294 static struct usb_function *f_midi_alloc(struct usb_function_instance *fi) in f_midi_alloc()
/kernel/linux/linux-5.10/drivers/usb/gadget/
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()
Dcomposite.c60 function_descriptors(struct usb_function *f, in function_descriptors()
149 struct usb_function *f, in config_ep_by_speed_and_alt()
279 struct usb_function *f, in config_ep_by_speed()
301 struct usb_function *function) in usb_add_function()
353 void usb_remove_function(struct usb_configuration *c, struct usb_function *f) in usb_remove_function()
387 int usb_function_deactivate(struct usb_function *function) in usb_function_deactivate()
418 int usb_function_activate(struct usb_function *function) in usb_function_activate()
466 struct usb_function *function) in usb_interface_id()
506 struct usb_function *f; in config_buf()
804 struct usb_function *f; in reset_config()
[all …]

123