/tools/usb/usbip/libsrc/ |
D | usbip_common.c | 17 extern struct udev *udev_context; 94 dbg("%-20s = %x", to_string(name), (int) udev->name) 110 void dump_usb_device(struct usbip_usb_device *udev) in dump_usb_device() argument 114 dbg("%-20s = %s", "path", udev->path); in dump_usb_device() 115 dbg("%-20s = %s", "busid", udev->busid); in dump_usb_device() 118 udev->bDeviceClass, in dump_usb_device() 119 udev->bDeviceSubClass, in dump_usb_device() 120 udev->bDeviceProtocol); in dump_usb_device() 126 udev->idVendor, in dump_usb_device() 127 udev->idProduct); in dump_usb_device() [all …]
|
D | usbip_host_common.c | 26 extern struct udev *udev_context; 28 static int32_t read_attr_usbip_status(struct usbip_usb_device *udev) in read_attr_usbip_status() argument 38 "%s/usbip_status", udev->path); in read_attr_usbip_status() 82 if (hdriver->ops.read_device(edev->sudev, &edev->udev) < 0) in usbip_exported_device_new() 85 edev->status = read_attr_usbip_status(&edev->udev); in usbip_exported_device_new() 91 edev->udev.bNumInterfaces * sizeof(struct usbip_usb_interface); in usbip_exported_device_new() 101 for (i = 0; i < edev->udev.bNumInterfaces; i++) { in usbip_exported_device_new() 105 hdriver->ops.read_interface(&edev->udev, i, &edev->uinf[i]); in usbip_exported_device_new() 221 dbg("device not available: %s", edev->udev.busid); in usbip_export_device() 240 edev->udev.path, attr_name); in usbip_export_device() [all …]
|
D | usbip_host_common.h | 33 int (*read_interface)(struct usbip_usb_device *udev, int i, 35 int (*is_my_device)(struct udev_device *udev); 49 struct usbip_usb_device udev; member
|
D | vhci_driver.c | 18 struct udev *udev_context; 31 read_usb_device(sudev, &idev->udev); in imported_device_init() 447 usbip_speed_string(idev->udev.speed)); in usbip_vhci_imported_device_dump() 450 idev->udev.idVendor, idev->udev.idProduct); in usbip_vhci_imported_device_dump() 455 printf("%10s -> usbip://%s:%s/%s\n", idev->udev.busid, in usbip_vhci_imported_device_dump() 461 idev->udev.busid); in usbip_vhci_imported_device_dump()
|
D | usbip_common.h | 135 int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev); 138 int read_usb_interface(struct usbip_usb_device *udev, int i,
|
D | vhci_driver.h | 33 struct usbip_usb_device udev; member
|
/tools/usb/usbip/src/ |
D | usbip_list.c | 49 struct usbip_usb_device udev; in get_exported_devices() local 87 memset(&udev, 0, sizeof(udev)); in get_exported_devices() 88 rc = usbip_net_recv(sockfd, &udev, sizeof(udev)); in get_exported_devices() 93 usbip_net_pack_usb_device(0, &udev); in get_exported_devices() 96 udev.idVendor, udev.idProduct); in get_exported_devices() 98 udev.bDeviceClass, udev.bDeviceSubClass, in get_exported_devices() 99 udev.bDeviceProtocol); in get_exported_devices() 100 printf("%11s: %s\n", udev.busid, product_name); in get_exported_devices() 101 printf("%11s: %s\n", "", udev.path); in get_exported_devices() 104 for (j = 0; j < udev.bNumInterfaces; j++) { in get_exported_devices() [all …]
|
D | usbip_bind.c | 67 struct udev *udev; in unbind_other() local 73 udev = udev_new(); in unbind_other() 76 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_other() 125 udev_unref(udev); in unbind_other() 133 struct udev *udev; in bind_device() local 138 udev = udev_new(); in bind_device() 139 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in bind_device() 145 udev_unref(udev); in bind_device()
|
D | usbip_network.c | 77 void usbip_net_pack_usb_device(int pack, struct usbip_usb_device *udev) in usbip_net_pack_usb_device() argument 79 udev->busnum = usbip_net_pack_uint32_t(pack, udev->busnum); in usbip_net_pack_usb_device() 80 udev->devnum = usbip_net_pack_uint32_t(pack, udev->devnum); in usbip_net_pack_usb_device() 81 udev->speed = usbip_net_pack_uint32_t(pack, udev->speed); in usbip_net_pack_usb_device() 83 udev->idVendor = usbip_net_pack_uint16_t(pack, udev->idVendor); in usbip_net_pack_usb_device() 84 udev->idProduct = usbip_net_pack_uint16_t(pack, udev->idProduct); in usbip_net_pack_usb_device() 85 udev->bcdDevice = usbip_net_pack_uint16_t(pack, udev->bcdDevice); in usbip_net_pack_usb_device() 89 struct usbip_usb_interface *udev in usbip_net_pack_usb_interface() argument
|
D | usbip_network.h | 52 struct usbip_usb_device udev; member 67 struct usbip_usb_device udev; member 75 usbip_net_pack_usb_device(pack, &(reply)->udev);\ 85 struct usbip_usb_device udev; member 94 usbip_net_pack_usb_device(pack, &(request)->udev);\ 107 struct usbip_usb_device udev; member 115 usbip_net_pack_usb_device(pack, &(request)->udev);\ 152 struct usbip_usb_device udev; member 165 void usbip_net_pack_usb_device(int pack, struct usbip_usb_device *udev);
|
D | usbip_unbind.c | 40 struct udev *udev; in unbind_device() local 45 udev = udev_new(); in unbind_device() 48 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_device() 95 udev_unref(udev); in unbind_device()
|
D | usbip_attach.c | 81 static int import_device(int sockfd, struct usbip_usb_device *udev) in import_device() argument 85 uint32_t speed = udev->speed; in import_device() 102 rc = usbip_vhci_attach_device(port, sockfd, udev->busnum, in import_device() 103 udev->devnum, udev->speed); in import_device() 165 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { in query_import_device() 166 err("recv different busid %s", reply.udev.busid); in query_import_device() 171 return import_device(sockfd, &reply.udev); in query_import_device()
|
D | usbipd.c | 112 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import() 143 memcpy(&pdu_udev, &edev->udev, sizeof(pdu_udev)); in recv_request_import() 202 dump_usb_device(&edev->udev); in send_reply_devlist() 203 memcpy(&pdu_udev, &edev->udev, sizeof(pdu_udev)); in send_reply_devlist() 212 for (i = 0; i < edev->udev.bNumInterfaces; i++) { in send_reply_devlist()
|
/tools/usb/usbip/ |
D | configure.ac | 48 [AC_CHECK_LIB([udev], [udev_new], 50 [AC_MSG_ERROR([Missing udev library!])])],
|