Lines Matching refs:devfn
381 #define PCI_SLOT(devfn) (((devfn) >> 3) & 0x1f) argument
382 #define PCI_FUNC(devfn) ((devfn) & 0x07) argument
385 devfn_to_wslot(unsigned int devfn) in devfn_to_wslot() argument
390 wslot.bits.slot = PCI_SLOT(devfn); in devfn_to_wslot()
391 wslot.bits.func = PCI_FUNC(devfn); in devfn_to_wslot()
515 int devfn; in hv_pci_delete_device() local
517 devfn = wslot_to_devfn(hpdev->desc.wslot.val); in hv_pci_delete_device()
522 0, PCI_SLOT(devfn), PCI_FUNC(devfn)); in hv_pci_delete_device()
1534 unsigned int devfn; in vmbus_pcib_alloc_resource() local
1545 devfn = PCI_DEVFN(pci_get_slot(child), in vmbus_pcib_alloc_resource()
1547 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_alloc_resource()
1603 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_read_config() local
1608 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_read_config()
1623 unsigned int devfn = PCI_DEVFN(slot, func); in vmbus_pcib_write_config() local
1627 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_write_config()
1675 unsigned int devfn; in vmbus_pcib_map_msi() local
1694 devfn = PCI_DEVFN(pci_get_slot(child), pci_get_function(child)); in vmbus_pcib_map_msi()
1695 hpdev = get_pcichild_wslot(sc->hbus, devfn_to_wslot(devfn)); in vmbus_pcib_map_msi()