Lines Matching refs:devfn
86 pdev = pci_scan_single_device(zdev->zbus->bus, zdev->devfn); in zpci_bus_scan_device()
115 pdev = pci_get_slot(zbus->bus, zdev->devfn); in zpci_bus_remove_device()
146 int devfn, rc, ret = 0; in zpci_bus_scan_bus() local
151 for (devfn = 0; devfn < ZPCI_FUNCTIONS_PER_BUS; devfn++) { in zpci_bus_scan_bus()
152 zdev = zbus->function[devfn]; in zpci_bus_scan_bus()
319 int devfn, rc = 0; in zpci_bus_create_hotplug_slots() local
326 if (zdev->devfn == 0 && zbus->multifunction) { in zpci_bus_create_hotplug_slots()
332 for (devfn = 1; devfn < ZPCI_FUNCTIONS_PER_BUS; devfn++) { in zpci_bus_create_hotplug_slots()
333 zdev = zbus->function[devfn]; in zpci_bus_create_hotplug_slots()
351 if (zbus->function[zdev->devfn]) { in zpci_bus_add_device()
352 pr_err("devfn %04x is already assigned\n", zdev->devfn); in zpci_bus_add_device()
356 zbus->function[zdev->devfn] = zdev; in zpci_bus_add_device()
374 zbus->function[zdev->devfn] = NULL; in zpci_bus_add_device()
391 if (zdev->devfn >= ZPCI_FUNCTIONS_PER_BUS) in zpci_bus_device_register()
403 if (zdev->devfn == 0) { in zpci_bus_device_register()
426 zbus->function[zdev->devfn] = NULL; in zpci_bus_device_unregister()