Lines Matching refs:vhci_driver

17 struct usbip_vhci_driver *vhci_driver;  variable
72 idev = &vhci_driver->idev[port]; in parse_status()
117 for (i = 0; i < vhci_driver->ncontrollers; i++) { in refresh_imported_device_list()
121 attr_status = udev_device_get_sysattr_value(vhci_driver->hc_device, in refresh_imported_device_list()
162 platform = udev_device_get_parent(vhci_driver->hc_device); in get_ncontrollers()
271 vhci_driver = calloc(1, sizeof(struct usbip_vhci_driver) + in usbip_vhci_driver_open()
273 if (!vhci_driver) { in usbip_vhci_driver_open()
278 vhci_driver->nports = nports; in usbip_vhci_driver_open()
279 vhci_driver->hc_device = hc_device; in usbip_vhci_driver_open()
280 vhci_driver->ncontrollers = get_ncontrollers(); in usbip_vhci_driver_open()
281 dbg("available controllers: %d", vhci_driver->ncontrollers); in usbip_vhci_driver_open()
283 if (vhci_driver->ncontrollers <=0) { in usbip_vhci_driver_open()
296 if (vhci_driver) in usbip_vhci_driver_open()
297 free(vhci_driver); in usbip_vhci_driver_open()
299 vhci_driver = NULL; in usbip_vhci_driver_open()
309 if (!vhci_driver) in usbip_vhci_driver_close()
312 udev_device_unref(vhci_driver->hc_device); in usbip_vhci_driver_close()
314 free(vhci_driver); in usbip_vhci_driver_close()
316 vhci_driver = NULL; in usbip_vhci_driver_close()
337 for (int i = 0; i < vhci_driver->nports; i++) { in usbip_vhci_get_free_port()
341 if (vhci_driver->idev[i].hub != HUB_SPEED_SUPER) in usbip_vhci_get_free_port()
345 if (vhci_driver->idev[i].hub != HUB_SPEED_HIGH) in usbip_vhci_get_free_port()
350 if (vhci_driver->idev[i].status == VDEV_ST_NULL) in usbip_vhci_get_free_port()
351 return vhci_driver->idev[i].port; in usbip_vhci_get_free_port()
369 path = udev_device_get_syspath(vhci_driver->hc_device); in usbip_vhci_attach_device2()
410 path = udev_device_get_syspath(vhci_driver->hc_device); in usbip_vhci_detach_device()