Lines Matching refs:usb_function
95 struct usb_function usb_function; member
120 static inline struct f_sdp *func_to_sdp(struct usb_function *f) in func_to_sdp()
122 return container_of(f, struct f_sdp, usb_function); in func_to_sdp()
409 static int sdp_setup(struct usb_function *f, const struct usb_ctrlrequest *ctrl) in sdp_setup()
464 static int sdp_bind(struct usb_configuration *c, struct usb_function *f) in sdp_bind()
493 static void sdp_unbind(struct usb_configuration *c, struct usb_function *f) in sdp_unbind()
533 static int sdp_set_alt(struct usb_function *f, unsigned intf, unsigned alt) in sdp_set_alt()
555 static int sdp_get_alt(struct usb_function *f, unsigned intf) in sdp_get_alt()
562 static void sdp_disable(struct usb_function *f) in sdp_disable()
586 sdp_func->usb_function.name = "sdp"; in sdp_bind_config()
587 sdp_func->usb_function.hs_descriptors = sdp_runtime_descs; in sdp_bind_config()
588 sdp_func->usb_function.descriptors = sdp_runtime_descs; in sdp_bind_config()
589 sdp_func->usb_function.bind = sdp_bind; in sdp_bind_config()
590 sdp_func->usb_function.unbind = sdp_unbind; in sdp_bind_config()
591 sdp_func->usb_function.set_alt = sdp_set_alt; in sdp_bind_config()
592 sdp_func->usb_function.get_alt = sdp_get_alt; in sdp_bind_config()
593 sdp_func->usb_function.disable = sdp_disable; in sdp_bind_config()
594 sdp_func->usb_function.strings = sdp_generic_strings; in sdp_bind_config()
595 sdp_func->usb_function.setup = sdp_setup; in sdp_bind_config()
597 status = usb_add_function(c, &sdp_func->usb_function); in sdp_bind_config()