Lines Matching refs:descriptors
126 } __attribute__((packed)) descriptors = {
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
284 /* Allocate legacy descriptors and copy the data. */
290 __u8 descriptors[];
300 memcpy(out->descriptors, descs_start, descs_end - descs_start);
633 info("%s: writing descriptors\n", t->filename);
637 info("%s: writing descriptors (in v2 format)\n", t->filename);
638 ret = write(t->fd, &descriptors, sizeof descriptors);
643 len = descs_to_legacy(&legacy, &descriptors);
649 die_on(ret < 0, "%s: write: descriptors", t->filename);