Lines Matching refs:hdriver

66 		struct usbip_host_driver *hdriver, const char *sdevpath)  in usbip_exported_device_new()  argument
82 if (hdriver->ops.read_device(edev->sudev, &edev->udev) < 0) in usbip_exported_device_new()
103 if (!hdriver->ops.read_interface) in usbip_exported_device_new()
105 hdriver->ops.read_interface(&edev->udev, i, &edev->uinf[i]); in usbip_exported_device_new()
118 static int refresh_exported_devices(struct usbip_host_driver *hdriver) in refresh_exported_devices() argument
127 udev_enumerate_add_match_subsystem(enumerate, hdriver->udev_subsystem); in refresh_exported_devices()
140 if (hdriver->ops.is_my_device(dev)) { in refresh_exported_devices()
141 edev = usbip_exported_device_new(hdriver, path); in refresh_exported_devices()
147 list_add(&edev->node, &hdriver->edev_list); in refresh_exported_devices()
148 hdriver->ndevs++; in refresh_exported_devices()
167 int usbip_generic_driver_open(struct usbip_host_driver *hdriver) in usbip_generic_driver_open() argument
177 rc = refresh_exported_devices(hdriver); in usbip_generic_driver_open()
186 void usbip_generic_driver_close(struct usbip_host_driver *hdriver) in usbip_generic_driver_close() argument
188 if (!hdriver) in usbip_generic_driver_close()
191 usbip_exported_device_destroy(&hdriver->edev_list); in usbip_generic_driver_close()
196 int usbip_generic_refresh_device_list(struct usbip_host_driver *hdriver) in usbip_generic_refresh_device_list() argument
200 usbip_exported_device_destroy(&hdriver->edev_list); in usbip_generic_refresh_device_list()
202 hdriver->ndevs = 0; in usbip_generic_refresh_device_list()
203 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_generic_refresh_device_list()
205 rc = refresh_exported_devices(hdriver); in usbip_generic_refresh_device_list()
268 struct usbip_host_driver *hdriver, int num) in usbip_generic_get_device() argument
274 list_for_each(i, &hdriver->edev_list) { in usbip_generic_get_device()