Home
last modified time | relevance | path

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

12

/linux-5.19.10/tools/usb/usbip/src/
Dusbip_bind.c38 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 …]
Dusbip_attach.c39 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 …]
Dusbip_unbind.c30 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()
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
302 busid = udev_device_get_sysname(dev); in list_gadget_devices()
310 print_device(busid, idVendor_buf, idProduct_buf, parsable); in list_gadget_devices()
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()
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()
Dusbip_network.h48 char busid[SYSFS_BUS_ID_SIZE]; member
63 char busid[SYSFS_BUS_ID_SIZE]; member
Dutils.h10 int modify_match_busid(char *busid, int add);
/linux-5.19.10/tools/testing/selftests/drivers/usb/usbip/
Dusbip_test.sh15 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 …]
/linux-5.19.10/drivers/usb/usbip/
Dstub_main.c46 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 strlcpy(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()
171 char busid[BUSID_SIZE]; in match_busid_store() local
[all …]
Dstub.h90 struct bus_id_priv *get_busid_priv(const char *busid);
92 int del_match_busid(char *busid);
/linux-5.19.10/tools/usb/usbip/libsrc/
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()
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()
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()
461 idev->udev.busid); in usbip_vhci_imported_device_dump()
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()
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()
Dusbip_common.h113 char busid[SYSFS_BUS_ID_SIZE]; member
/linux-5.19.10/tools/usb/usbip/
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 3-3 (0409:0058)
[all …]
/linux-5.19.10/include/linux/amba/
Dbus.h146 #define __AMBA_DEV(busid, data, mask) \ argument
149 .init_name = busid, \
159 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ argument
161 .dev = __AMBA_DEV(busid, data, 0), \
170 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ argument
172 .dev = __AMBA_DEV(busid, data, ~0ULL), \
/linux-5.19.10/include/trace/events/
Dmdio.h20 __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-5.19.10/arch/x86/kernel/
Dmpparse.c75 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str); in mpc_oem_bus_info()
85 if (m->busid >= MAX_MP_BUSSES) { in MP_bus_info()
87 m->busid, str, MAX_MP_BUSSES - 1); in MP_bus_info()
92 set_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
95 mp_bus_id_to_type[m->busid] = MP_BUS_ISA; in MP_bus_info()
98 clear_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
100 mp_bus_id_to_type[m->busid] = MP_BUS_PCI; in MP_bus_info()
102 mp_bus_id_to_type[m->busid] = MP_BUS_EISA; in MP_bus_info()
336 bus.busid = 0; in construct_ioapic_table()
354 bus.busid = 1; in construct_ioapic_table()
[all …]
/linux-5.19.10/drivers/s390/scsi/
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 strlcpy(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-5.19.10/Documentation/usb/
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-5.19.10/arch/mips/include/asm/txx9/
Dgeneric.h48 void txx9_spi_init(int busid, unsigned long base, int irq);
/linux-5.19.10/arch/x86/include/asm/
Dmpspec_def.h80 unsigned char busid; member
/linux-5.19.10/drivers/s390/block/
Ddasd_eer.c283 char busid[DASD_EER_BUSID_SIZE]; member
316 strlcpy(header.busid, dev_name(&device->cdev->dev), in dasd_eer_write_standard_trigger()
359 strlcpy(header.busid, dev_name(&device->cdev->dev), in dasd_eer_write_snss_trigger()

12