Home
last modified time | relevance | path

Searched refs:busid (Results 1 - 25 of 59) sorted by relevance

123

/kernel/linux/linux-5.10/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.c100 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
[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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/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...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/drivers/usb/usbip/
H A Dstub_main.c45 * Find the index of the busid by name.
48 static int get_busid_idx(const char *busid) in get_busid_idx() argument
56 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { in get_busid_idx()
67 struct bus_id_priv *get_busid_priv(const char *busid) in get_busid_priv() argument
73 idx = get_busid_idx(busid); in get_busid_priv()
90 static int add_match_busid(char *busid) in add_match_busid() argument
97 if (get_busid_idx(busid) >= 0) { in add_match_busid()
105 strlcpy(busid_table[i].name, busid, BUSID_SIZE); in add_match_busid()
122 int del_match_busid(char *busid) in del_match_busid() argument
128 idx = get_busid_idx(busid); in del_match_busid()
173 char busid[BUSID_SIZE]; match_busid_store() local
203 do_rebind(char *busid, struct bus_id_priv *busid_priv) do_rebind() argument
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-5.10/arch/mips/txx9/generic/
H A Dspi_eeprom.c23 int __init spi_eeprom_register(int busid, int chipid, int size) in spi_eeprom_register() argument
28 .bus_num = busid, in spi_eeprom_register()
47 int busid; member
64 if (read_param->busid != spi->master->bus_num || in early_seeprom_probe()
87 int __init spi_eeprom_read(int busid, int chipid, int address, in spi_eeprom_read() argument
92 .busid = busid, in spi_eeprom_read()
/kernel/linux/linux-5.10/arch/mips/include/asm/txx9/
H A Dspi.h19 int spi_eeprom_register(int busid, int chipid, int size);
20 int spi_eeprom_read(int busid, int chipid,
23 static inline int spi_eeprom_register(int busid, int chipid, int size) in spi_eeprom_register() argument
27 static inline int spi_eeprom_read(int busid, int chipid, in spi_eeprom_read() argument
/kernel/linux/linux-5.10/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()
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()
187 read_record(int rhport, char *host, unsigned long host_len, char *port, unsigned long port_len, char *busid) read_record() argument
/kernel/linux/linux-6.6/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()
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()
187 read_record(int rhport, char *host, unsigned long host_len, char *port, unsigned long port_len, char *busid) read_record() argument
/kernel/linux/linux-6.6/include/linux/amba/
H A Dbus.h147 #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), \
/kernel/linux/linux-5.10/include/linux/amba/
H A Dbus.h168 #define __AMBA_DEV(busid, data, mask) \
171 .init_name = busid, \
181 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \
183 .dev = __AMBA_DEV(busid, data, 0), \
192 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \
194 .dev = __AMBA_DEV(busid, data, ~0ULL), \
/kernel/linux/linux-5.10/include/trace/events/
H 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",
/kernel/linux/linux-6.6/include/trace/events/
H 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",
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dmpparse.c74 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str); in mpc_oem_bus_info()
84 if (m->busid >= MAX_MP_BUSSES) { in MP_bus_info()
85 pr_warn("MP table busid value (%d) for bustype %s is too large, max. supported is %d\n", in MP_bus_info()
86 m->busid, str, MAX_MP_BUSSES - 1); in MP_bus_info()
91 set_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
94 mp_bus_id_to_type[m->busid] = MP_BUS_ISA; in MP_bus_info()
97 clear_bit(m->busid, mp_bus_not_pci); in MP_bus_info()
99 mp_bus_id_to_type[m->busid] = MP_BUS_PCI; in MP_bus_info()
101 mp_bus_id_to_type[m->busid] = MP_BUS_EISA; in MP_bus_info()
335 bus.busid in construct_ioapic_table()
[all...]

Completed in 11 milliseconds

123