Lines Matching defs:urb
313 struct usbdevfs_urb *urb = &h->urb_out;
318 memset(urb, 0, sizeof(*urb));
319 urb->type = USBDEVFS_URB_TYPE_BULK;
320 urb->endpoint = h->ep_out;
321 urb->status = -1;
322 urb->buffer = (void*) data;
323 urb->buffer_length = len;
333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
352 if(urb->status == 0) {
353 res = urb->actual_length;
366 struct usbdevfs_urb *urb = &h->urb_in;
370 memset(urb, 0, sizeof(*urb));
371 urb->type = USBDEVFS_URB_TYPE_BULK;
372 urb->endpoint = h->ep_in;
373 urb->status = -1;
374 urb->buffer = data;
375 urb->buffer_length = len;
384 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
393 D("[ reap urb - wait ]\n");
408 D("[ reap urb - error ]\n");
411 D("[ urb @%p status = %d, actual = %d ]\n",
415 D("[ reap urb - IN complete ]\n");
417 if(urb->status == 0) {
418 res = urb->actual_length;
425 D("[ reap urb - OUT compelete ]\n");