Lines Matching refs:ugd
126 struct usb_gen_descriptor ugd; in hid_get_report() local
128 memset(&ugd, 0, sizeof(ugd)); in hid_get_report()
129 ugd.ugd_data = hid_pass_ptr(data); in hid_get_report()
130 ugd.ugd_maxlen = size; in hid_get_report()
131 ugd.ugd_report_type = k + 1; in hid_get_report()
132 return (ioctl(fd, USB_GET_REPORT, &ugd)); in hid_get_report()
138 struct usb_gen_descriptor ugd; in hid_set_report() local
140 memset(&ugd, 0, sizeof(ugd)); in hid_set_report()
141 ugd.ugd_data = hid_pass_ptr(data); in hid_set_report()
142 ugd.ugd_maxlen = size; in hid_set_report()
143 ugd.ugd_report_type = k + 1; in hid_set_report()
144 return (ioctl(fd, USB_SET_REPORT, &ugd)); in hid_set_report()