Home
last modified time | relevance | path

Searched refs:busid (Results 1 – 25 of 31) sorted by relevance

12

/linux/tools/usb/usbip/src/
H A Dusbip_bind.c29 " -b, --busid=<busid> Bind " USBIP_HOST_DRV_NAME ".ko to device "
30 "on <busid>\n";
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()
130 bind_device(char * busid) bind_device() argument
[all...]
H A Dusbip_attach.c30 " -b, --busid=<busid> Busid of the device on <host>\n"
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_SIZ in query_import_device()
174 attach_device(char * host,char * busid) attach_device() argument
210 char *busid = NULL; usbip_attach() local
[all...]
H A Dusbip_unbind.c22 " -b, --busid=<busid> Unbind " USBIP_HOST_DRV_NAME ".ko from "
23 "device on <busid>\n";
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()
[all...]
H A Dusbip_list.c101 printf("%11s: %s\n", udev.busid, product_name); in get_exported_devices()
152 static void print_device(const char *busid, const char *vendor, in print_device() argument
156 printf("busid=%s#usbid=%.4s:%.4s#", busid, vendor, product); in print_device()
158 printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product); in print_device()
178 const char *busid; in list_devices() local
219 busid = udev_device_get_sysname(dev); in list_devices()
232 print_device(busid, idVendor, idProduct, parsable); in list_devices()
267 const char *busid; in list_gadget_devices() local
[all...]
H A Dutils.c15 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()
H A Dusbipd.c112 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()
H A Dusbip_network.h48 char busid[SYSFS_BUS_ID_SIZE]; member
63 char busid[SYSFS_BUS_ID_SIZE]; member
H A Dutils.h10 int modify_match_busid(char *busid, int add);
/linux/tools/testing/selftests/drivers/usb/usbip/
H A Dusbip_test.sh7 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/drivers/usb/usbip/
H A Dstub_main.c43 * Find the index of the busid by name.
46 static int get_busid_idx(const char *busid) in get_busid_idx() argument
54 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { in get_busid_idx()
65 struct bus_id_priv *get_busid_priv(const char *busid) in get_busid_priv() argument
71 idx = get_busid_idx(busid); in get_busid_priv()
88 static int add_match_busid(char *busid) in add_match_busid() argument
95 if (get_busid_idx(busid) >= 0) { in add_match_busid()
103 strscpy(busid_table[i].name, busid, BUSID_SIZE); in add_match_busid()
120 int del_match_busid(char *busid) in del_match_busid() argument
126 idx = get_busid_idx(busid); in del_match_busid()
170 char busid[BUSID_SIZE]; match_busid_store() local
199 do_rebind(char * busid,struct bus_id_priv * busid_priv) do_rebind() argument
[all...]
H A Dstub.h90 struct bus_id_priv *get_busid_priv(const char *busid);
92 int del_match_busid(char *busid);
/linux/tools/usb/usbip/libsrc/
H A Dusbip_common.c115 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()
250 err("busid lengt in read_usb_interface()
[all...]
H A Dvhci_driver.c21 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()
460 printf("%10s -> unknown host, remote port and remote busid\n", in usbip_vhci_imported_device_dump()
461 idev->udev.busid); in usbip_vhci_imported_device_dump()
H A Dusbip_device_driver.c116 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()
H A Dusbip_host_common.c221 dbg("device not available: %s", edev->udev.busid); in usbip_export_device()
262 info("connect: %s", edev->udev.busid); in usbip_export_device()
H A Dusbip_common.h113 char busid[SYSFS_BUS_ID_SIZE]; member
/linux/tools/usb/usbip/
H A DREADME77 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
[all...]
/linux/include/linux/amba/
H A Dbus.h159 #define __AMBA_DEV(busid, data, mask) \ argument
162 .init_name = busid, \
172 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ argument
174 .dev = __AMBA_DEV(busid, data, 0), \
183 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ argument
185 .dev = __AMBA_DEV(busid, data, ~0ULL), \
/linux/include/trace/events/
H A Dmdio.h20 __array(char, busid, MII_BUS_ID_SIZE)
28 strscpy(__entry->busid, bus->id, MII_BUS_ID_SIZE);
36 __entry->busid, __entry->read ? "read" : "write",
/linux/arch/x86/kernel/
H A Dmpparse.c71 apic_pr_verbose("Bus #%d is %s\n", m->busid, str); in mpc_oem_bus_info()
81 if (m->busid >= MAX_MP_BUSSES) { in MP_bus_info()
82 pr_warn("MP table busid value (%d) for bustype %s is too large, max. supported is %d\n", in MP_bus_info()
83 m->busid, str, MAX_MP_BUSSES - 1); in MP_bus_info()
88 set_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
91 mp_bus_id_to_type[m->busid] = MP_BUS_ISA; in MP_bus_info()
94 clear_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
96 mp_bus_id_to_type[m->busid] = MP_BUS_PCI; in MP_bus_info()
98 mp_bus_id_to_type[m->busid] = MP_BUS_EISA; in MP_bus_info()
332 bus.busid in construct_ioapic_table()
[all...]
/linux/drivers/s390/scsi/
H A Dzfcp_aux.c58 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) in zfcp_init_device_configure() argument
64 cdev = get_ccwdev_by_busid(&zfcp_ccw_driver, busid); in zfcp_init_device_configure()
94 char busid[ZFCP_BUS_ID_SIZE]; in zfcp_init_device_setup() local
106 strscpy(busid, token, ZFCP_BUS_ID_SIZE); in zfcp_init_device_setup()
117 zfcp_init_device_configure(busid, wwpn, lun); in zfcp_init_device_setup()
/linux/drivers/s390/block/
H A Ddasd_devmap.c57 * <busid> : [0-0a-f]\.[0-9a-f]\.(0x)?[0-9a-fA-F]+
61 * <busid-range> : <busid>(-<busid>)?<feature_list>?
62 * <devices> : <devno-range>|<busid-range>
130 * Read a device busid/devno from a string.
137 /* Interpret ipldev busid */ in dasd_busid()
159 /* New style x.y.z busid */ in dasd_busid()
403 * Add a devmap for the device specified by busid. It is possible that
472 * Check if busid ha
2085 dasd_devmap_set_copy_relation(struct dasd_devmap * devmap,struct dasd_copy_relation * copy,char * busid,bool primary) dasd_devmap_set_copy_relation() argument
2115 dasd_devmap_del_copy_relation(struct dasd_copy_relation * copy,char * busid) dasd_devmap_del_copy_relation() argument
[all...]
/linux/Documentation/usb/
H A Dusbip_protocol.rst183 | 0x10C | 32 | | busid: Bus ID of the exported device, string |
240 | 8 | 32 | | busid: the busid of the exported device on the |
242 | | | | from the message field OP_REP_DEVLIST.busid. |
272 | 0x108 | 32 | | busid: Bus ID of the exported device, string |
/linux/arch/mips/include/asm/txx9/
H A Dgeneric.h48 void txx9_spi_init(int busid, unsigned long base, int irq);
/linux/arch/x86/include/asm/
H A Dmpspec_def.h80 unsigned char busid; member

12