Home
last modified time | relevance | path

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

12

/linux-6.3-rc2/tools/usb/usbip/src/
A 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
113 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); in unbind_other()
130 static int bind_device(char *busid) in bind_device() argument
154 rc = unbind_other(busid); in bind_device()
164 rc = modify_match_busid(busid, 1); in bind_device()
166 err("unable to bind device on %s", busid); in bind_device()
170 rc = bind_usbip(busid); in bind_device()
[all …]
A Dusbip_attach.c68 host, port, busid); in record_connection()
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()
210 char *busid = NULL; in usbip_attach() local
226 busid = optarg; in usbip_attach()
233 if (!host || !busid) in usbip_attach()
[all …]
A 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()
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
302 busid = udev_device_get_sysname(dev); in list_gadget_devices()
310 print_device(busid, idVendor_buf, idProduct_buf, parsable); in list_gadget_devices()
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()
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()
A Dusbip_network.h48 char busid[SYSFS_BUS_ID_SIZE]; member
63 char busid[SYSFS_BUS_ID_SIZE]; member
A Dutils.h10 int modify_match_busid(char *busid, int add);
/linux-6.3-rc2/tools/testing/selftests/drivers/usb/usbip/
A Dusbip_test.sh15 busid=${OPTARG}
27 if [ -z "${busid}" ]; then
31 echo "Running 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;
141 src/usbip attach -r localhost -b $busid;
[all …]
/linux-6.3-rc2/drivers/usb/usbip/
A Dstub_main.c71 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()
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
178 if (sizeof(busid) <= len) in match_busid_store()
182 if (add_match_busid(busid) < 0) in match_busid_store()
185 pr_debug("add busid %s\n", busid); in match_busid_store()
190 if (del_match_busid(busid) < 0) in match_busid_store()
[all …]
A Dstub.h90 struct bus_id_priv *get_busid_priv(const char *busid);
92 int del_match_busid(char *busid);
/linux-6.3-rc2/tools/usb/usbip/libsrc/
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()
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()
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()
461 idev->udev.busid); in usbip_vhci_imported_device_dump()
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()
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()
A Dusbip_common.h113 char busid[SYSFS_BUS_ID_SIZE]; member
/linux-6.3-rc2/tools/usb/usbip/
A DREADME77 server:# usbip bind --busid 1-2
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)
156 - busid 4-1 (046d:08b2)
161 - busid 5-2 (058f:9254)
171 trois:# usbip --debug bind --busid 3-3.2
175 bind device on busid 3-3.2: complete
[all …]
/linux-6.3-rc2/include/linux/amba/
A Dbus.h147 #define __AMBA_DEV(busid, data, mask) \ argument
150 .init_name = busid, \
160 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ argument
162 .dev = __AMBA_DEV(busid, data, 0), \
171 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ argument
173 .dev = __AMBA_DEV(busid, data, ~0ULL), \
/linux-6.3-rc2/include/trace/events/
A 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-6.3-rc2/arch/x86/kernel/
A 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-6.3-rc2/drivers/s390/scsi/
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-6.3-rc2/drivers/s390/block/
A Ddasd_devmap.c802 copy->entry[i].busid, DASD_BUS_ID_SIZE) == 0) { in dasd_devmap_set_device_copy_relation()
1952 strscpy(prim_busid, copy->entry[i].busid, in dasd_copy_pair_show()
1964 copy->entry[i].busid); in dasd_copy_pair_show()
1974 char *busid, bool primary) in dasd_devmap_set_copy_relation() argument
1982 strncmp(copy->entry[i].busid, busid, DASD_BUS_ID_SIZE) == 0) in dasd_devmap_set_copy_relation()
1992 strscpy(copy->entry[i].busid, busid, DASD_BUS_ID_SIZE); in dasd_devmap_set_copy_relation()
2004 char *busid) in dasd_devmap_del_copy_relation() argument
2012 strncmp(copy->entry[i].busid, busid, DASD_BUS_ID_SIZE) == 0) in dasd_devmap_del_copy_relation()
2021 memset(copy->entry[i].busid, 0, DASD_BUS_ID_SIZE); in dasd_devmap_del_copy_relation()
2057 if (strlen(copy->entry[i].busid) == 0) in dasd_devmap_clear_copy_relation()
[all …]
/linux-6.3-rc2/Documentation/usb/
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-6.3-rc2/arch/mips/include/asm/txx9/
A Dgeneric.h48 void txx9_spi_init(int busid, unsigned long base, int irq);
/linux-6.3-rc2/arch/x86/include/asm/
A Dmpspec_def.h80 unsigned char busid; member

Completed in 30 milliseconds

12