Home
last modified time | relevance | path

Searched refs:f_ecm (Results 1 – 7 of 7) sorted by relevance

/drivers/usb/gadget/legacy/
Dcdc2.c87 static struct usb_function *f_ecm; variable
102 f_ecm = usb_get_function(fi_ecm); in cdc_do_config()
103 if (IS_ERR(f_ecm)) { in cdc_do_config()
104 status = PTR_ERR(f_ecm); in cdc_do_config()
108 status = usb_add_function(c, f_ecm); in cdc_do_config()
126 usb_remove_function(c, f_ecm); in cdc_do_config()
128 usb_put_function(f_ecm); in cdc_do_config()
220 if (!IS_ERR_OR_NULL(f_ecm)) in cdc_unbind()
221 usb_put_function(f_ecm); in cdc_unbind()
Dnokia.c152 struct usb_function *f_ecm; in nokia_bind_config() local
184 f_ecm = usb_get_function(fi_ecm); in nokia_bind_config()
185 if (IS_ERR(f_ecm)) { in nokia_bind_config()
186 status = PTR_ERR(f_ecm); in nokia_bind_config()
218 status = usb_add_function(c, f_ecm); in nokia_bind_config()
230 f_ecm_cfg1 = f_ecm; in nokia_bind_config()
237 f_ecm_cfg2 = f_ecm; in nokia_bind_config()
246 usb_remove_function(c, f_ecm); in nokia_bind_config()
258 usb_put_function(f_ecm); in nokia_bind_config()
Dmulti.c217 static struct usb_function *f_ecm; variable
229 f_ecm = usb_get_function(fi_ecm); in cdc_do_config()
230 if (IS_ERR(f_ecm)) in cdc_do_config()
231 return PTR_ERR(f_ecm); in cdc_do_config()
233 ret = usb_add_function(c, f_ecm); in cdc_do_config()
266 usb_remove_function(c, f_ecm); in cdc_do_config()
268 usb_put_function(f_ecm); in cdc_do_config()
472 usb_put_function(f_ecm); in multi_unbind()
Dether.c194 static struct usb_function *f_ecm; variable
276 f_ecm = usb_get_function(fi_ecm); in eth_do_config()
277 if (IS_ERR(f_ecm)) in eth_do_config()
278 return PTR_ERR(f_ecm); in eth_do_config()
280 status = usb_add_function(c, f_ecm); in eth_do_config()
282 usb_put_function(f_ecm); in eth_do_config()
463 usb_put_function(f_ecm); in eth_unbind()
Dg_ffs.c40 static struct usb_function *f_ecm; variable
465 usb_put_function(f_ecm); in gfs_unbind()
549 f_ecm = usb_get_function(fi_ecm); in eth_bind_config()
550 if (IS_ERR(f_ecm)) in eth_bind_config()
551 return PTR_ERR(f_ecm); in eth_bind_config()
553 status = usb_add_function(c, f_ecm); in eth_bind_config()
555 usb_put_function(f_ecm); in eth_bind_config()
/drivers/usb/gadget/function/
Df_ecm.c50 struct f_ecm { struct
67 static inline struct f_ecm *func_to_ecm(struct usb_function *f) in func_to_ecm() argument
69 return container_of(f, struct f_ecm, port.func); in func_to_ecm()
379 static void ecm_do_notify(struct f_ecm *ecm) in ecm_do_notify()
436 static void ecm_notify(struct f_ecm *ecm) in ecm_notify()
449 struct f_ecm *ecm = req->context; in ecm_notify_complete()
474 struct f_ecm *ecm = func_to_ecm(f); in ecm_setup()
539 struct f_ecm *ecm = func_to_ecm(f); in ecm_set_alt()
617 struct f_ecm *ecm = func_to_ecm(f); in ecm_get_alt()
626 struct f_ecm *ecm = func_to_ecm(f); in ecm_disable()
[all …]
DMakefile21 usb_f_ecm-y := f_ecm.o