Lines Matching refs:pdev
1555 static void amdvi_pci_realize(PCIDevice *pdev, Error **errp) in amdvi_pci_realize() argument
1557 AMDVIPCIState *s = AMD_IOMMU_PCI(pdev); in amdvi_pci_realize()
1560 ret = pci_add_capability(pdev, AMDVI_CAPAB_ID_SEC, 0, in amdvi_pci_realize()
1567 ret = pci_add_capability(pdev, PCI_CAP_ID_MSI, 0, in amdvi_pci_realize()
1572 ret = pci_add_capability(pdev, PCI_CAP_ID_HT, 0, in amdvi_pci_realize()
1578 if (msi_init(pdev, 0, 1, true, false, errp) < 0) { in amdvi_pci_realize()
1583 pci_config_set_prog_interface(pdev->config, 0); in amdvi_pci_realize()
1586 pci_set_long(pdev->config + s->capab_offset, AMDVI_CAPAB_FEATURES); in amdvi_pci_realize()
1587 pci_set_long(pdev->config + s->capab_offset + AMDVI_CAPAB_BAR_LOW, in amdvi_pci_realize()
1589 pci_set_long(pdev->config + s->capab_offset + AMDVI_CAPAB_BAR_HIGH, in amdvi_pci_realize()
1591 pci_set_long(pdev->config + s->capab_offset + AMDVI_CAPAB_RANGE, in amdvi_pci_realize()
1593 pci_set_long(pdev->config + s->capab_offset + AMDVI_CAPAB_MISC, 0); in amdvi_pci_realize()
1594 pci_set_long(pdev->config + s->capab_offset + AMDVI_CAPAB_MISC, in amdvi_pci_realize()
1662 PCIDevice *pdev = NULL; in amdvi_sysbus_realize() local
1663 int ret = pci_qdev_find_device(s->pci_id, &pdev); in amdvi_sysbus_realize()
1670 if (!object_dynamic_cast(OBJECT(pdev), TYPE_AMD_IOMMU_PCI)) { in amdvi_sysbus_realize()
1675 s->pci = AMD_IOMMU_PCI(pdev); in amdvi_sysbus_realize()