Searched refs:kern_data (Results 1 – 2 of 2) sorted by relevance
| /freebsd-13.1/sys/dev/usb/input/ |
| H A D | uhid_snes.c | 163 uint8_t id, void *kern_data, void *user_data, uint16_t len) in uhid_get_report() argument 168 if (kern_data == NULL) { in uhid_get_report() 169 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_get_report() 172 err = usbd_req_get_report(sc->sc_udev, NULL, kern_data, in uhid_get_report() 180 err = copyout(kern_data, user_data, len); in uhid_get_report() 187 free(kern_data, M_USBDEV); in uhid_get_report() 199 if (kern_data == NULL) { in uhid_set_report() 200 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_set_report() 202 err = copyin(user_data, kern_data, len); in uhid_set_report() 207 err = usbd_req_set_report(sc->sc_udev, NULL, kern_data, in uhid_set_report() [all …]
|
| H A D | uhid.c | 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() [all …]
|