| /OK3568_Linux_fs/kernel/tools/usb/usbip/src/ |
| H A D | usbip_bind.c | 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() 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 …]
|
| H A D | usbip_attach.c | 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_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 …]
|
| H A D | usbip_unbind.c | 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() 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()
|
| H A D | usbip_list.c | 100 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 301 busid = udev_device_get_sysname(dev); in list_gadget_devices() 309 print_device(busid, idVendor_buf, idProduct_buf, parsable); in list_gadget_devices()
|
| H A D | utils.c | 15 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 D | usbipd.c | 112 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/drivers/usb/usbip/ |
| H A D | usbip_test.sh | 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; 129 src/usbip bind -b $busid; [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/usbip/ |
| H A D | stub_main.c | 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]; in match_busid_store() local [all …]
|
| H A D | stub.h | 90 struct bus_id_priv *get_busid_priv(const char *busid); 92 int del_match_busid(char *busid);
|
| /OK3568_Linux_fs/kernel/arch/mips/txx9/generic/ |
| H A D | spi_eeprom.c | 23 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()
|
| /OK3568_Linux_fs/kernel/tools/usb/usbip/libsrc/ |
| H A D | usbip_common.c | 115 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()
|
| H A D | vhci_driver.c | 21 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()
|
| /OK3568_Linux_fs/kernel/tools/usb/usbip/ |
| H A D | README | 77 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 …]
|
| /OK3568_Linux_fs/kernel/arch/mips/include/asm/txx9/ |
| H A D | spi.h | 19 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
|
| /OK3568_Linux_fs/kernel/include/linux/amba/ |
| H A D | bus.h | 173 #define __AMBA_DEV(busid, data, mask) \ argument 176 .init_name = busid, \ 186 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ argument 188 .dev = __AMBA_DEV(busid, data, 0), \ 197 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ argument 199 .dev = __AMBA_DEV(busid, data, ~0ULL), \
|
| /OK3568_Linux_fs/external/xserver/debian/patches/ |
| H A D | 07_use-modesetting-driver-by-default-on-GeForce.diff | 28 + char busid[32]; 31 + snprintf(busid, sizeof(busid), "pci:%04x:%02x:%02x.%d", 35 + fd = drmOpenWithType("nouveau", busid, DRM_NODE_RENDER);
|
| /OK3568_Linux_fs/kernel/arch/x86/kernel/ |
| H A D | mpparse.c | 74 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() 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 = 0; in construct_ioapic_table() 353 bus.busid = 1; in construct_ioapic_table() [all …]
|
| /OK3568_Linux_fs/kernel/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",
|
| /OK3568_Linux_fs/buildroot/package/libdrm/ |
| H A D | 0004-HACK-Open-rockchip-drm-device-by-default.patch | 17 drm_public int drmOpen(const char *name, const char *busid) 19 + if (!name && !busid) 22 return drmOpenWithType(name, busid, DRM_NODE_PRIMARY);
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/linux/ |
| H A D | lnx_platform.c | 73 xf86_platform_odev_attributes(delayed_index)->busid = XNFstrdup(buf); in get_drm_info() 92 xf86PlatformDeviceCheckBusID(struct xf86_platform_device *device, const char *busid) in xf86PlatformDeviceCheckBusID() argument 101 bustype = StringToBusType(busid, &id); in xf86PlatformDeviceCheckBusID() 104 if (xf86ComparePciBusString(busid, in xf86PlatformDeviceCheckBusID()
|
| /OK3568_Linux_fs/u-boot/arch/x86/lib/ |
| H A D | mpspec.c | 171 int busid, int addr_type, in mp_write_address_space() argument 180 mpe->mpe_busid = busid; in mp_write_address_space() 190 int busid, int bus_info, int parent_busid) in mp_write_bus_hierarchy() argument 197 mpe->mpe_busid = busid; in mp_write_bus_hierarchy() 206 void mp_write_compat_address_space(struct mp_config_table *mc, int busid, in mp_write_compat_address_space() argument 214 mpe->mpe_busid = busid; in mp_write_compat_address_space()
|
| /OK3568_Linux_fs/u-boot/arch/x86/include/asm/ |
| H A D | mpspec.h | 393 int busid, int addr_type, 408 int busid, int bus_info, int parent_busid); 421 void mp_write_compat_address_space(struct mp_config_table *mc, int busid,
|
| /OK3568_Linux_fs/kernel/drivers/s390/scsi/ |
| H A D | zfcp_aux.c | 58 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()
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/common/ |
| H A D | xf86platformBus.c | 134 platform_find_pci_info(struct xf86_platform_device *pd, char *busid) in platform_find_pci_info() argument 141 ret = sscanf(busid, "pci:%04x:%02x:%02x.%u", in platform_find_pci_info() 290 char *busid = xf86_platform_odev_attributes(i)->busid; in xf86platformProbe() local 292 if (pci && (strncmp(busid, "pci:", 4) == 0)) { in xf86platformProbe() 293 platform_find_pci_info(&xf86_platform_devices[i], busid); in xf86platformProbe()
|
| /OK3568_Linux_fs/kernel/Documentation/usb/ |
| H A D | usbip_protocol.rst | 139 | 0x10C | 32 | | busid: Bus ID of the exported device, string | 180 | i*0x138 + | | | with the busid field. | 196 | 8 | 32 | | busid: the busid of the exported device on the | 198 | | | | from the message field OP_REP_DEVLIST.busid. | 228 | 0x108 | 32 | | busid: Bus ID of the exported device, string |
|