/drivers/pci/hotplug/ |
H A D | pciehp_hpc.c | 286 static bool pci_bus_check_dev(struct pci_bus *bus, int devfn) argument 294 found = pci_bus_read_dev_vendor_id(bus, devfn, &l, 0); 306 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), 307 PCI_FUNC(devfn), count, step, l);
|
H A D | cpqphp_ctrl.c | 2090 unsigned int devfn; local 2105 devfn = PCI_DEVFN(func->device, func->function); 2108 rc = pci_bus_read_config_byte (pci_bus, devfn, 0x0B, &class_code); 2117 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_HEADER_TYPE, &header_type); 2123 rc = pci_bus_read_config_byte (pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); 2385 unsigned int devfn; local 2401 devfn = PCI_DEVFN(func->device, func->function); 2404 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &temp_byte); 2411 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_PRIMARY_BUS, func->bus); 2426 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SECONDARY_BU [all...] |
/drivers/pci/ |
H A D | xen-pcifront.c | 175 static int pcifront_bus_read(struct pci_bus *bus, unsigned int devfn, argument 183 .devfn = devfn, 193 pci_domain_nr(bus), bus->number, PCI_SLOT(devfn), 194 PCI_FUNC(devfn), where, size); 214 static int pcifront_bus_write(struct pci_bus *bus, unsigned int devfn, argument 221 .devfn = devfn, 234 PCI_SLOT(devfn), PCI_FUNC(devfn), wher 419 unsigned int devfn; local 579 int devfn = pdev->sh_info->aer_op.devfn; local [all...] |
H A D | probe.c | 1009 if (PCI_SLOT(dev->devfn) == slot->number) 1017 dev->bus->number, PCI_SLOT(dev->devfn), 1018 PCI_FUNC(dev->devfn)); 1221 bool pci_bus_read_dev_vendor_id(struct pci_bus *bus, int devfn, u32 *l, argument 1226 if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) 1241 if (pci_bus_read_config_dword(bus, devfn, PCI_VENDOR_ID, l)) 1247 bus->number, PCI_SLOT(devfn), 1248 PCI_FUNC(devfn)); 1261 static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn) argument 1266 if (!pci_bus_read_dev_vendor_id(bus, devfn, 1347 pci_scan_single_device(struct pci_bus *bus, int devfn) argument 1417 pci_scan_slot(struct pci_bus *bus, int devfn) argument 1606 unsigned int devfn, pass, max = bus->secondary; local [all...] |
H A D | pci.c | 164 static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn, argument 170 pci_bus_read_config_byte(bus, devfn, pos, &pos); 174 pci_bus_read_config_byte(bus, devfn, pos + PCI_CAP_LIST_ID, 185 static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn, argument 190 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl); 195 return __pci_find_next_cap(dev->bus, dev->devfn, 201 unsigned int devfn, u8 hdr_type) 205 pci_bus_read_config_word(bus, devfn, PCI_STATUS, &status); 245 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type); 247 pos = __pci_find_next_cap(dev->bus, dev->devfn, po 200 __pci_bus_find_cap_start(struct pci_bus *bus, unsigned int devfn, u8 hdr_type) argument 265 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument 344 pci_bus_find_ext_capability(struct pci_bus *bus, unsigned int devfn, int cap) argument [all...] |
/drivers/xen/xen-pciback/ |
H A D | pci_stub.c | 36 unsigned int devfn; member in struct:pcistub_device_id 145 && PCI_DEVFN(slot, func) == psdev->dev->devfn) { 194 && PCI_DEVFN(slot, func) == psdev->dev->devfn) { 282 && dev->devfn == pdev_id->devfn) 598 &aer_op->domain, &aer_op->bus, &aer_op->devfn); 607 DRV_NAME ": aer_op %x dom %x bus %x devfn %x\n", 608 aer_cmd, aer_op->domain, aer_op->bus, aer_op->devfn); 665 dev_dbg(&dev->dev, "xen_pcibk_slot_reset(bus:%x,devfn:%x)\n", 666 dev->bus->number, dev->devfn); 955 int devfn = PCI_DEVFN(slot, func); local [all...] |
/drivers/acpi/apei/ |
H A D | ghes.c | 490 unsigned int devfn; local 492 devfn = PCI_DEVFN(pcie_err->device_id.device, 497 devfn, aer_severity);
|
/drivers/gpu/vga/ |
H A D | vgaarb.c | 817 unsigned int *bus, unsigned int *devfn) 827 *devfn = PCI_DEVFN(slot, func); 1061 unsigned int domain, bus, devfn; local 1072 &domain, &bus, &devfn)) { 1077 domain, bus, PCI_SLOT(devfn), PCI_FUNC(devfn)); 1087 pdev = pci_get_slot(pbus, devfn); 1091 bus, devfn); 816 vga_pci_str_to_vars(char *buf, int count, unsigned int *domain, unsigned int *bus, unsigned int *devfn) argument
|
/drivers/isdn/hysdn/ |
H A D | hysdn_defs.h | 142 unsigned char devfn; /* slot+function bit encoded */ member in struct:HYSDN_CARD
|
/drivers/message/fusion/ |
H A D | mptctl.h | 386 u8 devfn; member in struct:_hp_host_info 409 u8 devfn; member in struct:_hp_host_info_rev0
|
/drivers/parisc/ |
H A D | dino.c | 173 static int dino_cfg_read(struct pci_bus *bus, unsigned int devfn, int where, argument 178 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); 182 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, 208 static int dino_cfg_write(struct pci_bus *bus, unsigned int devfn, int where, argument 213 u32 v = DINO_CFG_TOK(local_bus, devfn, where & ~3); 217 DBG("%s: %p, %d, %d, %d\n", __func__, base_addr, devfn, where, 524 dino_cfg_write(dev->bus, dev->devfn, 536 dino_cfg_read(dev->bus, dev->devfn, PCI_INTERRUPT_PIN, 1, &irq_pin); 542 dino_cfg_write(dev->bus, dev->devfn, PCI_INTERRUPT_LINE, 1, dev->irq); 629 dino_cfg_read(dev->bus, dev->devfn, [all...] |
H A D | lba_pci.c | 364 static int elroy_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 368 u32 tok = LBA_CFG_TOK(local_bus, devfn); 371 if ((pos > 255) || (devfn > 255)) 383 if (LBA_SKIP_PROBE(d) && !lba_device_present(bus->secondary, devfn, d)) { 431 static int elroy_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) argument 435 u32 tok = LBA_CFG_TOK(local_bus,devfn); 437 if ((pos > 255) || (devfn > 255)) 447 if (LBA_SKIP_PROBE(d) && (!lba_device_present(bus->secondary, devfn, d))) { 481 static int mercury_cfg_read(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 *data) argument 485 u32 tok = LBA_CFG_TOK(local_bus, devfn); 513 mercury_cfg_write(struct pci_bus *bus, unsigned int devfn, int pos, int size, u32 data) argument [all...] |
/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.c | 147 int devfn = pdev->devfn; local 156 * Just do a linear search until we find the devfn of the MAC 163 if (((tmp >> (8*j)) & 0xff) == devfn)
|
/drivers/net/ethernet/sfc/ |
H A D | siena_sriov.c | 429 copy[1].from_rid = efx->pci_dev->devfn; 446 copy[pos].from_rid = efx->pci_dev->devfn; 873 copy[0].to_rid = efx->pci_dev->devfn; 959 copy_req[k].from_rid = efx->pci_dev->devfn; 1218 unsigned index, devfn, sriov, buftbl_base; local 1231 devfn = pci_dev->devfn + offset; 1239 vf->pci_rid = devfn; 1243 PCI_SLOT(devfn), PCI_FUNC(devfn)); [all...] |
/drivers/pcmcia/ |
H A D | ti113x.h | 240 if(PCI_FUNC(socket->dev->devfn)==1) 489 func0 = pci_get_slot(socket->dev->bus, socket->dev->devfn & ~0x07); 658 int devfn; local 709 devfn = socket->dev->devfn & ~0x07; 711 (socket->dev->devfn & 0x07) ? devfn : devfn | 0x01); 792 if ((PCI_FUNC(socket->dev->devfn) == 0) || 851 if (disable_clkrun && PCI_FUNC(socket->dev->devfn) [all...] |
/drivers/iommu/ |
H A D | amd_iommu_types.h | 669 static inline u16 calc_devid(u8 bus, u8 devfn) argument 671 return (((u16)bus) << 8) | devfn;
|
H A D | intel-iommu.c | 397 u8 devfn; /* PCI devfn number */ member in struct:device_domain_info 644 static struct intel_iommu *device_to_iommu(int segment, u8 bus, u8 devfn) argument 658 drhd->devices[i]->devfn == devfn) 681 /* Gets context entry for a given bus and devfn */ 683 u8 bus, u8 devfn) 707 return &context[devfn]; 710 static int device_context_mapped(struct intel_iommu *iommu, u8 bus, u8 devfn) argument 724 ret = context_present(&context[devfn]); 682 device_to_context_entry(struct intel_iommu *iommu, u8 bus, u8 devfn) argument 730 clear_context_table(struct intel_iommu *iommu, u8 bus, u8 devfn) argument 1092 iommu_support_dev_iotlb( struct dmar_domain *domain, int segment, u8 bus, u8 devfn) argument 1542 domain_context_mapping_one(struct dmar_domain *domain, int segment, u8 bus, u8 devfn, int translation) argument 1898 iommu_detach_dev(struct intel_iommu *iommu, u8 bus, u8 devfn) argument 1960 int bus = 0, devfn = 0; local 4107 u8 devfn; member in struct:__anon1109::__anon1110 [all...] |
/drivers/infiniband/hw/nes/ |
H A D | nes_hw.h | 1171 unsigned int devfn; member in struct:nes_adapter
|