Home | History | Annotate | Download | only in adb

Lines Matching refs:desc

56     int desc;
333 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
384 res = ioctl(h->desc, USBDEVFS_SUBMITURB, urb);
396 res = ioctl(h->desc, USBDEVFS_REAPURB, &out);
483 D("[ usb read %d fd = %d], fname=%s\n", xfer, h->desc, h->fname);
487 if((errno == ETIMEDOUT) && (h->desc != -1)) {
510 D("[ kicking %p (fd = %d) ]\n", h, h->desc);
529 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_in);
530 ioctl(h->desc, USBDEVFS_DISCARDURB, &h->urb_out);
552 desc);
553 D("[ usb closed %p (fd = %d) ]\n", h, h->desc);
600 usb->desc = unix_open(usb->fname, O_RDWR);
601 if(usb->desc < 0) {
603 usb->desc = unix_open(usb->fname, O_RDONLY);
604 if(usb->desc < 0) goto fail;
606 D("[ usb open read-only %s fd = %d]\n", usb->fname, usb->desc);
608 D("[ usb open %s fd = %d]\n", usb->fname, usb->desc);
609 n = ioctl(usb->desc, USBDEVFS_CLAIMINTERFACE, &interface);
635 result = ioctl(usb->desc, USBDEVFS_CONTROL, &ctrl);
651 result = ioctl(usb->desc, USBDEVFS_CONTROL, &ctrl);
678 if(usb->desc >= 0) {
679 adb_close(usb->desc);