Lines Matching refs:ugd
99 struct usb_gen_descriptor ugd;
103 memset(&ugd, 0, sizeof(ugd));
106 ugd.ugd_data = hid_pass_ptr(NULL);
107 ugd.ugd_maxlen = 65535;
108 if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) {
122 data = malloc(ugd.ugd_actlen);
127 ugd.ugd_data = hid_pass_ptr(data);
128 ugd.ugd_maxlen = ugd.ugd_actlen;
129 if (ioctl(fd, USB_GET_REPORT_DESC, &ugd) < 0) {
136 if (ugd.ugd_actlen < 1) {
143 if (((unsigned char *)data)[ugd.ugd_actlen -1] != 0xC0) {
149 rep = hid_use_report_desc(data, ugd.ugd_actlen);