Home
last modified time | relevance | path

Searched refs:hdriver (Results 1 – 4 of 4) sorted by relevance

/linux-5.19.10/tools/usb/usbip/libsrc/
Dusbip_host_common.h25 int (*open)(struct usbip_host_driver *hdriver);
26 void (*close)(struct usbip_host_driver *hdriver);
27 int (*refresh_device_list)(struct usbip_host_driver *hdriver);
29 struct usbip_host_driver *hdriver, int num);
55 static inline int usbip_driver_open(struct usbip_host_driver *hdriver) in usbip_driver_open() argument
57 if (!hdriver->ops.open) in usbip_driver_open()
59 return hdriver->ops.open(hdriver); in usbip_driver_open()
62 static inline void usbip_driver_close(struct usbip_host_driver *hdriver) in usbip_driver_close() argument
64 if (!hdriver->ops.close) in usbip_driver_close()
66 hdriver->ops.close(hdriver); in usbip_driver_close()
[all …]
Dusbip_host_common.c66 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()
[all …]
Dusbip_host_driver.c27 static int usbip_host_driver_open(struct usbip_host_driver *hdriver) in usbip_host_driver_open() argument
31 hdriver->ndevs = 0; in usbip_host_driver_open()
32 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_host_driver_open()
34 ret = usbip_generic_driver_open(hdriver); in usbip_host_driver_open()
Dusbip_device_driver.c132 static int usbip_device_driver_open(struct usbip_host_driver *hdriver) in usbip_device_driver_open() argument
136 hdriver->ndevs = 0; in usbip_device_driver_open()
137 INIT_LIST_HEAD(&hdriver->edev_list); in usbip_device_driver_open()
139 ret = usbip_generic_driver_open(hdriver); in usbip_device_driver_open()