Lines Matching refs:qts

26     return qtest_inb(bus->qts, addr);  in qpci_pc_pio_readb()
31 qtest_outb(bus->qts, addr, val); in qpci_pc_pio_writeb()
36 return qtest_inw(bus->qts, addr); in qpci_pc_pio_readw()
41 qtest_outw(bus->qts, addr, val); in qpci_pc_pio_writew()
46 return qtest_inl(bus->qts, addr); in qpci_pc_pio_readl()
51 qtest_outl(bus->qts, addr, val); in qpci_pc_pio_writel()
56 return (uint64_t)qtest_inl(bus->qts, addr) + in qpci_pc_pio_readq()
57 ((uint64_t)qtest_inl(bus->qts, addr + 4) << 32); in qpci_pc_pio_readq()
62 qtest_outl(bus->qts, addr, val & 0xffffffff); in qpci_pc_pio_writeq()
63 qtest_outl(bus->qts, addr + 4, val >> 32); in qpci_pc_pio_writeq()
68 qtest_memread(bus->qts, addr, buf, len); in qpci_pc_memread()
74 qtest_memwrite(bus->qts, addr, buf, len); in qpci_pc_memwrite()
79 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_readb()
80 return qtest_inb(bus->qts, 0xcfc); in qpci_pc_config_readb()
85 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_readw()
86 return qtest_inw(bus->qts, 0xcfc); in qpci_pc_config_readw()
91 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_readl()
92 return qtest_inl(bus->qts, 0xcfc); in qpci_pc_config_readl()
97 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_writeb()
98 qtest_outb(bus->qts, 0xcfc, value); in qpci_pc_config_writeb()
103 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_writew()
104 qtest_outw(bus->qts, 0xcfc, value); in qpci_pc_config_writew()
109 qtest_outl(bus->qts, 0xcf8, (1U << 31) | (devfn << 8) | offset); in qpci_pc_config_writel()
110 qtest_outl(bus->qts, 0xcfc, value); in qpci_pc_config_writel()
123 void qpci_init_pc(QPCIBusPC *qpci, QTestState *qts, QGuestAllocator *alloc) in qpci_init_pc() argument
125 assert(qts); in qpci_init_pc()
151 qpci->bus.qts = qts; in qpci_init_pc()
160 QPCIBus *qpci_new_pc(QTestState *qts, QGuestAllocator *alloc) in qpci_new_pc() argument
163 qpci_init_pc(qpci, qts, alloc); in qpci_new_pc()
180 void qpci_unplug_acpi_device_test(QTestState *qts, const char *id, uint8_t slot) in qpci_unplug_acpi_device_test() argument
182 qtest_qmp_device_del_send(qts, id); in qpci_unplug_acpi_device_test()
184 qtest_outl(qts, ACPI_PCIHP_ADDR + PCI_EJ_BASE, 1 << slot); in qpci_unplug_acpi_device_test()
186 qtest_qmp_eventwait(qts, "DEVICE_DELETED"); in qpci_unplug_acpi_device_test()