Lines Matching refs:ugd
556 struct usb_gen_descriptor *ugd; in uhid_ioctl() local
565 ugd = addr; in uhid_ioctl()
572 ugd = &local_ugd; in uhid_ioctl()
573 usb_gen_descriptor_from32(ugd, ugd32); in uhid_ioctl()
581 if (sc->sc_repdesc_size > ugd->ugd_maxlen) { in uhid_ioctl()
582 size = ugd->ugd_maxlen; in uhid_ioctl()
586 ugd->ugd_actlen = size; in uhid_ioctl()
587 if (ugd->ugd_data == NULL) in uhid_ioctl()
589 error = copyout(sc->sc_repdesc_ptr, ugd->ugd_data, size); in uhid_ioctl()
620 switch (ugd->ugd_report_type) { in uhid_ioctl()
636 size = imin(ugd->ugd_maxlen, size); in uhid_ioctl()
638 error = copyin(ugd->ugd_data, &id, 1); in uhid_ioctl()
640 error = uhid_get_report(sc, ugd->ugd_report_type, id, in uhid_ioctl()
641 NULL, ugd->ugd_data, size); in uhid_ioctl()
642 ugd->ugd_actlen = size; in uhid_ioctl()
650 switch (ugd->ugd_report_type) { in uhid_ioctl()
667 error = copyin(ugd->ugd_data, &id, 1); in uhid_ioctl()
669 error = uhid_set_report(sc, ugd->ugd_report_type, id, in uhid_ioctl()
670 NULL, ugd->ugd_data, imin(ugd->ugd_maxlen, size)); in uhid_ioctl()
683 update_usb_gen_descriptor32(ugd32, ugd); in uhid_ioctl()