Lines Matching full:descriptor
1 /* usb_descriptor.c - USB common device descriptor definition */
35 /* Linker-defined symbols bound the USB descriptor structs */
54 * Device and configuration descriptor placed in the device section,
55 * no additional descriptor may be placed there.
58 /* Device descriptor */
85 /* Configuration descriptor */
148 /* Manufacturer String Descriptor */
155 /* Product String Descriptor */
162 /* Serial Number String Descriptor */
169 /* Configuration String Descriptor */
178 /* This element marks the end of the entire descriptor. */
188 static void ascii7_to_utf16le(void *descriptor) in ascii7_to_utf16le() argument
190 struct usb_string_descriptor *str_descr = descriptor; in ascii7_to_utf16le()
235 /* move to next descriptor */ in usb_get_str_descriptor_idx()
246 * The default endpoint address is stored in endpoint descriptor and
304 * The interface descriptor of a USB function must be assigned to the
305 * usb_cfg_data so that usb_ep_cfg_data and matching endpoint descriptor
320 * Default USB Serial Number string descriptor will be derived from
323 * descriptor may not exceed the length of the CONFIG_USB_DEVICE_SN. In
374 LOG_WRN("the new SN descriptor doesn't have the same " in usb_fix_ascii_sn_string_descriptor()
407 * The entire descriptor, placed in the .usb.descriptor section,
414 * - string descriptor must be present
429 LOG_DBG("Device descriptor %p", head); in usb_fix_descriptor()
434 LOG_DBG("Configuration descriptor %p", head); in usb_fix_descriptor()
437 LOG_DBG("Association descriptor %p", head); in usb_fix_descriptor()
441 LOG_DBG("Interface descriptor %p", head); in usb_fix_descriptor()
466 "corrupted device descriptor?"); in usb_fix_descriptor()
470 LOG_DBG("Endpoint descriptor %p", head); in usb_fix_descriptor()
483 * Copy runtime SN string descriptor first, if has in usb_fix_descriptor()
491 * Skip language descriptor but correct in usb_fix_descriptor()
498 LOG_ERR("Incomplete device descriptor"); in usb_fix_descriptor()
516 /* Move to next descriptor */ in usb_fix_descriptor()
521 LOG_DBG("try to fix next descriptor at %p", head + 1); in usb_fix_descriptor()
538 LOG_ERR("Failed to fixup USB descriptor"); in usb_get_device_descriptor()