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