/tools/usb/usbip/src/ |
D | usbip_bind.c | 50 static int bind_usbip(char *busid) in bind_usbip() argument 60 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); in bind_usbip() 62 err("error binding device %s to driver: %s", busid, in bind_usbip() 71 static int unbind_other(char *busid) in unbind_other() argument 88 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_other() 90 dbg("unable to find device with bus ID %s", busid); in unbind_other() 125 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_other() 127 err("error unbinding device %s from driver", busid); in unbind_other() 142 static int bind_device(char *busid) in bind_device() argument 151 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in bind_device() [all …]
|
D | usbip_unbind.c | 42 static int unbind_device(char *busid) in unbind_device() argument 60 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_device() 78 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_device() 80 err("error unbinding device %s from driver", busid); in unbind_device() 85 rc = modify_match_busid(busid, 0); in unbind_device() 87 err("unable to unbind device on %s", busid); in unbind_device() 96 rc = write_sysfs_attribute(rebind_attr_path, busid, strlen(busid)); in unbind_device() 103 info("unbind device on busid %s: complete", busid); in unbind_device()
|
D | usbip_attach.c | 51 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument 80 host, port, busid); in record_connection() 124 static int query_import_device(int sockfd, char *busid) in query_import_device() argument 141 strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1); in query_import_device() 167 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { in query_import_device() 168 err("recv different busid %s", reply.udev.busid); in query_import_device() 176 static int attach_device(char *host, char *busid) in attach_device() argument 188 rhport = query_import_device(sockfd, busid); in attach_device() 196 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device() 214 char *busid = NULL; in usbip_attach() local [all …]
|
D | utils.c | 27 int modify_match_busid(char *busid, int add) in modify_match_busid() argument 42 busid); in modify_match_busid() 45 busid); in modify_match_busid()
|
D | usbip_list.c | 110 printf("%11s: %s\n", udev.busid, product_name); in get_exported_devices() 161 static void print_device(const char *busid, const char *vendor, in print_device() argument 165 printf("busid=%s#usbid=%.4s:%.4s#", busid, vendor, product); in print_device() 167 printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product); in print_device() 187 const char *busid; in list_devices() local 228 busid = udev_device_get_sysname(dev); in list_devices() 241 print_device(busid, idVendor, idProduct, parsable); in list_devices() 276 const char *busid; in list_gadget_devices() local 311 busid = udev_device_get_sysname(dev); in list_gadget_devices() 319 print_device(busid, idVendor_buf, idProduct_buf, parsable); in list_gadget_devices()
|
D | utils.h | 22 int modify_match_busid(char *busid, int add);
|
D | usbipd.c | 124 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import() 125 info("found requested device: %s", req.busid); in recv_request_import() 140 info("requested device not found: %s", req.busid); in recv_request_import() 152 dbg("import request busid %s: failed", req.busid); in recv_request_import() 165 dbg("import request busid %s: complete", req.busid); in recv_request_import()
|
D | usbip_network.h | 55 char busid[SYSFS_BUS_ID_SIZE]; member 70 char busid[SYSFS_BUS_ID_SIZE]; member
|
/tools/usb/usbip/ |
D | README | 50 server:# usbip bind --busid 1-2 51 - Bind usbip-host.ko to the device with busid 1-2. 53 - Use `usbip unbind --busid 1-2' to stop exporting the device. 61 client:# usbip attach --remote <host> --busid 1-2 87 - busid 1-1 (05a9:a511) 90 - busid 3-2 (0711:0902) 93 - busid 3-3.1 (08bb:2702) 97 - busid 3-3.2 (04bb:0206) 100 - busid 3-3 (0409:0058) 103 - busid 4-1 (046d:08b2) [all …]
|
/tools/usb/usbip/libsrc/ |
D | usbip_common.c | 91 dbg("%-20s = %s", "busid", udev->busid); in dump_usb_device() 206 strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE); in read_usb_device() 217 char busid[SYSFS_BUS_ID_SIZE]; in read_usb_interface() local 221 size = snprintf(busid, sizeof(busid), "%s:%d.%d", in read_usb_interface() 222 udev->busid, udev->bConfigurationValue, i); in read_usb_interface() 223 if (size < 0 || (unsigned int)size >= sizeof(busid)) { in read_usb_interface() 225 (long unsigned)sizeof(busid)); in read_usb_interface() 229 sif = udev_device_new_from_subsystem_sysname(udev_context, "usb", busid); in read_usb_interface() 231 err("udev_device_new_from_subsystem_sysname %s failed", busid); in read_usb_interface()
|
D | vhci_driver.c | 19 imported_device_init(struct usbip_imported_device *idev, char *busid) in imported_device_init() argument 24 "usb", busid); in imported_device_init() 26 dbg("udev_device_new_from_subsystem_sysname failed: %s", busid); in imported_device_init() 165 char *port, unsigned long port_len, char *busid) in read_record() argument 207 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record() 399 printf("%10s -> usbip://%s:%s/%s\n", idev->udev.busid, in usbip_vhci_imported_device_dump() 405 idev->udev.busid); in usbip_vhci_imported_device_dump()
|
D | usbip_host_common.c | 233 dbg("device not available: %s", edev->udev.busid); in usbip_export_device() 271 info("connect: %s", edev->udev.busid); in usbip_export_device()
|
D | usbip_common.h | 102 char busid[SYSFS_BUS_ID_SIZE]; member
|
D | usbip_device_driver.c | 125 strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE); in read_usb_vudc_device()
|