Lines Matching defs:devfn
485 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f)
486 #define PCI_FUNC(devfn) ((devfn) & 0x07)
489 devfn_to_wslot(unsigned int devfn)
494 wslot.bits.slot = PCI_SLOT(devfn);
495 wslot.bits.func = PCI_FUNC(devfn);
638 int devfn;
640 devfn = wslot_to_devfn(hpdev->desc.wslot.val);
645 0, PCI_SLOT(devfn), PCI_FUNC(devfn));
1673 unsigned int devfn;
1684 devfn = PCI_DEVFN(pci_get_slot(child),
1686 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn));
1776 unsigned int devfn = PCI_DEVFN(slot, func);
1781 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn));
1796 unsigned int devfn = PCI_DEVFN(slot, func);
1800 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn));
1879 unsigned int devfn;
1900 devfn = PCI_DEVFN(pci_get_slot(child), pci_get_function(child));
1901 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn));