Home
last modified time | relevance | path

Searched refs:dev_config (Results 1 – 6 of 6) sorted by relevance

/hypervisor/arch/x86/configs/
A Dpci_dev.c21 struct acrn_vm_pci_dev_config *dev_config; in allocate_to_prelaunched_vm() local
30 dev_config->pdev = pdev; in allocate_to_prelaunched_vm()
71 dev_config = NULL; in init_one_dev_config()
74 dev_config = NULL; in init_one_dev_config()
80 && (dev_config == NULL) 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()
[all …]
/hypervisor/dm/vpci/
A Dvroot_port.c121 struct acrn_vm_pci_dev_config *dev_config = NULL; in create_vrp() local
136 dev_config = &vm_config->pci_devs[i]; in create_vrp()
137 if (dev_config->vrp_sec_bus == vrp_config->secondary_bus) { in create_vrp()
138 dev_config->vbdf.value = (uint16_t)dev->slot; in create_vrp()
139 dev_config->pbdf.value = vrp_config->phy_bdf; in create_vrp()
140 dev_config->vrp_max_payload = vrp_config->max_payload; in create_vrp()
141 dev_config->vdev_ops = &vrp_ops; in create_vrp()
144 vdev = vpci_init_vdev(&vm->vpci, dev_config, NULL); in create_vrp()
A Divshmem.c143 struct acrn_vm_pci_dev_config *dev_config = vdev->pci_dev_config; in ivshmem_server_bind_peer() local
145 struct ivshmem_shm_region *region = find_shm_region(dev_config->shm_region_name); in ivshmem_server_bind_peer()
474 struct acrn_vm_pci_dev_config *dev_config = vdev->pci_dev_config; in init_ivshmem_bar() local
476 addr = dev_config->vbar_base[bar_idx]; in init_ivshmem_bar()
545 struct acrn_vm_pci_dev_config *dev_config = vdev->pci_dev_config; in init_ivshmem_vdev() local
546 struct ivshmem_shm_region *region = find_shm_region(dev_config->shm_region_name); in init_ivshmem_vdev()
647 struct acrn_vm_pci_dev_config *dev_config = NULL; in create_ivshmem_vdev() local
652 dev_config = &vm_config->pci_devs[i]; in create_ivshmem_vdev()
653 …if (strncmp(dev_config->shm_region_name, (char *)dev->args, sizeof(dev_config->shm_region_name)) =… in create_ivshmem_vdev()
657 dev_config->vbdf.value = (uint16_t) dev->slot; in create_ivshmem_vdev()
[all …]
A Dvmcs9900.c171 struct acrn_vm_pci_dev_config *dev_config = NULL; in create_vmcs9900_vdev() local
176 dev_config = &vm_config->pci_devs[i]; in create_vmcs9900_vdev()
177 if (dev_config->vuart_idx == vuart_idx) { in create_vmcs9900_vdev()
178 dev_config->vbdf.value = (uint16_t) dev->slot; in create_vmcs9900_vdev()
179 dev_config->vbar_base[0] = (uint64_t) dev->io_addr[0]; in create_vmcs9900_vdev()
180 dev_config->vbar_base[1] = (uint64_t) dev->io_addr[1]; in create_vmcs9900_vdev()
182 vdev = vpci_init_vdev(&vm->vpci, dev_config, NULL); in create_vmcs9900_vdev()
A Dvpci.c715 struct pci_vdev *vpci_init_vdev(struct acrn_vpci *vpci, struct acrn_vm_pci_dev_config *dev_config, … in vpci_init_vdev() argument
726 vdev->bdf.value = dev_config->vbdf.value; in vpci_init_vdev()
727 vdev->pdev = dev_config->pdev; in vpci_init_vdev()
728 vdev->pci_dev_config = dev_config; in vpci_init_vdev()
731 …hlist_add_head(&vdev->link, &vpci->vdevs_hlist_heads[hash64(dev_config->vbdf.value, VDEV_LIST_HASH… in vpci_init_vdev()
732 if (dev_config->vdev_ops != NULL) { in vpci_init_vdev()
733 vdev->vdev_ops = dev_config->vdev_ops; in vpci_init_vdev()
736 ASSERT(dev_config->emu_type == PCI_DEV_TYPE_PTDEV, in vpci_init_vdev()
738 ASSERT(dev_config->pdev != NULL, "PCI PTDev is not present on platform!"); in vpci_init_vdev()
/hypervisor/include/dm/
A Dvpci.h196 struct pci_vdev *vpci_init_vdev(struct acrn_vpci *vpci, struct acrn_vm_pci_dev_config *dev_config, …

Completed in 10 milliseconds