Searched refs:f_acm (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/usb/gadget/legacy/
H A Dacm_ms.c101 static struct usb_function *f_acm; variable in typeref:struct:usb_function
122 f_acm = usb_get_function(f_acm_inst); acm_ms_do_config()
123 if (IS_ERR(f_acm)) acm_ms_do_config()
124 return PTR_ERR(f_acm); acm_ms_do_config()
132 status = usb_add_function(c, f_acm); acm_ms_do_config()
142 usb_remove_function(c, f_acm); acm_ms_do_config()
146 usb_put_function(f_acm); acm_ms_do_config()
246 usb_put_function(f_acm); acm_ms_unbind()
H A Dcdc2.c84 static struct usb_function *f_acm; variable in typeref:struct:usb_function
112 f_acm = usb_get_function(fi_serial); cdc_do_config()
113 if (IS_ERR(f_acm)) { cdc_do_config()
114 status = PTR_ERR(f_acm); cdc_do_config()
118 status = usb_add_function(c, f_acm); cdc_do_config()
124 usb_put_function(f_acm); cdc_do_config()
216 usb_put_function(f_acm); cdc_unbind()
H A Dnokia.c149 struct usb_function *f_acm; nokia_bind_config() local
178 f_acm = usb_get_function(fi_acm); nokia_bind_config()
179 if (IS_ERR(f_acm)) { nokia_bind_config()
180 status = PTR_ERR(f_acm); nokia_bind_config()
214 status = usb_add_function(c, f_acm); nokia_bind_config()
229 f_acm_cfg1 = f_acm; nokia_bind_config()
236 f_acm_cfg2 = f_acm; nokia_bind_config()
248 usb_remove_function(c, f_acm); nokia_bind_config()
260 usb_put_function(f_acm); nokia_bind_config()
/linux-4.4.14/drivers/usb/gadget/function/
H A Df_acm.c2 * f_acm.c -- USB CDC serial (ACM) function driver
43 struct f_acm { struct
77 static inline struct f_acm *func_to_acm(struct usb_function *f) func_to_acm()
79 return container_of(f, struct f_acm, port.func); func_to_acm()
82 static inline struct f_acm *port_to_acm(struct gserial *p) port_to_acm()
84 return container_of(p, struct f_acm, port); port_to_acm()
311 struct f_acm *acm = ep->driver_data; acm_complete_set_line_coding()
341 struct f_acm *acm = func_to_acm(f); acm_setup()
425 struct f_acm *acm = func_to_acm(f); acm_set_alt()
469 struct f_acm *acm = func_to_acm(f); acm_disable()
493 static int acm_cdc_notify(struct f_acm *acm, u8 type, u16 value, acm_cdc_notify()
534 static int acm_notify_serial_state(struct f_acm *acm) acm_notify_serial_state()
555 struct f_acm *acm = req->context; acm_cdc_notify_complete()
575 struct f_acm *acm = port_to_acm(port); acm_connect()
583 struct f_acm *acm = port_to_acm(port); acm_disconnect()
591 struct f_acm *acm = port_to_acm(port); acm_send_break()
610 struct f_acm *acm = func_to_acm(f); acm_bind()
712 struct f_acm *acm = func_to_acm(f); acm_unbind()
722 struct f_acm *acm = func_to_acm(f); acm_free_func()
730 struct f_acm *acm; acm_alloc_func()
H A DMakefile9 usb_f_acm-y := f_acm.o
H A Df_obex.c7 * Based on f_acm.c by Al Borchers and David Brownell.

Completed in 160 milliseconds