Lines Matching refs:descriptors
53 * function_descriptors() - get function descriptors for speed
57 * Returns the descriptors or NULL if not set.
63 struct usb_descriptor_header **descriptors;
72 descriptors = f->ssp_descriptors;
73 if (descriptors)
77 descriptors = f->ss_descriptors;
78 if (descriptors)
82 descriptors = f->hs_descriptors;
83 if (descriptors)
87 descriptors = f->fs_descriptors;
91 * if we can't find any descriptors at all, then this gadget deserves to
95 return descriptors;
119 * for_each_desc() - iterate over desc_type descriptors in the
120 * descriptors list
139 * This function chooses the right descriptors for a given
145 * Note: the supplied function should hold all the descriptors
203 /* find descriptors */
269 * This function chooses the right descriptors for a given
275 * Note: the supplied function should hold all the descriptors
450 * ID in interface, association, CDC union, and other descriptors. It
460 * multiple versions of the relevant descriptors.
521 /* There may be e.g. OTG descriptors */
522 if (config->descriptors) {
524 config->descriptors);
531 /* add each function's descriptors */
533 struct usb_descriptor_header **descriptors;
535 descriptors = function_descriptors(f, speed);
536 if (!descriptors)
539 (const struct usb_descriptor_header **) descriptors);
659 * descriptor and its device capabilities descriptors. The BOS
862 struct usb_descriptor_header **descriptors;
873 descriptors = function_descriptors(f, gadget->speed);
875 for (; *descriptors; ++descriptors) {
879 if ((*descriptors)->bDescriptorType != USB_DT_ENDPOINT)
882 ep = (struct usb_endpoint_descriptor *)*descriptors;
1237 * then store that ID in the appropriate descriptors and string table.
1265 * then copy IDs from the string table to the appropriate descriptors
1414 * then store that ID in the appropriate descriptors and string table.
1682 /* we handle all standard USB descriptors */
1764 memcpy(req->buf, config->descriptors[0], value);
1908 * OS descriptors handling