Lines Matching refs:urb
111 * we need contigious buffer when we submit control URB.
197 * Async URB state.
203 struct usbdevfs_urb urb;
259 dprintf("husb: async. reap urb failed errno %d\n", errno);
266 aurb, aurb->urb.status, aurb->urb.actual_length);
269 switch (aurb->urb.status) {
271 p->len = aurb->urb.actual_length;
272 if (aurb->urb.type == USBDEVFS_URB_TYPE_CONTROL)
303 dprintf("husb: async. discard urb failed errno %d\n", errno);
440 struct usbdevfs_urb *urb;
448 urb = &aurb->urb;
451 urb->endpoint = p->devep | 0x80;
453 urb->endpoint = p->devep;
456 ret = ioctl(s->fd, USBDEVFS_CLEAR_HALT, &urb->endpoint);
459 urb->endpoint, errno);
465 urb->buffer = p->data;
466 urb->buffer_length = p->len;
470 urb->type = USBDEVFS_URB_TYPE_ISO;
471 urb->flags = USBDEVFS_URB_ISO_ASAP;
472 urb->number_of_packets = 1;
473 urb->iso_frame_desc[0].length = p->len;
476 urb->type = USBDEVFS_URB_TYPE_BULK;
479 urb->usercontext = s;
481 ret = ioctl(s->fd, USBDEVFS_SUBMITURB, urb);
483 dprintf("husb: data submit. ep 0x%x len %u aurb %p\n", urb->endpoint, p->len, aurb);
553 struct usbdevfs_urb *urb;
594 urb = &aurb->urb;
596 urb->type = USBDEVFS_URB_TYPE_CONTROL;
597 urb->endpoint = p->devep;
599 urb->buffer = &s->ctrl.req;
600 urb->buffer_length = 8 + s->ctrl.len;
602 urb->usercontext = s;
604 ret = ioctl(s->fd, USBDEVFS_SUBMITURB, urb);
606 dprintf("husb: submit ctrl. len %u aurb %p\n", urb->buffer_length, aurb);