Lines Matching refs:hdriver
25 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()
69 static inline int usbip_refresh_device_list(struct usbip_host_driver *hdriver) in usbip_refresh_device_list() argument
71 if (!hdriver->ops.refresh_device_list) in usbip_refresh_device_list()
73 return hdriver->ops.refresh_device_list(hdriver); in usbip_refresh_device_list()
77 usbip_get_device(struct usbip_host_driver *hdriver, int num) in usbip_get_device() argument
79 if (!hdriver->ops.get_device) in usbip_get_device()
81 return hdriver->ops.get_device(hdriver, num); in usbip_get_device()
85 int usbip_generic_driver_open(struct usbip_host_driver *hdriver);
86 void usbip_generic_driver_close(struct usbip_host_driver *hdriver);
87 int usbip_generic_refresh_device_list(struct usbip_host_driver *hdriver);
90 struct usbip_host_driver *hdriver, int num);