Lines Matching refs:kern_data
455 uint8_t id, void *kern_data, void *user_data, in uhid_get_report() argument
461 if (kern_data == NULL) { in uhid_get_report()
462 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_get_report()
465 err = usbd_req_get_report(sc->sc_udev, NULL, kern_data, in uhid_get_report()
473 err = copyout(kern_data, user_data, len); in uhid_get_report()
480 free(kern_data, M_USBDEV); in uhid_get_report()
487 uint8_t id, void *kern_data, void *user_data, in uhid_set_report() argument
493 if (kern_data == NULL) { in uhid_set_report()
494 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_set_report()
496 err = copyin(user_data, kern_data, len); in uhid_set_report()
501 err = usbd_req_set_report(sc->sc_udev, NULL, kern_data, in uhid_set_report()
509 free(kern_data, M_USBDEV); in uhid_set_report()