/linux-master/tools/usb/usbip/src/ |
H A D | utils.h | 10 int modify_match_busid(char *busid, int add);
|
H A D | usbip_bind.c | 29 " -b, --busid=<busid> Bind " USBIP_HOST_DRV_NAME ".ko to device " 30 "on <busid>\n"; 38 static int bind_usbip(char *busid) argument 48 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); 50 err("error binding device %s to driver: %s", busid, 59 static int unbind_other(char *busid) argument 76 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); 78 dbg("unable to find device with bus ID %s", busid); 130 bind_device(char *busid) argument [all...] |
H A D | usbip_unbind.c | 22 " -b, --busid=<busid> Unbind " USBIP_HOST_DRV_NAME ".ko from " 23 "device on <busid>\n"; 30 static int unbind_device(char *busid) argument 48 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); 66 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); 68 err("error unbinding device %s from driver", busid); 73 rc = modify_match_busid(busid, 0); 75 err("unable to unbind device on %s", busid); [all...] |
H A D | utils.c | 15 int modify_match_busid(char *busid, int add) argument 30 busid); 33 busid);
|
H A D | usbip_attach.c | 30 " -b, --busid=<busid> Busid of the device on <host>\n" 39 static int record_connection(char *host, char *port, char *busid, int rhport) argument 68 host, port, busid); 120 static int query_import_device(int sockfd, char *busid) argument 138 strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1); 152 busid, usbip_op_common_status_string(status)); 165 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZ 174 attach_device(char *host, char *busid) argument 210 char *busid = NULL; local [all...] |
H A D | usbip_list.c | 101 printf("%11s: %s\n", udev.busid, product_name); 152 static void print_device(const char *busid, const char *vendor, argument 156 printf("busid=%s#usbid=%.4s:%.4s#", busid, vendor, product); 158 printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product); 178 const char *busid; local 219 busid = udev_device_get_sysname(dev); 232 print_device(busid, idVendor, idProduct, parsable); 267 const char *busid; local [all...] |
H A D | usbipd.c | 112 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { 113 info("found requested device: %s", req.busid); 128 info("requested device not found: %s", req.busid); 139 dbg("import request busid %s: failed", req.busid); 152 dbg("import request busid %s: complete", req.busid);
|
H A D | usbip_network.h | 48 char busid[SYSFS_BUS_ID_SIZE]; member in struct:op_devinfo_request 63 char busid[SYSFS_BUS_ID_SIZE]; member in struct:op_import_request
|
/linux-master/tools/testing/selftests/drivers/usb/usbip/ |
H A D | usbip_test.sh | 7 usage() { echo "usbip_test.sh -b <busid> -p <usbip tools path>"; exit 1; } 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; [all...] |
/linux-master/include/trace/events/ |
H A D | mdio.h | 20 __array(char, busid, MII_BUS_ID_SIZE) 28 strncpy(__entry->busid, bus->id, MII_BUS_ID_SIZE); 36 __entry->busid, __entry->read ? "read" : "write",
|
/linux-master/drivers/usb/usbip/ |
H A D | stub_main.c | 43 * Find the index of the busid by name. 46 static int get_busid_idx(const char *busid) argument 54 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { 65 struct bus_id_priv *get_busid_priv(const char *busid) argument 71 idx = get_busid_idx(busid); 88 static int add_match_busid(char *busid) argument 95 if (get_busid_idx(busid) >= 0) { 103 strscpy(busid_table[i].name, busid, BUSID_SIZE); 120 int del_match_busid(char *busid) argument 126 idx = get_busid_idx(busid); 170 char busid[BUSID_SIZE]; local 199 do_rebind(char *busid, struct bus_id_priv *busid_priv) argument [all...] |
H A D | stub.h | 90 struct bus_id_priv *get_busid_priv(const char *busid); 92 int del_match_busid(char *busid);
|
/linux-master/tools/usb/usbip/libsrc/ |
H A D | usbip_common.c | 115 dbg("%-20s = %s", "busid", udev->busid); 231 strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE - 1); 232 udev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0'; 243 char busid[SYSFS_BUS_ID_SIZE]; local 247 size = snprintf(busid, sizeof(busid), "%s:%d.%d", 248 udev->busid, udev->bConfigurationValue, i); 249 if (size < 0 || (unsigned int)size >= sizeof(busid)) { 250 err("busid lengt [all...] |
H A D | vhci_driver.c | 21 imported_device_init(struct usbip_imported_device *idev, char *busid) argument 26 "usb", busid); 28 dbg("udev_device_new_from_subsystem_sysname failed: %s", busid); 188 char *port, unsigned long port_len, char *busid) 230 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { 455 printf("%10s -> usbip://%s:%s/%s\n", idev->udev.busid, 460 printf("%10s -> unknown host, remote port and remote busid\n", 461 idev->udev.busid); 187 read_record(int rhport, char *host, unsigned long host_len, char *port, unsigned long port_len, char *busid) argument
|
H A D | usbip_device_driver.c | 116 strncpy(dev->busid, name, SYSFS_BUS_ID_SIZE - 1); 117 dev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0';
|
H A D | usbip_common.h | 113 char busid[SYSFS_BUS_ID_SIZE]; member in struct:usbip_usb_device
|
H A D | usbip_host_common.c | 221 dbg("device not available: %s", edev->udev.busid); 262 info("connect: %s", edev->udev.busid);
|
/linux-master/include/linux/amba/ |
H A D | bus.h | 147 #define __AMBA_DEV(busid, data, mask) \ 150 .init_name = busid, \ 160 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ 162 .dev = __AMBA_DEV(busid, data, 0), \ 171 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ 173 .dev = __AMBA_DEV(busid, data, ~0ULL), \
|
/linux-master/arch/x86/kernel/ |
H A D | mpparse.c | 71 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str); 81 if (m->busid >= MAX_MP_BUSSES) { 82 pr_warn("MP table busid value (%d) for bustype %s is too large, max. supported is %d\n", 83 m->busid, str, MAX_MP_BUSSES - 1); 88 set_bit(m->busid, mp_bus_not_pci); 91 mp_bus_id_to_type[m->busid] = MP_BUS_ISA; 94 clear_bit(m->busid, mp_bus_not_pci); 96 mp_bus_id_to_type[m->busid] = MP_BUS_PCI; 98 mp_bus_id_to_type[m->busid] = MP_BUS_EISA; 332 bus.busid [all...] |
/linux-master/arch/mips/include/asm/txx9/ |
H A D | generic.h | 48 void txx9_spi_init(int busid, unsigned long base, int irq);
|
/linux-master/arch/x86/include/asm/ |
H A D | mpspec_def.h | 80 unsigned char busid; member in struct:mpc_bus
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_aux.c | 58 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) argument 64 cdev = get_ccwdev_by_busid(&zfcp_ccw_driver, busid); 94 char busid[ZFCP_BUS_ID_SIZE]; local 106 strscpy(busid, token, ZFCP_BUS_ID_SIZE); 117 zfcp_init_device_configure(busid, wwpn, lun);
|
/linux-master/drivers/s390/block/ |
H A D | dasd_devmap.c | 55 * <busid> : [0-0a-f]\.[0-9a-f]\.(0x)?[0-9a-fA-F]+ 59 * <busid-range> : <busid>(-<busid>)?<feature_list>? 60 * <devices> : <devno-range>|<busid-range> 128 * Read a device busid/devno from a string. 135 /* Interpret ipldev busid */ 157 /* New style x.y.z busid */ 401 * Add a devmap for the device specified by busid. It is possible that 470 * Check if busid ha 2081 dasd_devmap_set_copy_relation(struct dasd_devmap *devmap, struct dasd_copy_relation *copy, char *busid, bool primary) argument 2112 dasd_devmap_del_copy_relation(struct dasd_copy_relation *copy, char *busid) argument [all...] |
H A D | dasd_eer.c | 276 char busid[DASD_EER_BUSID_SIZE]; member in struct:dasd_eer_header 309 strscpy(header.busid, dev_name(&device->cdev->dev), 352 strscpy(header.busid, dev_name(&device->cdev->dev),
|
/linux-master/arch/mips/txx9/generic/ |
H A D | setup_tx4938.c | 304 void __init tx4938_spi_init(int busid) argument 306 txx9_spi_init(busid, TX4938_SPI_REG & 0xfffffffffULL,
|