Lines Matching refs:usb_function
39 struct usb_function usb_function; member
46 static inline struct f_fastboot *func_to_fastboot(struct usb_function *f) in func_to_fastboot()
48 return container_of(f, struct f_fastboot, usb_function); in func_to_fastboot()
148 static int fastboot_bind(struct usb_configuration *c, struct usb_function *f) in fastboot_bind()
194 static void fastboot_unbind(struct usb_configuration *c, struct usb_function *f) in fastboot_unbind()
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()
312 status = usb_add_function(c, &f_fb->usb_function); in fastboot_add()