Lines Matching refs:kern_data
451 uint8_t id, void *kern_data, void *user_data, in uhid_get_report() argument
457 if (kern_data == NULL) { in uhid_get_report()
458 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_get_report()
461 err = usbd_req_get_report(sc->sc_udev, NULL, kern_data, in uhid_get_report()
469 err = copyout(kern_data, user_data, len); in uhid_get_report()
476 free(kern_data, M_USBDEV); in uhid_get_report()
483 uint8_t id, void *kern_data, void *user_data, in uhid_set_report() argument
489 if (kern_data == NULL) { in uhid_set_report()
490 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_set_report()
492 err = copyin(user_data, kern_data, len); in uhid_set_report()
497 err = usbd_req_set_report(sc->sc_udev, NULL, kern_data, in uhid_set_report()
505 free(kern_data, M_USBDEV); in uhid_set_report()