Lines Matching refs:usb_function
20 static inline struct f_rockusb *func_to_rockusb(struct usb_function *f) in func_to_rockusb()
22 return container_of(f, struct f_rockusb, usb_function); in func_to_rockusb()
147 static int rockusb_bind(struct usb_configuration *c, struct usb_function *f) in rockusb_bind()
191 static void rockusb_unbind(struct usb_configuration *c, struct usb_function *f) in rockusb_unbind()
197 static void rockusb_disable(struct usb_function *f) in rockusb_disable()
240 static int rockusb_set_alt(struct usb_function *f, unsigned int interface, in rockusb_set_alt()
299 f_rkusb->usb_function.name = "f_rockusb"; in rockusb_add()
300 f_rkusb->usb_function.bind = rockusb_bind; in rockusb_add()
301 f_rkusb->usb_function.unbind = rockusb_unbind; in rockusb_add()
302 f_rkusb->usb_function.set_alt = rockusb_set_alt; in rockusb_add()
303 f_rkusb->usb_function.disable = rockusb_disable; in rockusb_add()
304 f_rkusb->usb_function.strings = rkusb_strings; in rockusb_add()
306 status = usb_add_function(c, &f_rkusb->usb_function); in rockusb_add()