Home
last modified time | relevance | path

Searched refs:urb (Results 1 – 2 of 2) sorted by relevance

/system/core/adb/client/
Dusb_linux.cpp303 usbdevfs_urb* urb = &h->urb_out; in usb_bulk_write() local
304 memset(urb, 0, sizeof(*urb)); in usb_bulk_write()
305 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_bulk_write()
306 urb->endpoint = h->ep_out; in usb_bulk_write()
307 urb->status = -1; in usb_bulk_write()
308 urb->buffer = const_cast<void*>(data); in usb_bulk_write()
309 urb->buffer_length = len; in usb_bulk_write()
316 if (TEMP_FAILURE_RETRY(ioctl(h->fd, USBDEVFS_SUBMITURB, urb)) == -1) { in usb_bulk_write()
329 if (urb->status != 0) { in usb_bulk_write()
330 errno = -urb->status; in usb_bulk_write()
[all …]
/system/core/libusbhost/
Dusbhost.c635 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in usb_request_new() local
636 if (!urb) in usb_request_new()
640 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_request_new()
642 urb->type = USBDEVFS_URB_TYPE_INTERRUPT; in usb_request_new()
645 free(urb); in usb_request_new()
648 urb->endpoint = ep_desc->bEndpointAddress; in usb_request_new()
652 free(urb); in usb_request_new()
658 req->private_data = urb; in usb_request_new()
659 req->endpoint = urb->endpoint; in usb_request_new()
660 urb->usercontext = req; in usb_request_new()
[all …]