Lines Matching defs:descriptors
56 * function_descriptors() - get function descriptors for speed
60 * Returns the descriptors or NULL if not set.
66 struct usb_descriptor_header **descriptors;
75 descriptors = f->ssp_descriptors;
76 if (descriptors)
80 descriptors = f->ss_descriptors;
81 if (descriptors)
85 descriptors = f->hs_descriptors;
86 if (descriptors)
90 descriptors = f->fs_descriptors;
94 * if we can't find any descriptors at all, then this gadget deserves to
98 return descriptors;
122 * for_each_desc() - iterate over desc_type descriptors in the
123 * descriptors list
142 * This function chooses the right descriptors for a given
148 * Note: the supplied function should hold all the descriptors
202 "%s doesn't hold the descriptors for current speed\n",
217 /* find descriptors */
279 * This function chooses the right descriptors for a given
285 * Note: the supplied function should hold all the descriptors
460 * ID in interface, association, CDC union, and other descriptors. It
470 * multiple versions of the relevant descriptors.
584 /* There may be e.g. OTG descriptors */
585 if (config->descriptors) {
587 config->descriptors);
594 /* add each function's descriptors */
596 struct usb_descriptor_header **descriptors;
598 descriptors = function_descriptors(f, speed);
599 if (!descriptors)
602 (const struct usb_descriptor_header **) descriptors);
722 * descriptor and its device capabilities descriptors. The BOS
992 struct usb_descriptor_header **descriptors;
1003 descriptors = function_descriptors(f, gadget->speed);
1005 for (; *descriptors; ++descriptors) {
1009 if ((*descriptors)->bDescriptorType != USB_DT_ENDPOINT)
1012 ep = (struct usb_endpoint_descriptor *)*descriptors;
1376 * then store that ID in the appropriate descriptors and string table.
1404 * then copy IDs from the string table to the appropriate descriptors
1553 * then store that ID in the appropriate descriptors and string table.
1822 /* we handle all standard USB descriptors */
1904 memcpy(req->buf, config->descriptors[0], value);
2095 * OS descriptors handling