Lines Matching refs:devfn
406 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
407 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
410 devfn_to_wslot(unsigned int devfn) in devfn_to_wslot() argument
415 wslot.bits.slot = PCI_SLOT(devfn); in devfn_to_wslot()
416 wslot.bits.func = PCI_FUNC(devfn); in devfn_to_wslot()
559 int devfn; in hv_pci_delete_device() local
561 devfn = wslot_to_devfn(hpdev->desc.wslot.val); in hv_pci_delete_device()
566 0, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hv_pci_delete_device()
1631 unsigned int devfn; in vmbus_pcib_alloc_resource() local
1642 devfn = PCI_DEVFN(pci_get_slot(child), in vmbus_pcib_alloc_resource()
1644 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_alloc_resource()
1700 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_read_config() local
1705 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_read_config()
1720 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_write_config() local
1724 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_write_config()
1772 unsigned int devfn; in vmbus_pcib_map_msi() local
1791 devfn = PCI_DEVFN(pci_get_slot(child), pci_get_function(child)); in vmbus_pcib_map_msi()
1792 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_map_msi()