Searched refs:f_ecm (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/usb/gadget/legacy/ |
D | cdc2.c | 83 static struct usb_function *f_ecm; variable 98 f_ecm = usb_get_function(fi_ecm); in cdc_do_config() 99 if (IS_ERR(f_ecm)) { in cdc_do_config() 100 status = PTR_ERR(f_ecm); in cdc_do_config() 104 status = usb_add_function(c, f_ecm); in cdc_do_config() 122 usb_remove_function(c, f_ecm); in cdc_do_config() 124 usb_put_function(f_ecm); in cdc_do_config() 216 if (!IS_ERR_OR_NULL(f_ecm)) in cdc_unbind() 217 usb_put_function(f_ecm); in cdc_unbind()
|
D | nokia.c | 148 struct usb_function *f_ecm; in nokia_bind_config() local 180 f_ecm = usb_get_function(fi_ecm); in nokia_bind_config() 181 if (IS_ERR(f_ecm)) { in nokia_bind_config() 182 status = PTR_ERR(f_ecm); in nokia_bind_config() 214 status = usb_add_function(c, f_ecm); in nokia_bind_config() 226 f_ecm_cfg1 = f_ecm; in nokia_bind_config() 233 f_ecm_cfg2 = f_ecm; in nokia_bind_config() 242 usb_remove_function(c, f_ecm); in nokia_bind_config() 254 usb_put_function(f_ecm); in nokia_bind_config()
|
D | multi.c | 213 static struct usb_function *f_ecm; variable 225 f_ecm = usb_get_function(fi_ecm); in cdc_do_config() 226 if (IS_ERR(f_ecm)) in cdc_do_config() 227 return PTR_ERR(f_ecm); in cdc_do_config() 229 ret = usb_add_function(c, f_ecm); in cdc_do_config() 262 usb_remove_function(c, f_ecm); in cdc_do_config() 264 usb_put_function(f_ecm); in cdc_do_config() 470 usb_put_function(f_ecm); in multi_unbind()
|
D | ether.c | 190 static struct usb_function *f_ecm; variable 272 f_ecm = usb_get_function(fi_ecm); in eth_do_config() 273 if (IS_ERR(f_ecm)) in eth_do_config() 274 return PTR_ERR(f_ecm); in eth_do_config() 276 status = usb_add_function(c, f_ecm); in eth_do_config() 278 usb_put_function(f_ecm); in eth_do_config() 459 usb_put_function(f_ecm); in eth_unbind()
|
D | g_ffs.c | 36 static struct usb_function *f_ecm; variable 451 usb_put_function(f_ecm); in gfs_unbind() 535 f_ecm = usb_get_function(fi_ecm); in eth_bind_config() 536 if (IS_ERR(f_ecm)) in eth_bind_config() 537 return PTR_ERR(f_ecm); in eth_bind_config() 539 status = usb_add_function(c, f_ecm); in eth_bind_config() 541 usb_put_function(f_ecm); in eth_bind_config()
|
/linux-6.12.1/drivers/usb/gadget/function/ |
D | f_ecm.c | 46 struct f_ecm { struct 63 static inline struct f_ecm *func_to_ecm(struct usb_function *f) in func_to_ecm() argument 65 return container_of(f, struct f_ecm, port.func); in func_to_ecm() 364 static void ecm_do_notify(struct f_ecm *ecm) in ecm_do_notify() 421 static void ecm_notify(struct f_ecm *ecm) in ecm_notify() 434 struct f_ecm *ecm = req->context; in ecm_notify_complete() 459 struct f_ecm *ecm = func_to_ecm(f); in ecm_setup() 524 struct f_ecm *ecm = func_to_ecm(f); in ecm_set_alt() 602 struct f_ecm *ecm = func_to_ecm(f); in ecm_get_alt() 611 struct f_ecm *ecm = func_to_ecm(f); in ecm_disable() [all …]
|
D | Makefile | 22 usb_f_ecm-y := f_ecm.o
|