| /pciutils/ |
| H A D | ls-map.c | 19 byte this, dev, func, first, last, bug; member 40 b->func = p->func; in map_bridge() 44 p->bus, p->dev, p->func, b->this, b->first, b->last); in map_bridge() 58 int dev, func; in do_map_bus() local 69 for (func = 0; func < func_limit; func++) in do_map_bus() 70 if (filter.func < 0 || filter.func == func) in do_map_bus() 72 struct pci_dev *p = pci_get_dev(pacc, domain, bus, dev, func); in do_map_bus() 76 if (!func && (pci_read_byte(p, PCI_HEADER_TYPE) & 0x80)) in do_map_bus() 79 printf("Discovered device %04x:%02x:%02x.%d\n", domain, bus, dev, func); in do_map_bus() 142 printf("Entered via %02x:%02x.%d\n", b->this, b->dev, b->func); in map_bridges() [all …]
|
| H A D | lspci.c | 224 if (a->func < b->func) in compare_them() 226 if (a->func > b->func) in compare_them() 272 printf("/%02x:%02x.%d", p->bus, p->dev, p->func); in show_slot_path() 274 printf("/%02x.%d", p->dev, p->func); in show_slot_path() 278 printf("%02x:%02x.%d", p->bus, p->dev, p->func); in show_slot_path()
|
| H A D | ls-tree.c | 171 dd->domain, dd->bus, dd->dev, dd->func, in grow_tree() 199 parent->dev->bus, parent->dev->dev, parent->dev->func); in grow_tree() 296 p = tree_printf(line, p, "%02x.%x", q->dev, q->func); in show_tree_dev()
|
| H A D | setpci.c | 62 return (f->domain >= 0 && f->bus >= 0 && f->slot >= 0 && f->func >= 0); in matches_single_device() 73 struct pci_dev *dev = pci_get_dev(pacc, f->domain, f->bus, f->slot, f->func); in select_devices() 121 snprintf(slot, sizeof(slot), "%04x:%02x:%02x.%x", dev->domain, dev->bus, dev->dev, dev->func); in exec_op()
|
| /pciutils/lib/ |
| H A D | generic.c | 35 for (t->func=0; !t->func || multi && t->func<8; t->func++) in pci_generic_scan_bus() 43 if (!t->func) in pci_generic_scan_bus() 50 d->func = t->func; in pci_generic_scan_bus() 65 …Device %04x:%02x:%02x.%d has unknown header type %02x.\n", d->domain, d->bus, d->dev, d->func, ht); in pci_generic_scan_bus() 174 …04x:%02x:%02x.%d: Invalid 64-bit address seen for BAR %d.", d->domain, d->bus, d->dev, d->func, i); in pci_generic_fill_info() 182 …a->warning("%04x:%02x:%02x.%d 64-bit device address ignored.", d->domain, d->bus, d->dev, d->func); in pci_generic_fill_info()
|
| H A D | filter.c | 25 f->domain = f->bus = f->slot = f->func = -1; in pci_filter_init_v38() 160 if (!parse_hex_field(sfields[1], &f->func, NULL, 7)) in pci_filter_parse_slot_v38() 203 (f->func >= 0 && f->func != d->func)) in pci_filter_match_v38() 233 int domain, bus, slot, func; /* -1 = ANY */ member 248 new->func = old->func; in pci_filter_import_v30() 262 old->func = new->func; in pci_filter_export_v30()
|
| H A D | sylixos-device.c | 81 ret = pciConfigInByte(d->bus, d->dev, d->func, pos, &data_byte); in sylixos_read() 88 ret = pciConfigInWord(d->bus, d->dev, d->func, pos, &data_word); in sylixos_read() 95 ret = pciConfigInDword(d->bus, d->dev, d->func, pos, &data_dword); in sylixos_read() 123 ret = pciConfigOutByte(d->bus, d->dev, d->func, pos, data_byte); in sylixos_write() 130 ret = pciConfigOutWord(d->bus, d->dev, d->func, pos, data_word); in sylixos_write() 137 ret = pciConfigOutDword(d->bus, d->dev, d->func, pos, data_dword); in sylixos_write()
|
| H A D | sysfs.c | 85 sysfs_name(d->access), d->domain, d->bus, d->dev, d->func, object); in sysfs_obj_name() 253 unsigned int dom, bus, dev, func; in sysfs_scan() local 260 if (sscanf(entry->d_name, "%x:%x:%x.%d", &dom, &bus, &dev, &func) < 4) in sysfs_scan() 270 d->func = func; in sysfs_scan() 389 unsigned int domain, bus, dev, func; in sysfs_fill_info() local 401 if (name && sscanf(name, "%x:%x:%x.%d", &domain, &bus, &dev, &func) == 4 && domain <= 0x7fffffff) in sysfs_fill_info() 403 …(parent->domain == (int)domain && parent->bus == bus && parent->dev == dev && parent->func == func) in sysfs_fill_info()
|
| H A D | hurd.c | 104 _SERVERS_BUS_PCI, d->domain, d->bus, d->dev, d->func, in device_port_lookup() 118 int dev, int func, tree_level lev) in enum_devices() argument 172 func = ret; in enum_devices() 181 enum_devices(path, a, domain, bus, dev, func, lev + 1); in enum_devices() 194 d->func = func; in enum_devices()
|
| H A D | i386-ports.c | 85 d.func = 0; in intel_sanity_check() 147 …intel_outl(0x80000000 | ((d->bus & 0xff) << 16) | (PCI_DEVFN(d->dev, d->func) << 8) | (pos&~3), 0x… in conf1_read() 179 …intel_outl(0x80000000 | ((d->bus & 0xff) << 16) | (PCI_DEVFN(d->dev, d->func) << 8) | (pos&~3), 0x… in conf1_write() 241 intel_outb((d->func << 1) | 0xf0, 0xcf8); in conf2_read() 277 intel_outb((d->func << 1) | 0xf0, 0xcf8); in conf2_write()
|
| H A D | fbsd-device.c | 148 t->func = matches[i].pc_sel.pc_func; in fbsd_scan() 194 pattern.pc_sel.pc_func = d->func; in fbsd_fill_info() 221 bar.pbi_sel.pc_func = d->func; in fbsd_fill_info() 272 pi.pi_sel.pc_func = d->func; in fbsd_read() 324 pi.pi_sel.pc_func = d->func; in fbsd_write()
|
| H A D | win32-cfgmgr32.c | 1196 …NSTID_A devinst_id, unsigned int *domain, unsigned int *bus, unsigned int *dev, unsigned int *func) in get_device_location() argument 1229 *func = drp_address & 0xffff; in get_device_location() 1267 sscanf(instance_id, "BUS_%x&DEV_%x&FUNC_%x", bus, dev, func) == 3) in get_device_location() 1276 *func = devfn & 0x7; in get_device_location() 1297 *bus = *dev = *func = 0; in get_device_location() 1307 *dev = *func = 0; in get_device_location() 1491 unsigned int domain, bus, dev, func; in scan_devinst_id() local 1506 if (!get_device_location(a, devinst, devinst_id, &domain, &bus, &dev, &func)) in scan_devinst_id() 1509 d = pci_get_dev(a, domain, bus, dev, func); in scan_devinst_id() 1680 d->backend_data = dcfg = pci_get_dev(acfg, d->domain, d->bus, d->dev, d->func); in win32_cfgmgr32_read() [all …]
|
| H A D | nbsd-libpci.c | 82 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_read() 122 if (pcibus_conf_read(d->access->fd, d->bus, d->dev, d->func, pos, &val) < 0) in nbsd_write() 139 if (pcibus_conf_write(d->access->fd, d->bus, d->dev, d->func, pos, val) < 0) in nbsd_write()
|
| H A D | pci.h | 109 struct pci_dev *pci_get_dev(struct pci_access *acc, int domain, int bus, int dev, int func) PCI_ABI… 141 u8 bus, dev, func; /* Bus inside domain, device and function */ member 269 int domain, bus, slot, func; /* -1 = ANY */ member
|
| H A D | proc.c | 102 d->func = PCI_FUNC(dfn & 0xff); in proc_scan() 147 d->bus, d->dev, d->func); in proc_setup() 156 d->domain, d->bus, d->dev, d->func); in proc_setup()
|
| H A D | access.c | 61 pci_get_dev(struct pci_access *a, int domain, int bus, int dev, int func) in pci_get_dev() argument 68 d->func = func; in pci_get_dev()
|
| H A D | obsd-device.c | 75 pi.pi_sel.pc_func = d->func; in obsd_read() 116 pi.pi_sel.pc_func = d->func; in obsd_write()
|
| H A D | darwin.c | 126 param.address.pci.function = d->func; in darwin_read() 170 param.address.pci.function = d->func; in darwin_write()
|
| H A D | dump.c | 152 …while (e && (e->domain != d->domain || e->bus != d->bus || e->dev != d->dev || e->func != d->func)) in dump_read()
|
| H A D | aix-device.c | 230 mdio.md_sla = PCI_DEVFN(d->dev, d->func); in aix_read() 252 mdio.md_sla = PCI_DEVFN(d->dev, d->func); in aix_write()
|
| H A D | rt-thread-smart-dm.c | 104 d->func = PCI_FUNC(dfn & 0xff); in rt_thread_smart_dm_scan() 150 d->domain, d->bus, d->dev, d->func); in rt_thread_smart_dm_setup()
|
| H A D | aos-expansion.c | 156 d->func = fn_num; in aos_expansion_scan() 163 …a->debug(" Found device %02x:%02x.%d %04x:%04x\n", d->bus, d->dev, d->func, d->vendor_id, d->devi… in aos_expansion_scan()
|
| H A D | win32-sysdbg.c | 254 status = win32_sysdbg_pci_bus_data(FALSE, d->bus, d->dev, d->func, pos, buf, len, &ret_len); in win32_sysdbg_read() 270 status = win32_sysdbg_pci_bus_data(TRUE, d->bus, d->dev, d->func, pos, buf, len, &ret_len); in win32_sysdbg_write()
|
| /pciutils/lmr/ |
| H A D | margin_log.c | 33 margin_log("%x:%x:%x.%x -> %x:%x:%x.%x", down->domain, down->bus, down->dev, down->func, in margin_log_bdfs() 34 up->domain, up->bus, up->dev, up->func); in margin_log_bdfs() 36 margin_log("%x:%x.%x -> %x:%x.%x", down->bus, down->dev, down->func, up->bus, up->dev, in margin_log_bdfs() 37 up->func); in margin_log_bdfs() 45 down->func, up->domain, up->bus, up->dev, up->func); in margin_gen_bdfs() 47 snprintf(dest, maxlen, "%x:%x.%x -> %x:%x.%x", down->bus, down->dev, down->func, up->bus, in margin_gen_bdfs() 48 up->dev, up->func); in margin_gen_bdfs()
|
| H A D | margin_hw.c | 65 && p->func == 0) in margin_find_pair() 97 if (!(down_sec == up_port->bus && margin_port_is_down(down_port) && up_port->func == 0)) in margin_verify_link()
|