/linux-4.4.14/tools/usb/usbip/src/ |
H A D | usbip_bind.c | 41 " -b, --busid=<busid> Bind " USBIP_HOST_DRV_NAME ".ko to device " 42 "on <busid>\n"; 50 static int bind_usbip(char *busid) bind_usbip() argument 60 rc = write_sysfs_attribute(bind_attr_path, busid, strlen(busid)); bind_usbip() 62 err("error binding device %s to driver: %s", busid, bind_usbip() 71 static int unbind_other(char *busid) unbind_other() argument 88 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); unbind_other() 90 dbg("unable to find device with bus ID %s", busid); unbind_other() 125 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); unbind_other() 127 err("error unbinding device %s from driver", busid); unbind_other() 142 static int bind_device(char *busid) bind_device() argument 150 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); bind_device() 157 rc = unbind_other(busid); bind_device() 159 err("could not unbind driver from device on busid %s", busid); bind_device() 162 err("device on busid %s is already bound to %s", busid, bind_device() 167 rc = modify_match_busid(busid, 1); bind_device() 169 err("unable to bind device on %s", busid); bind_device() 173 rc = bind_usbip(busid); bind_device() 176 modify_match_busid(busid, 0); bind_device() 180 info("bind device on busid %s: complete", busid); bind_device() 188 { "busid", required_argument, NULL, 'b' }, usbip_bind()
|
H A D | usbip_unbind.c | 34 " -b, --busid=<busid> Unbind " USBIP_HOST_DRV_NAME ".ko from " 35 "device on <busid>\n"; 42 static int unbind_device(char *busid) unbind_device() argument 60 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); unbind_device() 78 rc = write_sysfs_attribute(unbind_attr_path, busid, strlen(busid)); unbind_device() 80 err("error unbinding device %s from driver", busid); unbind_device() 85 rc = modify_match_busid(busid, 0); unbind_device() 87 err("unable to unbind device on %s", busid); unbind_device() 96 rc = write_sysfs_attribute(rebind_attr_path, busid, strlen(busid)); unbind_device() 103 info("unbind device on busid %s: complete", busid); unbind_device() 115 { "busid", required_argument, NULL, 'b' }, usbip_unbind()
|
H A D | usbip_attach.c | 39 " -b, --busid=<busid> Busid of the device on <host>\n"; 47 static int record_connection(char *host, char *port, char *busid, int rhport) record_connection() argument 76 host, port, busid); record_connection() 120 static int query_import_device(int sockfd, char *busid) query_import_device() argument 137 strncpy(request.busid, busid, SYSFS_BUS_ID_SIZE-1); query_import_device() 163 if (strncmp(reply.udev.busid, busid, SYSFS_BUS_ID_SIZE)) { query_import_device() 164 err("recv different busid %s", reply.udev.busid); query_import_device() 172 static int attach_device(char *host, char *busid) attach_device() argument 184 rhport = query_import_device(sockfd, busid); attach_device() 192 rc = record_connection(host, usbip_port_string, busid, rhport); attach_device() 205 { "busid", required_argument, NULL, 'b' }, usbip_attach() 209 char *busid = NULL; usbip_attach() local 224 busid = optarg; usbip_attach() 231 if (!host || !busid) usbip_attach() 234 ret = attach_device(host, busid); usbip_attach()
|
H A D | utils.c | 27 int modify_match_busid(char *busid, int add) modify_match_busid() argument 40 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "add %s", busid); modify_match_busid() 42 snprintf(command, SYSFS_BUS_ID_SIZE + 4, "del %s", busid); modify_match_busid()
|
H A D | usbip_list.c | 103 printf("%11s: %s\n", udev.busid, product_name); get_exported_devices() 154 static void print_device(const char *busid, const char *vendor, print_device() argument 158 printf("busid=%s#usbid=%.4s:%.4s#", busid, vendor, product); print_device() 160 printf(" - busid %s (%.4s:%.4s)\n", busid, vendor, product); print_device() 180 const char *busid; list_devices() local 210 busid = udev_device_get_sysname(dev); udev_list_entry_foreach() 223 print_device(busid, idVendor, idProduct, parsable); udev_list_entry_foreach()
|
H A D | utils.h | 22 int modify_match_busid(char *busid, int add);
|
H A D | usbip_network.h | 55 char busid[SYSFS_BUS_ID_SIZE]; member in struct:op_devinfo_request 70 char busid[SYSFS_BUS_ID_SIZE]; member in struct:op_import_request
|
H A D | usbipd.c | 112 if (!strncmp(req.busid, edev->udev.busid, SYSFS_BUS_ID_SIZE)) { recv_request_import() 113 info("found requested device: %s", req.busid); recv_request_import() 128 info("requested device not found: %s", req.busid); recv_request_import() 140 dbg("import request busid %s: failed", req.busid); recv_request_import() 153 dbg("import request busid %s: complete", req.busid); recv_request_import()
|
/linux-4.4.14/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) spi_eeprom_register() argument 27 static inline int spi_eeprom_read(int busid, int chipid, spi_eeprom_read() argument
|
H A D | generic.h | 48 void txx9_spi_init(int busid, unsigned long base, int irq);
|
H A D | tx4938.h | 284 void tx4938_spi_init(int busid);
|
H A D | tx4939.h | 534 void tx4939_spi_init(int busid);
|
/linux-4.4.14/arch/mips/txx9/generic/ |
H A D | spi_eeprom.c | 23 int __init spi_eeprom_register(int busid, int chipid, int size) spi_eeprom_register() argument 28 .bus_num = busid, spi_eeprom_register() 47 int busid; member in struct:read_param 64 if (read_param->busid != spi->master->bus_num || early_seeprom_probe() 87 int __init spi_eeprom_read(int busid, int chipid, int address, spi_eeprom_read() argument 92 .busid = busid, spi_eeprom_read()
|
H A D | setup_tx4938.c | 307 void __init tx4938_spi_init(int busid) tx4938_spi_init() argument 309 txx9_spi_init(busid, TX4938_SPI_REG & 0xfffffffffULL, tx4938_spi_init()
|
H A D | setup.c | 451 void __init txx9_spi_init(int busid, unsigned long base, int irq) txx9_spi_init() argument 463 platform_device_register_simple("spi_txx9", busid, txx9_spi_init()
|
/linux-4.4.14/drivers/usb/usbip/ |
H A D | stub_main.c | 52 * Find the index of the busid by name. 55 static int get_busid_idx(const char *busid) get_busid_idx() argument 62 if (!strncmp(busid_table[i].name, busid, BUSID_SIZE)) { get_busid_idx() 69 struct bus_id_priv *get_busid_priv(const char *busid) get_busid_priv() argument 75 idx = get_busid_idx(busid); get_busid_priv() 83 static int add_match_busid(char *busid) add_match_busid() argument 90 if (get_busid_idx(busid) >= 0) { add_match_busid() 97 strlcpy(busid_table[i].name, busid, BUSID_SIZE); add_match_busid() 111 int del_match_busid(char *busid) del_match_busid() argument 117 idx = get_busid_idx(busid); del_match_busid() 156 char busid[BUSID_SIZE]; store_match_busid() local 161 /* busid needs to include \0 termination */ store_match_busid() 162 len = strlcpy(busid, buf + 4, BUSID_SIZE); store_match_busid() 163 if (sizeof(busid) <= len) store_match_busid() 167 if (add_match_busid(busid) < 0) store_match_busid() 170 pr_debug("add busid %s\n", busid); store_match_busid() 175 if (del_match_busid(busid) < 0) store_match_busid() 178 pr_debug("del busid %s\n", busid); store_match_busid()
|
H A D | stub.h | 100 struct bus_id_priv *get_busid_priv(const char *busid); 101 int del_match_busid(char *busid);
|
/linux-4.4.14/arch/arm/mach-versatile/ |
H A D | core.h | 40 #define APB_DEVICE(name, busid, base, plat) \ 41 static AMBA_APB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat) 43 #define AHB_DEVICE(name, busid, base, plat) \ 44 static AMBA_AHB_DEVICE(name, busid, 0, VERSATILE_##base##_BASE, base##_IRQ, plat)
|
/linux-4.4.14/tools/usb/usbip/libsrc/ |
H A D | usbip_common.c | 91 dbg("%-20s = %s", "busid", udev->busid); dump_usb_device() 206 strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE); read_usb_device() 217 char busid[SYSFS_BUS_ID_SIZE]; read_usb_interface() local 220 sprintf(busid, "%s:%d.%d", udev->busid, udev->bConfigurationValue, i); read_usb_interface() 222 sif = udev_device_new_from_subsystem_sysname(udev_context, "usb", busid); read_usb_interface() 224 err("udev_device_new_from_subsystem_sysname %s failed", busid); read_usb_interface()
|
H A D | vhci_driver.c | 19 imported_device_init(struct usbip_imported_device *idev, char *busid) imported_device_init() argument 24 "usb", busid); imported_device_init() 26 dbg("udev_device_new_from_subsystem_sysname failed: %s", busid); imported_device_init() 165 char *port, unsigned long port_len, char *busid) read_record() 207 if (sscanf(buffer, "%s %s %s\n", host, port, busid) != 3) { read_record() 399 printf("%10s -> usbip://%s:%s/%s\n", idev->udev.busid, usbip_vhci_imported_device_dump() 404 printf("%10s -> unknown host, remote port and remote busid\n", usbip_vhci_imported_device_dump() 405 idev->udev.busid); usbip_vhci_imported_device_dump() 164 read_record(int rhport, char *host, unsigned long host_len, char *port, unsigned long port_len, char *busid) read_record() argument
|
H A D | usbip_host_driver.c | 232 dbg("device not available: %s", edev->udev.busid); usbip_host_export_device() 260 info("connect: %s", edev->udev.busid); usbip_host_export_device()
|
H A D | usbip_common.h | 99 char busid[SYSFS_BUS_ID_SIZE]; member in struct:usbip_usb_device
|
/linux-4.4.14/arch/arm/mach-realview/ |
H A D | core.h | 30 #define APB_DEVICE(name, busid, base, plat) \ 31 static AMBA_APB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat) 33 #define AHB_DEVICE(name, busid, base, plat) \ 34 static AMBA_AHB_DEVICE(name, busid, 0, REALVIEW_##base##_BASE, base##_IRQ, plat)
|
/linux-4.4.14/include/linux/amba/ |
H A D | bus.h | 125 #define __AMBA_DEV(busid, data, mask) \ 128 .init_name = busid, \ 138 #define AMBA_APB_DEVICE(name, busid, id, base, irqs, data) \ 140 .dev = __AMBA_DEV(busid, data, 0), \ 149 #define AMBA_AHB_DEVICE(name, busid, id, base, irqs, data) \ 151 .dev = __AMBA_DEV(busid, data, ~0ULL), \
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | mpparse.c | 80 apic_printk(APIC_VERBOSE, "Bus #%d is %s\n", m->busid, str); default_mpc_oem_bus_info() 90 if (m->busid >= MAX_MP_BUSSES) { MP_bus_info() 91 pr_warn("MP table busid value (%d) for bustype %s is too large, max. supported is %d\n", MP_bus_info() 92 m->busid, str, MAX_MP_BUSSES - 1); MP_bus_info() 97 set_bit(m->busid, mp_bus_not_pci); MP_bus_info() 100 mp_bus_id_to_type[m->busid] = MP_BUS_ISA; MP_bus_info() 106 clear_bit(m->busid, mp_bus_not_pci); MP_bus_info() 108 mp_bus_id_to_type[m->busid] = MP_BUS_PCI; MP_bus_info() 110 mp_bus_id_to_type[m->busid] = MP_BUS_EISA; MP_bus_info() 351 bus.busid = 0; construct_ioapic_table() 369 bus.busid = 1; construct_ioapic_table() 485 bus.busid = 0; check_physptr()
|
/linux-4.4.14/drivers/fmc/ |
H A D | fmc-write-eeprom.c | 21 * you must pass the busid argument 101 * busid= are programmed. 114 dev_err(dev, "%s: no busid passed, refusing all cards\n", fwe_probe()
|
H A D | fmc-chardev.c | 121 /* We accept the generic busid parameter */
|
/linux-4.4.14/drivers/s390/scsi/ |
H A D | zfcp_aux.c | 56 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) zfcp_init_device_configure() argument 62 cdev = get_ccwdev_by_busid(&zfcp_ccw_driver, busid); zfcp_init_device_configure() 92 char busid[ZFCP_BUS_ID_SIZE]; zfcp_init_device_setup() local 104 strncpy(busid, token, ZFCP_BUS_ID_SIZE); zfcp_init_device_setup() 115 zfcp_init_device_configure(busid, wwpn, lun); zfcp_init_device_setup()
|
/linux-4.4.14/drivers/amba/ |
H A D | bus.c | 582 const char *busid; member in struct:find_data 596 if (d->busid) amba_find_match() 597 r &= strcmp(dev_name(dev), d->busid) == 0; amba_find_match() 609 * @busid: bus id for device (or NULL) 622 amba_find_device(const char *busid, struct device *parent, unsigned int id, amba_find_device() argument 629 data.busid = busid; amba_find_device()
|
/linux-4.4.14/drivers/s390/block/ |
H A D | dasd_devmap.c | 56 * <busid> : [0-0a-f]\.[0-9a-f]\.(0x)?[0-9a-fA-F]+ 60 * <busid-range> : <busid>(-<busid>)?<feature_list>? 61 * <devices> : <devno-range>|<busid-range> 128 * Read a device busid/devno from a string. 136 /* Interpret ipldev busid */ dasd_busid() 165 /* New style x.y.z busid */ dasd_busid() 402 * Add a devmap for the device specified by busid. It is possible that 462 * Check if busid has been added to the list of dasd ranges.
|
H A D | dasd_eer.c | 282 char busid[DASD_EER_BUSID_SIZE]; member in struct:dasd_eer_header 315 strncpy(header.busid, dev_name(&device->cdev->dev), dasd_eer_write_standard_trigger() 358 strncpy(header.busid, dev_name(&device->cdev->dev), dasd_eer_write_snss_trigger()
|
/linux-4.4.14/arch/x86/include/asm/ |
H A D | mpspec_def.h | 79 unsigned char busid; member in struct:mpc_bus
|
/linux-4.4.14/drivers/gpu/drm/ |
H A D | drm_pci.c | 167 /* Return error if the busid submitted doesn't match the device's actual drm_pci_set_unique() 168 * busid. drm_pci_set_unique() 212 * This IOCTL is deprecated, and will now return EINVAL for any busid not equal
|
/linux-4.4.14/include/linux/ |
H A D | fmc.h | 91 module_param_array_named(busid, _d.busid_val, int, &_d.busid_n, 0444)
|
/linux-4.4.14/include/drm/ |
H A D | drmP.h | 375 * @unique: Unique identifier: e.g. busid. Protected by drm_global_mutex.
|
/linux-4.4.14/drivers/s390/cio/ |
H A D | device.c | 1696 * get ccw_device matching the busid, but only if owned by cdrv
|