Searched refs:urb (Results 1 – 2 of 2) sorted by relevance
614 struct usbdevfs_urb *urb = calloc(1, sizeof(struct usbdevfs_urb)); in usb_request_new() local615 if (!urb) in usb_request_new()619 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_request_new()621 urb->type = USBDEVFS_URB_TYPE_INTERRUPT; in usb_request_new()624 free(urb); in usb_request_new()627 urb->endpoint = ep_desc->bEndpointAddress; in usb_request_new()631 free(urb); in usb_request_new()637 req->private_data = urb; in usb_request_new()638 req->endpoint = urb->endpoint; in usb_request_new()639 urb->usercontext = req; in usb_request_new()[all …]
313 struct usbdevfs_urb *urb = &h->urb_out; in usb_bulk_write() local318 memset(urb, 0, sizeof(*urb)); in usb_bulk_write()319 urb->type = USBDEVFS_URB_TYPE_BULK; in usb_bulk_write()320 urb->endpoint = h->ep_out; in usb_bulk_write()321 urb->status = -1; in usb_bulk_write()322 urb->buffer = (void*) data; in usb_bulk_write()323 urb->buffer_length = len; in usb_bulk_write()333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb); in usb_bulk_write()352 if(urb->status == 0) { in usb_bulk_write()353 res = urb->actual_length; in usb_bulk_write()[all …]