Lines Matching refs:ugd
552 struct usb_gen_descriptor *ugd;
559 ugd = addr;
560 if (sc->sc_repdesc_size > ugd->ugd_maxlen) {
561 size = ugd->ugd_maxlen;
565 ugd->ugd_actlen = size;
566 if (ugd->ugd_data == NULL)
568 error = copyout(sc->sc_repdesc_ptr, ugd->ugd_data, size);
600 ugd = addr;
601 switch (ugd->ugd_report_type) {
618 copyin(ugd->ugd_data, &id, 1);
619 error = uhid_get_report(sc, ugd->ugd_report_type, id,
620 NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size));
628 ugd = addr;
629 switch (ugd->ugd_report_type) {
646 copyin(ugd->ugd_data, &id, 1);
647 error = uhid_set_report(sc, ugd->ugd_report_type, id,
648 NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size));