Man Page: config_ep_by_speed
Operating Environment: centos
Section: 9
CONFIG_EP_BY_SPEED(9) Kernel Mode Gadget API CONFIG_EP_BY_SPEED(9)NAMEconfig_ep_by_speed - configures the given endpoint according to gadget speed.SYNOPSISint config_ep_by_speed(struct usb_gadget * g, struct usb_function * f, struct usb_ep * _ep);ARGUMENTSg pointer to the gadget f usb function _ep the endpoint to configureRETURNerror code, 0 on success This function chooses the right descriptors for a given endpoint according to gadget speed and saves it in the endpoint desc field. If the endpoint already has a descriptor assigned to it - overwrites it with currently corresponding descriptor. The endpoint maxpacket field is updated according to the chosen descriptor.NOTEthe supplied function should hold all the descriptors for supported speedsAUTHORDavid Brownell <dbrownell@users.sourceforge.net> Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 CONFIG_EP_BY_SPEED(9)