Lines Matching refs:devfn
486 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
487 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
490 devfn_to_wslot(unsigned int devfn) in devfn_to_wslot() argument
495 wslot.bits.slot = PCI_SLOT(devfn); in devfn_to_wslot()
496 wslot.bits.func = PCI_FUNC(devfn); in devfn_to_wslot()
639 int devfn; in hv_pci_delete_device() local
641 devfn = wslot_to_devfn(hpdev->desc.wslot.val); in hv_pci_delete_device()
646 0, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hv_pci_delete_device()
1674 unsigned int devfn; in vmbus_pcib_alloc_resource() local
1685 devfn = PCI_DEVFN(pci_get_slot(child), in vmbus_pcib_alloc_resource()
1687 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_alloc_resource()
1744 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_read_config() local
1749 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_read_config()
1764 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_write_config() local
1768 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_write_config()
1847 unsigned int devfn; in vmbus_pcib_map_msi() local
1868 devfn = PCI_DEVFN(pci_get_slot(child), pci_get_function(child)); in vmbus_pcib_map_msi()
1869 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_map_msi()