Lines Matching refs:dev_config

21 	struct acrn_vm_pci_dev_config *dev_config;  in allocate_to_prelaunched_vm()  local
27 dev_config = &vm_config->pci_devs[pci_idx]; in allocate_to_prelaunched_vm()
28 if ((dev_config->emu_type == PCI_DEV_TYPE_PTDEV) && in allocate_to_prelaunched_vm()
29 bdf_is_equal(dev_config->pbdf, pdev->bdf)) { in allocate_to_prelaunched_vm()
30 dev_config->pdev = pdev; in allocate_to_prelaunched_vm()
55 struct acrn_vm_pci_dev_config *dev_config = NULL; in init_one_dev_config() local
60 dev_config = &service_vm_config->pci_devs[service_vm_config->pci_dev_num]; in init_one_dev_config()
64 dev_config->emu_type = PCI_DEV_TYPE_SERVICE_VM_EMUL; in init_one_dev_config()
66 dev_config->vdev_ops = &vpci_bridge_ops; in init_one_dev_config()
68 dev_config->vdev_ops = &vhostbridge_ops; in init_one_dev_config()
71 dev_config = NULL; in init_one_dev_config()
74 dev_config = NULL; in init_one_dev_config()
76 dev_config->emu_type = PCI_DEV_TYPE_PTDEV; in init_one_dev_config()
80 && (dev_config == NULL) in init_one_dev_config()
84 dev_config = &service_vm_config->pci_devs[service_vm_config->pci_dev_num]; in init_one_dev_config()
85 dev_config->emu_type = PCI_DEV_TYPE_DUMMY_MF_EMUL; in init_one_dev_config()
86 dev_config->vdev_ops = &vpci_mf_dev_ops; in init_one_dev_config()
90 if (dev_config != NULL) { in init_one_dev_config()
91 dev_config->vbdf.value = pdev->bdf.value; in init_one_dev_config()
92 dev_config->pbdf.value = pdev->bdf.value; in init_one_dev_config()
93 dev_config->pdev = pdev; in init_one_dev_config()
96 return dev_config; in init_one_dev_config()