Searched refs:hdriver (Results 1 – 4 of 4) sorted by relevance
37 int (*open)(struct usbip_host_driver *hdriver);38 void (*close)(struct usbip_host_driver *hdriver);39 int (*refresh_device_list)(struct usbip_host_driver *hdriver);41 struct usbip_host_driver *hdriver, int num);67 static inline int usbip_driver_open(struct usbip_host_driver *hdriver) in usbip_driver_open() argument69 if (!hdriver->ops.open) in usbip_driver_open()71 return hdriver->ops.open(hdriver); in usbip_driver_open()74 static inline void usbip_driver_close(struct usbip_host_driver *hdriver) in usbip_driver_close() argument76 if (!hdriver->ops.close) in usbip_driver_close()78 hdriver->ops.close(hdriver); in usbip_driver_close()[all …]
78 struct usbip_host_driver *hdriver, const char *sdevpath) in usbip_exported_device_new() argument94 if (hdriver->ops.read_device(edev->sudev, &edev->udev) < 0) in usbip_exported_device_new()115 if (!hdriver->ops.read_interface) in usbip_exported_device_new()117 hdriver->ops.read_interface(&edev->udev, i, &edev->uinf[i]); in usbip_exported_device_new()130 static int refresh_exported_devices(struct usbip_host_driver *hdriver) in refresh_exported_devices() argument139 udev_enumerate_add_match_subsystem(enumerate, hdriver->udev_subsystem); in refresh_exported_devices()152 if (hdriver->ops.is_my_device(dev)) { in refresh_exported_devices()153 edev = usbip_exported_device_new(hdriver, path); in refresh_exported_devices()159 list_add(&edev->node, &hdriver->edev_list); in refresh_exported_devices()160 hdriver->ndevs++; in refresh_exported_devices()[all …]
39 static int usbip_host_driver_open(struct usbip_host_driver *hdriver) in usbip_host_driver_open() argument43 hdriver->ndevs = 0; in usbip_host_driver_open()44 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_host_driver_open()46 ret = usbip_generic_driver_open(hdriver); in usbip_host_driver_open()
140 static int usbip_device_driver_open(struct usbip_host_driver *hdriver) in usbip_device_driver_open() argument144 hdriver->ndevs = 0; in usbip_device_driver_open()145 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_device_driver_open()147 ret = usbip_generic_driver_open(hdriver); in usbip_device_driver_open()