Lines Matching defs:devfn
279 if (dev->devfn != PCI_DEVFN(slot, func)) {
312 dev->devfn == PCI_DEVFN(slot, func));
399 static int __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn,
405 pci_bus_read_config_byte(bus, devfn, pos, &pos);
411 pci_bus_read_config_word(bus, devfn, pos, &ent);
423 static int __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn,
428 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl);
433 return __pci_find_next_cap(dev->bus, dev->devfn,
439 unsigned int devfn, u8 hdr_type)
443 pci_bus_read_config_word(bus, devfn, PCI_STATUS, &status);
481 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type);
483 pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap);
492 * @devfn: PCI device to query
502 int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap)
507 pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type);
509 pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f);
511 pos = __pci_find_next_cap(bus, devfn, pos, cap);
633 pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, pos,
643 pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn,
684 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type);
3264 pci_bus_read_config_byte(dev->bus, dev->devfn, ea + PCI_EA_NUM_ENT,
3375 if (pcie_ari_disabled || !pci_is_pcie(dev) || dev->devfn)
3745 slot = PCI_SLOT(dev->devfn);
3783 return PCI_SLOT(dev->devfn);
4496 bus->ops->read(bus, dev->devfn, PCI_COMMAND, 4, &cmd_status_dword);
4515 bus->ops->write(bus, dev->devfn, PCI_COMMAND, 2, newcmd);
6110 * pci_add_dma_alias - Add a DMA devfn alias for a device
6115 * This helper encodes an 8-bit devfn as a bit number in dma_alias_mask
6116 * which is used to program permissible bus-devfn source addresses for DMA
6119 * from their logical bus-devfn. Examples include device quirks where the
6120 * device simply uses the wrong devfn, as well as non-transparent bridges
6149 pci_info(dev, "Enabling fixed DMA alias for devfn range from %02x.%d to %02x.%d\n",
6157 test_bit(dev2->devfn, dev1->dma_alias_mask)) ||
6159 test_bit(dev1->devfn, dev2->dma_alias_mask)) ||
6172 return pci_bus_read_dev_vendor_id(pdev->bus, pdev->devfn, &v, 0);