Lines Matching refs:hostfd
105 int hostfd; member
889 static int usb_host_open(USBHostDevice *s, libusb_device *dev, int hostfd) in usb_host_open() argument
916 trace_usb_host_open_hostfd(hostfd); in usb_host_open()
918 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open()
922 s->hostfd = hostfd; in usb_host_open()
945 if (hostfd && libusb_speed == 0) { in usb_host_open()
953 int rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); in usb_host_open()
1060 if (s->hostfd != -1) { in usb_host_close()
1061 close(s->hostfd); in usb_host_close()
1062 s->hostfd = -1; in usb_host_close()
1142 s->hostfd = -1; in usb_host_realize()