Lines Matching defs:devfn
308 if (dev->devfn != PCI_DEVFN(slot, func)) {
341 dev->devfn == PCI_DEVFN(slot, func));
428 static u8 __pci_find_next_cap_ttl(struct pci_bus *bus, unsigned int devfn,
434 pci_bus_read_config_byte(bus, devfn, pos, &pos);
440 pci_bus_read_config_word(bus, devfn, pos, &ent);
452 static u8 __pci_find_next_cap(struct pci_bus *bus, unsigned int devfn,
457 return __pci_find_next_cap_ttl(bus, devfn, pos, cap, &ttl);
462 return __pci_find_next_cap(dev->bus, dev->devfn,
468 unsigned int devfn, u8 hdr_type)
472 pci_bus_read_config_word(bus, devfn, PCI_STATUS, &status);
510 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type);
512 pos = __pci_find_next_cap(dev->bus, dev->devfn, pos, cap);
521 * @devfn: PCI device to query
531 u8 pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap)
535 pci_bus_read_config_byte(bus, devfn, PCI_HEADER_TYPE, &hdr_type);
537 pos = __pci_bus_find_cap_start(bus, devfn, hdr_type & 0x7f);
539 pos = __pci_find_next_cap(bus, devfn, pos, cap);
661 pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn, pos,
671 pos = __pci_find_next_cap_ttl(dev->bus, dev->devfn,
713 pos = __pci_bus_find_cap_start(dev->bus, dev->devfn, dev->hdr_type);
3439 pci_bus_read_config_byte(dev->bus, dev->devfn, ea + PCI_EA_NUM_ENT,
3550 if (pcie_ari_disabled || !pci_is_pcie(dev) || dev->devfn)
3929 slot = PCI_SLOT(dev->devfn);
3967 return PCI_SLOT(dev->devfn);
4702 bus->ops->read(bus, dev->devfn, PCI_COMMAND, 4, &cmd_status_dword);
4721 bus->ops->write(bus, dev->devfn, PCI_COMMAND, 2, newcmd);
6527 * pci_add_dma_alias - Add a DMA devfn alias for a device
6532 * This helper encodes an 8-bit devfn as a bit number in dma_alias_mask
6533 * which is used to program permissible bus-devfn source addresses for DMA
6536 * from their logical bus-devfn. Examples include device quirks where the
6537 * device simply uses the wrong devfn, as well as non-transparent bridges
6567 pci_info(dev, "Enabling fixed DMA alias for devfn range from %02x.%d to %02x.%d\n",
6575 test_bit(dev2->devfn, dev1->dma_alias_mask)) ||
6577 test_bit(dev1->devfn, dev2->dma_alias_mask)) ||
6590 return pci_bus_read_dev_vendor_id(pdev->bus, pdev->devfn, &v, 0);