Searched refs:qpci_config_readw (Results 1 – 8 of 8) sorted by relevance
/openbmc/qemu/tests/qtest/libqos/ |
H A D | pci.c | 40 qpci_config_readw(dev, PCI_VENDOR_ID) != vendor_id) { in qpci_device_foreach() 46 qpci_config_readw(dev, PCI_DEVICE_ID) != device_id) { in qpci_device_foreach() 85 if (qpci_config_readw(dev, PCI_VENDOR_ID) == 0xFFFF) { in qpci_device_find() 98 vendor_id = qpci_config_readw(dev, PCI_VENDOR_ID); in qpci_device_init() 99 device_id = qpci_config_readw(dev, PCI_DEVICE_ID); in qpci_device_init() 109 if (qpci_config_readw(dev, PCI_VENDOR_ID) != PCI_VENDOR_ID_REDHAT) { in qpci_find_resource_reserve_capability() 113 device_id = qpci_config_readw(dev, PCI_DEVICE_ID); in qpci_find_resource_reserve_capability() 146 class = qpci_config_readw(dev, PCI_CLASS_DEVICE); in qpci_secondary_buses_rec() 159 class = qpci_config_readw(dev, PCI_CLASS_DEVICE); in qpci_secondary_buses_rec() 226 cmd = qpci_config_readw(dev, PCI_COMMAND); in qpci_device_enable() [all …]
|
H A D | virtio-pci-modern.c | 318 vendor_id = qpci_config_readw(dev->pdev, PCI_VENDOR_ID); in probe_device_type() 327 device_id = qpci_config_readw(dev->pdev, PCI_DEVICE_ID); in probe_device_type() 341 dev->vdev.device_type = qpci_config_readw(dev->pdev, PCI_SUBSYSTEM_ID); in probe_device_type()
|
H A D | pci.h | 98 uint16_t qpci_config_readw(QPCIDevice *dev, uint8_t offset);
|
H A D | virtio-pci.c | 394 dev->vdev.device_type = qpci_config_readw(dev->pdev, PCI_SUBSYSTEM_ID); in qvirtio_pci_init_legacy()
|
/openbmc/qemu/tests/qtest/ |
H A D | i440fx-test.c | 56 g_assert_cmpint(qpci_config_readw(dev, PCI_VENDOR_ID), ==, 0x8086); in test_i440fx_defaults() 58 g_assert_cmpint(qpci_config_readw(dev, PCI_DEVICE_ID), ==, 0x1237); in test_i440fx_defaults() 61 g_assert_cmpint(qpci_config_readw(dev, PCI_COMMAND), ==, 0x0006); in test_i440fx_defaults() 63 g_assert_cmpint(qpci_config_readw(dev, PCI_STATUS), ==, 0x0280); in test_i440fx_defaults() 67 g_assert_cmpint(qpci_config_readw(dev, PCI_CLASS_DEVICE), ==, 0x0600); in test_i440fx_defaults() 76 value = qpci_config_readw(dev, 0x50); /* PMCCFG */ in test_i440fx_defaults() 94 g_assert_cmpint(qpci_config_readw(dev, 0x55), ==, 0x0000); /* DRT */ in test_i440fx_defaults()
|
H A D | riscv-iommu-test.c | 46 vendorid = qpci_config_readw(dev, PCI_VENDOR_ID); in test_pci_config() 47 deviceid = qpci_config_readw(dev, PCI_DEVICE_ID); in test_pci_config() 48 classid = qpci_config_readw(dev, PCI_CLASS_DEVICE); in test_pci_config()
|
H A D | ahci-test.c | 255 data = qpci_config_readw(ahci->dev, PCI_COMMAND); in ahci_test_pci_spec() 267 data = qpci_config_readw(ahci->dev, PCI_STATUS); in ahci_test_pci_spec() 334 data = qpci_config_readw(ahci->dev, datal); in ahci_test_pci_spec() 384 ahci_test_pci_caps(ahci, qpci_config_readw(ahci->dev, next), next); in ahci_test_pci_caps() 399 dataw = qpci_config_readw(ahci->dev, offset + 2); in ahci_test_satacap() 403 datal = qpci_config_readw(ahci->dev, offset + 4); in ahci_test_satacap() 433 dataw = qpci_config_readw(ahci->dev, offset + PCI_MSI_FLAGS); in ahci_test_msicap() 445 dataw = qpci_config_readw(ahci->dev, offset + PCI_MSI_DATA_64); in ahci_test_msicap() 449 dataw = qpci_config_readw(ahci->dev, offset + PCI_MSI_DATA_32); in ahci_test_msicap() 463 dataw = qpci_config_readw(ahci->dev, offset + PCI_PM_PMC); in ahci_test_pmcap() [all …]
|
H A D | ide-test.c | 168 vendor_id = qpci_config_readw(dev, PCI_VENDOR_ID); in get_pci_device() 169 device_id = qpci_config_readw(dev, PCI_DEVICE_ID); in get_pci_device()
|