Searched refs:kern_data (Results 1 – 2 of 2) sorted by relevance
| /freebsd-14.2/sys/dev/usb/input/ |
| H A D | uhid_snes.c | 160 uint8_t id, void *kern_data, void *user_data, uint16_t len) in uhid_get_report() argument 165 if (kern_data == NULL) { in uhid_get_report() 166 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_get_report() 169 err = usbd_req_get_report(sc->sc_udev, NULL, kern_data, in uhid_get_report() 177 err = copyout(kern_data, user_data, len); in uhid_get_report() 184 free(kern_data, M_USBDEV); in uhid_get_report() 196 if (kern_data == NULL) { in uhid_set_report() 197 kern_data = malloc(len, M_USBDEV, M_WAITOK); in uhid_set_report() 199 err = copyin(user_data, kern_data, len); in uhid_set_report() 204 err = usbd_req_set_report(sc->sc_udev, NULL, kern_data, in uhid_set_report() [all …]
|
| H A D | uhid.c | 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() [all …]
|