Lines Matching refs:hostfd
105 int hostfd; member
948 static int usb_host_open(USBHostDevice *s, libusb_device *dev, int hostfd) in usb_host_open() argument
975 trace_usb_host_open_hostfd(hostfd); in usb_host_open()
977 rc = libusb_wrap_sys_device(ctx, hostfd, &s->dh); in usb_host_open()
981 s->hostfd = hostfd; in usb_host_open()
1005 if (hostfd && libusb_speed == 0) { in usb_host_open()
1013 rc = ioctl(hostfd, USBDEVFS_GET_SPEED, NULL); in usb_host_open()
1126 if (s->hostfd != -1) { in usb_host_close()
1127 close(s->hostfd); in usb_host_close()
1128 s->hostfd = -1; in usb_host_close()
1209 s->hostfd = -1; in usb_host_realize()