Lines Matching defs:devfn
241 /* -1 for devfn means auto assign */
243 const char *name, int devfn,
247 if (devfn < 0) {
248 for(devfn = bus->devfn_min ; devfn < 256; devfn += 8) {
249 if (!bus->devices[devfn])
256 pci_dev->devfn = devfn;
267 bus->devices[devfn] = pci_dev;
273 int instance_size, int devfn,
280 pci_dev = do_pci_register_device(pci_dev, bus, name, devfn,
320 pci_dev->bus->devices[pci_dev->devfn] = NULL;
725 d->bus->bus_num, d->devfn >> 3, d->devfn & 7);
769 int devfn;
774 for(devfn = 0; devfn < 256; devfn++) {
775 d = bus->devices[devfn];
812 PCIDevice *pci_nic_init(PCIBus *bus, NICInfo *nd, int devfn,
823 qdev_set_prop_int(dev, "devfn", devfn);
876 PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint16_t vid, uint16_t did,
881 devfn, NULL, pci_bridge_write_config);
912 int devfn;
915 devfn = qdev_get_prop_int(qdev, "devfn", -1);
916 pci_dev = do_pci_register_device(pci_dev, bus, "FIXME", devfn,
936 PCIDevice *pci_create_simple(PCIBus *bus, int devfn, const char *name)
941 qdev_set_prop_int(dev, "devfn", devfn);