/tools/usb/usbip/src/ |
D | usbip_bind.c | 38 static int bind_usbip(char *busid) in bind_usbip() argument 48 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); in bind_usbip() 50 err("error binding device %s to driver: %s", busid, in bind_usbip() 59 static int unbind_other(char *busid) in unbind_other() argument 76 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_other() 78 dbg("unable to find device with bus ID %s", busid); in unbind_other() 113 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_other() 115 err("error unbinding device %s from driver", busid); in unbind_other() 130 static int bind_device(char *busid) in bind_device() argument 139 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in bind_device() [all …]
|
D | usbip_unbind.c | 30 static int unbind_device(char *busid) in unbind_device() argument 48 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_device() 66 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_device() 68 err("error unbinding device %s from driver", busid); in unbind_device() 73 rc = modify_match_busid(busid, 0); in unbind_device() 75 err("unable to unbind device on %s", busid); in unbind_device() 84 rc = write_sysfs_attribute(rebind_attr_path, busid, strlen(busid)); in unbind_device() 91 info("unbind device on busid %s: complete", busid); in unbind_device()
|
D | usbip_attach.c | 39 static int record_connection(char *host, char *port, char *busid, int rhport) in record_connection() argument 68 host, port, busid); in record_connection() 120 static int query_import_device(int sockfd, char *busid) in query_import_device() argument 138 strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1); in query_import_device() 152 busid, usbip_op_common_status_string(status)); in query_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() 174 static int attach_device(char *host, char *busid) in attach_device() argument 186 rhport = query_import_device(sockfd, busid); in attach_device() 192 rc = record_connection(host, usbip_port_string, busid, rhport); in attach_device() [all …]
|
D | utils.c | 15 int modify_match_busid(char *busid, int add) in modify_match_busid() argument 30 busid); in modify_match_busid() 33 busid); in modify_match_busid()
|
D | usbip_list.c | 100 printf("%11s: %s\n", udev.busid, product_name); in get_exported_devices() 151 static void print_device(const char *busid, const char *vendor, in print_device() argument 155 printf("busid=%s#usbid=%.4s:%.4s#", busid, vendor, product); in print_device() 157 printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product); in print_device() 177 const char *busid; in list_devices() local 218 busid = udev_device_get_sysname(dev); in list_devices() 231 print_device(busid, idVendor, idProduct, parsable); in list_devices() 266 const char *busid; in list_gadget_devices() local 301 busid = udev_device_get_sysname(dev); in list_gadget_devices() 309 print_device(busid, idVendor_buf, idProduct_buf, parsable); in list_gadget_devices()
|
D | utils.h | 10 int modify_match_busid(char *busid, int add);
|
D | usbipd.c | 112 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { in recv_request_import() 113 info("found requested device: %s", req.busid); in recv_request_import() 128 info("requested device not found: %s", req.busid); in recv_request_import() 139 dbg("import request busid %s: failed", req.busid); in recv_request_import() 152 dbg("import request busid %s: complete", req.busid); in recv_request_import()
|
D | usbip_network.h | 48 char busid[SYSFS_BUS_ID_SIZE]; member 63 char busid[SYSFS_BUS_ID_SIZE]; member
|
/tools/testing/selftests/drivers/usb/usbip/ |
D | usbip_test.sh | 15 busid=${OPTARG} 27 if [ -z "${busid}" ]; then 31 echo "Running USB over IP Testing on $busid"; 33 test_end_msg="End of USB over IP Testing on $busid" 89 src/usbip bind -b $busid; 97 src/usbip bind -b $busid; 105 src/usbip unbind -b $busid; 113 src/usbip unbind -b $busid; 125 src/usbip attach -r localhost -b $busid; 129 src/usbip bind -b $busid; [all …]
|
/tools/usb/usbip/libsrc/ |
D | usbip_common.c | 115 dbg("%-20s = %s", "busid", udev->busid); in dump_usb_device() 231 strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE - 1); in read_usb_device() 232 udev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0'; in read_usb_device() 243 char busid[SYSFS_BUS_ID_SIZE]; in read_usb_interface() local 247 size = snprintf(busid, sizeof(busid), "%s:%d.%d", in read_usb_interface() 248 udev->busid, udev->bConfigurationValue, i); in read_usb_interface() 249 if (size < 0 || (unsigned int)size >= sizeof(busid)) { in read_usb_interface() 251 (long unsigned)sizeof(busid)); in read_usb_interface() 255 sif = udev_device_new_from_subsystem_sysname(udev_context, "usb", busid); in read_usb_interface() 257 err("udev_device_new_from_subsystem_sysname %s failed", busid); in read_usb_interface()
|
D | vhci_driver.c | 21 imported_device_init(struct usbip_imported_device *idev, char *busid) in imported_device_init() argument 26 "usb", busid); in imported_device_init() 28 dbg("udev_device_new_from_subsystem_sysname failed: %s", busid); in imported_device_init() 188 char *port, unsigned long port_len, char *busid) in read_record() argument 230 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { in read_record() 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_device_driver.c | 116 strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE - 1); in read_usb_vudc_device() 117 dev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0'; in read_usb_vudc_device()
|
D | usbip_host_common.c | 221 dbg("device not available: %s", edev->udev.busid); in usbip_export_device() 262 info("connect: %s", edev->udev.busid); in usbip_export_device()
|
D | usbip_common.h | 113 char busid[SYSFS_BUS_ID_SIZE]; member
|
/tools/usb/usbip/ |
D | README | 77 server:# usbip bind --busid 1-2 78 - Bind usbip-host.ko to the device with busid 1-2. 80 - Use `usbip unbind --busid 1-2' to stop exporting the device. 112 client:# usbip attach --remote <host> --busid 1-2 114 - When using vudc on a server side busid is really vudc instance name. 140 - busid 1-1 (05a9:a511) 143 - busid 3-2 (0711:0902) 146 - busid 3-3.1 (08bb:2702) 150 - busid 3-3.2 (04bb:0206) 153 - busid 3-3 (0409:0058) [all …]
|