/external/stressapptest/src/ |
H A D | os.cc | 644 // Open a PCI bus-dev-func as a file and return its file descriptor. 646 int OsLayer::PciOpen(int bus, int device, int function) { argument 649 snprintf(dev_file, sizeof(dev_file), "/proc/bus/pci/%02x/%02x.%x", 650 bus, device, function); 654 logprintf(0, "Process Error: Unable to open PCI bus %d, device %d, " 656 bus, device, function, errno); 849 &device->domain, &device->bus, &dev, &func) < 4) {
|
H A D | os.h | 30 const char kSysfsPath[] = "/sys/bus/pci/devices"; 34 uint16 bus; member in struct:PCIDevice 65 // Takes a pointer, and returns the corresponding bus address. 70 // Takes a bus address and string, and prints the DIMM name 126 // 1. The write before the clflush is committed to memory bus; 127 // 2. The read after the clflush is hitting the memory bus. 201 // Open, read, write pci cfg through /proc/bus/pci. fd is /proc/pci file. 202 virtual int PciOpen(int bus, int device, int function);
|
/external/skia/src/core/ |
H A D | SkMessageBus.h | 52 SK_DECLARE_STATIC_LAZY_PTR(SkMessageBus<Message>, bus, New); \ 53 return bus.get(); \ 60 // Register ourselves with the corresponding message bus. 61 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local 62 SkAutoMutexAcquire lock(bus->fInboxesMutex); 63 bus->fInboxes.push(this); 68 // Remove ourselves from the corresponding message bus. 69 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local 70 SkAutoMutexAcquire lock(bus->fInboxesMutex); 72 for (int i = 0; i < bus 106 SkMessageBus<Message>* bus = SkMessageBus<Message>::Get(); local [all...] |
/external/qemu/ |
H A D | blockdev.c | 62 DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit) argument 66 /* seek interface, bus and unit */ 70 dinfo->bus == bus && 86 dinfo->bus > max_bus) 87 max_bus = dinfo->bus; 172 bus_id = qemu_opt_get_number(opts, "bus", 0); 216 fprintf(stderr, "qemu: unsupported bus type '%s'\n", buf); 347 /* compute bus and unit according index */ 352 "qemu: index cannot be used with bus an [all...] |
H A D | vl-android.c | 432 /* x86 ISA bus support */ 658 int drive_get_index(BlockInterfaceType type, int bus, int unit) argument 662 /* seek interface, bus and unit */ 666 drives_table[index].bus == bus && 682 drives_table[index].bus > max_bus) 683 max_bus = drives_table[index].bus; 749 static const char * const params[] = { "bus", "unit", "if", "index", 782 if (get_param_value(buf, sizeof(buf), "bus", str)) { 785 fprintf(stderr, "qemu: '%s' invalid bus i [all...] |
/external/qemu/hw/core/ |
H A D | qdev.c | 26 inherit from a particular bus (e.g. PCI or I2C) rather than 50 /* This is a nasty hack to allow passing a NULL bus to qdev_create. */ 71 DeviceState *qdev_create(BusState *bus, const char *name) argument 88 if (!bus) { 92 NULL, "main-system-bus"); 94 bus = main_system_bus; 96 if (t->info->bus_type != bus->type) { 97 /* TODO: Print bus type names. */ 98 hw_error("Device '%s' on wrong bus type (%d/%d)", name, 99 t->info->bus_type, bus 408 BusState *bus; local 424 int bus = next_scsi_bus++; local 440 BusState *bus; local 506 qbus_print(Monitor *mon, BusState *bus, int indent) argument [all...] |
/external/qemu/hw/i386/ |
H A D | pc.c | 1079 fprintf(stderr, "%s: vmware_vga: no PCI bus\n", __FUNCTION__); 1163 fprintf(stderr, "qemu: too many IDE bus\n"); 1242 int bus; local 1245 for (bus = 0; bus <= max_bus; bus++) {
|
/external/qemu/hw/pci/ |
H A D | pci.c | 2 * QEMU PCI bus manager 46 /* The bus IRQ state is the logical OR of the connected devices. 62 PCIBus *bus = (PCIBus *)opaque; local 65 qemu_put_be32(f, bus->nirq); 66 for (i = 0; i < bus->nirq; i++) 67 qemu_put_be32(f, bus->irq_count[i]); 72 PCIBus *bus = (PCIBus *)opaque; local 79 if (bus->nirq != nirq) { 81 nirq, bus->nirq); 86 bus 95 PCIBus *bus; local 114 PCIBus *bus; local 174 unsigned long dom = 0, bus = 0; local 243 do_pci_register_device(PCIDevice *pci_dev, PCIBus *bus, const char *name, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument 273 pci_register_device(PCIBus *bus, const char *name, int instance_size, int devfn, PCIConfigReadFunc *config_read, PCIConfigWriteFunc *config_write) argument 649 PCIBus *bus; local 774 PCIBus *bus = first_bus; local 819 pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, const char *default_model) argument 843 PCIBus *bus; member in struct:PCIBridge 865 PCIBus *bus = first_bus; local 875 PCIBus *bus = pci_find_bus(bus_num); local 883 pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, pci_map_irq_fn map_irq, const char *name) argument 918 PCIBus *bus; local 943 pci_create_simple(PCIBus *bus, int devfn, const char *name) argument [all...] |
/external/qemu/hw/pci-host/ |
H A D | pci_host.h | 39 PCIBus *bus; member in struct:PCIHostState 49 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 1); 61 pci_data_write(s->bus, s->config_reg | (addr & 3), val, 2); 73 pci_data_write(s->bus, s->config_reg, val, 4); 83 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 1); 95 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 2); 110 val = pci_data_read(s->bus, s->config_reg | (addr & 3), 4);
|
H A D | piix.c | 49 pin. We could also use the bus number to have a more precise 181 s->bus = b; 329 int piix3_init(PCIBus *bus, int devfn) argument 334 d = pci_register_device(bus, "PIIX3", sizeof(PCIDevice), 352 int piix4_init(PCIBus *bus, int devfn) argument 357 d = pci_register_device(bus, "PIIX4", sizeof(PCIDevice),
|
/external/qemu/include/hw/pci/ |
H A D | pci.h | 11 /* PCI bus */ 146 PCIBus *bus; member in struct:PCIDevice 163 PCIDevice *pci_register_device(PCIBus *bus, const char *name, 186 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn, 199 PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did, 271 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name); 278 void pci_vmsvga_init(PCIBus *bus); 281 void usb_uhci_piix3_init(PCIBus *bus, int devfn); 282 void usb_uhci_piix4_init(PCIBus *bus, int devfn); 285 void usb_ohci_init_pci(struct PCIBus *bus, in [all...] |
/external/qemu/include/ |
H A D | qemu-common.h | 303 unsigned int bus; member in struct:PCIHostDeviceAddress
|
/external/qemu/include/sysemu/ |
H A D | blockdev.h | 26 int bus; member in struct:DriveInfo 37 extern DriveInfo *drive_get(BlockInterfaceType type, int bus, int unit);
|
/external/qemu/qapi-auto-generated/ |
H A D | qapi-types.h | 2419 } bus; member in struct:PciBridgeInfo 2429 int64_t bus; member in struct:PciDeviceInfo 2456 int64_t bus; member in struct:PciInfo
|
/external/qemu-pc-bios/bochs/bios/ |
H A D | rombios32.c | 707 int bus; member in struct:PCIDevice 720 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 726 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 732 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 738 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 744 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 750 outl(0xcf8, 0x80000000 | (d->bus << 16) | (d->devfn << 8) | (addr & 0xfc)); 782 pin. We could also use the bus number to have a more precise 940 BX_INFO("PCI: bus=%d devfn=0x%02x: vendor_id=0x%04x device_id=0x%04x class=0x%04x\n", 941 d->bus, 1035 int bus, devfn; local 1520 uint8_t bus; /* Identifies ISA Bus */ member in struct:madt_int_override [all...] |
/external/libusb-compat/examples/ |
H A D | lsusb.c | 26 struct usb_bus *bus; local 33 for (bus = busses; bus; bus = bus->next) { 35 for (dev = bus->devices; dev; dev = dev->next) {
|
H A D | testlibusb.c | 131 struct usb_bus *bus; local 141 for (bus = usb_busses; bus; bus = bus->next) { 142 if (bus->root_dev && !verbose) 143 print_device(bus->root_dev, 0); 147 for (dev = bus->devices; dev; dev = dev->next)
|
/external/libusb-compat/libusb/ |
H A D | core.c | 175 struct usb_bus *bus; local 194 * bus number. */ 203 bus = busses; 206 if (bus_num == bus->location) { 210 } while ((bus = bus->next) != NULL); 216 bus = malloc(sizeof(*bus)); 217 if (!bus) 220 memset(bus, 243 struct usb_bus *bus; local 308 find_devices(libusb_device **dev_list, int dev_list_len, struct usb_bus *bus, struct usb_device **ret) argument 568 struct usb_bus *bus; local [all...] |
H A D | usb.h | 250 struct usb_bus *bus; member in struct:usb_device
|
/external/libpcap/ |
H A D | pcap-usb-linux.c | 77 #define SYS_USB_BUS_DIR "/sys/bus/usb/devices" 78 #define PROC_USB_BUS_DIR "/proc/bus/usb" 152 snprintf(dev_descr, 30, "USB bus number %d", n); 170 /* try scanning sysfs usb bus directory */ 189 /* that didn't work; try scanning procfs usb bus directory */ 238 /* probe the descriptors of the devices attached to the bus */ 243 probe_devices(int bus) argument 251 /* scan usb bus directories for device nodes */ 252 snprintf(buf, sizeof(buf), "/dev/bus/usb/%03d", bus); [all...] |
/external/libmtp/src/ |
H A D | libusb-glue.c | 157 * @param bus_location bus for this device. 301 * http://www.microsoft.com/whdc/system/bus/USB/USBFAQ_intermed.mspx#E3HAC 514 struct usb_bus *bus = init_usb(); local 515 for (; bus != NULL; bus = bus->next) { 516 struct usb_device *dev = bus->devices; 531 bus->location); 542 bus->location); 552 *mtp_device_list = append_to_mtpdevice_list(*mtp_device_list, dev, bus 1788 struct usb_bus *bus; local [all...] |
/external/kernel-headers/original/uapi/linux/ |
H A D | cciss_ioctl.h | 13 unsigned char bus; member in struct:_cciss_pci_info_struct
|
H A D | edd.h | 93 __u8 bus; member in struct:edd_device_params::__anon22974::__anon22976
|
H A D | i2o-dev.h | 189 } bus; member in struct:_i2o_hrt_entry
|
H A D | uhid.h | 46 __u16 bus; member in struct:uhid_create_req
|