Searched refs:urb (Results 1 – 2 of 2) sorted by relevance
308 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write() local309 memset(urb, 0, sizeof(*urb)); in usb_bulk_write()310 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_bulk_write()311 urb->endpoint = h->ep_out; in usb_bulk_write()312 urb->status = -1; in usb_bulk_write()313 urb->buffer = const_cast<void*>(data); in usb_bulk_write()314 urb->buffer_length = len; in usb_bulk_write()321 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write()334 if (urb->status != 0) { in usb_bulk_write()335 errno = -urb->status; in usb_bulk_write()[all …]
690 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in usb_request_new() local691 if (!urb) in usb_request_new()695 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_request_new()697 urb->type = USBDEVFS_URB_TYPE_INTERRUPT; in usb_request_new()700 free(urb); in usb_request_new()703 urb->endpoint = ep_desc->bEndpointAddress; in usb_request_new()707 free(urb); in usb_request_new()713 req->private_data = urb; in usb_request_new()714 req->endpoint = urb->endpoint; in usb_request_new()715 urb->usercontext = req; in usb_request_new()[all …]