Lines Matching full:descriptors
120 /******************** Descriptors and Strings *******************************/
139 } __attribute__((packed)) descriptors = { variable
145 .length = cpu_to_le32(sizeof descriptors),
150 .bLength = sizeof descriptors.fs_descs.intf,
157 .bLength = sizeof descriptors.fs_descs.sink,
164 .bLength = sizeof descriptors.fs_descs.source,
174 .bLength = sizeof descriptors.fs_descs.intf,
181 .bLength = sizeof descriptors.hs_descs.sink,
188 .bLength = sizeof descriptors.hs_descs.source,
199 .bLength = sizeof descriptors.fs_descs.intf,
206 .bLength = sizeof descriptors.hs_descs.sink,
220 .bLength = sizeof descriptors.hs_descs.source,
286 * Find the end of FS and HS USB descriptors. SS descriptors in descs_to_legacy()
297 /* Allocate legacy descriptors and copy the data. */ in descs_to_legacy()
303 __u8 descriptors[]; in descs_to_legacy() member
313 memcpy(out->descriptors, descs_start, descs_end - descs_start); in descs_to_legacy()
646 info("%s: writing descriptors\n", t->filename); in ep0_init()
650 info("%s: writing descriptors (in v2 format)\n", t->filename); in ep0_init()
651 ret = write(t->fd, &descriptors, sizeof descriptors); in ep0_init()
656 len = descs_to_legacy(&legacy, &descriptors); in ep0_init()
662 die_on(ret < 0, "%s: write: descriptors", t->filename); in ep0_init()