Lines Matching full:descriptors
107 /******************** Descriptors and Strings *******************************/
126 } __attribute__((packed)) descriptors = { variable
132 .length = cpu_to_le32(sizeof descriptors),
137 .bLength = sizeof descriptors.fs_descs.intf,
144 .bLength = sizeof descriptors.fs_descs.sink,
151 .bLength = sizeof descriptors.fs_descs.source,
161 .bLength = sizeof descriptors.fs_descs.intf,
168 .bLength = sizeof descriptors.hs_descs.sink,
175 .bLength = sizeof descriptors.hs_descs.source,
186 .bLength = sizeof descriptors.fs_descs.intf,
193 .bLength = sizeof descriptors.hs_descs.sink,
207 .bLength = sizeof descriptors.hs_descs.source,
273 * Find the end of FS and HS USB descriptors. SS descriptors in descs_to_legacy()
284 /* Allocate legacy descriptors and copy the data. */ in descs_to_legacy()
290 __u8 descriptors[]; in descs_to_legacy() member
300 memcpy(out->descriptors, descs_start, descs_end - descs_start); in descs_to_legacy()
633 info("%s: writing descriptors\n", t->filename); in ep0_init()
637 info("%s: writing descriptors (in v2 format)\n", t->filename); in ep0_init()
638 ret = write(t->fd, &descriptors, sizeof descriptors); in ep0_init()
643 len = descs_to_legacy(&legacy, &descriptors); in ep0_init()
649 die_on(ret < 0, "%s: write: descriptors", t->filename); in ep0_init()