/openbmc/qemu/tests/qtest/ |
H A D | libqtest-single.h | 33 global_qtest = qtest_init(args); in qtest_start() 34 return global_qtest; in qtest_start() 44 if (!global_qtest) { in qtest_end() 47 qtest_quit(global_qtest); in qtest_end() 48 global_qtest = NULL; in qtest_end() 102 qtest_outb(global_qtest, addr, value); in outb() 114 qtest_outw(global_qtest, addr, value); in outw() 126 qtest_outl(global_qtest, addr, value); in outl() 139 return qtest_inb(global_qtest, addr); in inb() 152 return qtest_inw(global_qtest, addr); in inw() [all …]
|
H A D | npcm7xx_gpio-test.c | 246 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_level() 249 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_level() 252 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_level() 255 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_level() 269 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_rising_edge() 331 g_assert_true(qtest_get_irq(global_qtest, GPIO_IRQ(n))); in test_gpion_irq() 335 g_assert_true(qtest_get_irq(global_qtest, GPIO_IRQ(n))); in test_gpion_irq() 337 g_assert_true(qtest_get_irq(global_qtest, GPIO_IRQ(n))); in test_gpion_irq() 339 g_assert_true(qtest_get_irq(global_qtest, GPIO_IRQ(n))); in test_gpion_irq() 345 g_assert_true(qtest_get_irq(global_qtest, GPIO_IRQ(n))); in test_gpion_irq() [all …]
|
H A D | virtio-ccw-test.c | 22 global_qtest = qtest_initf("-device virtio-serial-ccw,id=vser0 " in virtconsole_nop() 29 global_qtest = qtest_initf("-device virtio-serial-ccw,id=vser0 " in virtserialport_nop() 36 global_qtest = qtest_initf("-device virtio-serial-ccw"); in virtio_serial_nop() 52 global_qtest = qtest_initf("-device virtio-rng-ccw"); in virtio_rng_nop() 58 global_qtest = qtest_initf("-device virtio-scsi-ccw"); in virtio_scsi_nop()
|
H A D | npcm7xx_timer-test.c | 233 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_enable_then_disable() 261 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_ps5() 266 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_ps5() 271 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_ps5() 299 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_ps0() 327 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_ps255() 345 g_assert_true(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_oneshot_interrupt() 372 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_pause_resume() 379 g_assert_false(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_pause_resume() 384 g_assert_true(qtest_get_irq(global_qtest, tim_timer_irq(td))); in test_pause_resume() [all …]
|
H A D | usb-hcd-xhci-test.c | 16 usb_test_hotplug(global_qtest, "xhci", "1", NULL); in test_xhci_hotplug() 21 QTestState *qts = global_qtest; in test_usb_uas_hotplug() 37 QTestState *qts = global_qtest; in test_usb_ccid_hotplug()
|
H A D | usb-hcd-uhci-test.c | 42 usb_test_hotplug(global_qtest, "uhci", "2", test_port_2); in test_uhci_hotplug() 47 QTestState *qts = global_qtest; in test_usb_storage_hotplug() 85 global_qtest = qs->qts; in main()
|
H A D | stm32l4x5_syscfg-test.c | 44 qtest_set_irq_in(global_qtest, SYSCFG, NULL, num, level); in syscfg_set_irq() 50 response = qtest_qmp(global_qtest, "{'execute': 'system_reset'}"); in system_reset() 203 qtest_irq_intercept_in(global_qtest, EXTI); in test_interrupt() 236 qtest_irq_intercept_in(global_qtest, EXTI); in test_irq_pin_multiplexer() 263 qtest_irq_intercept_in(global_qtest, EXTI); in test_irq_gpio_multiplexer()
|
H A D | virtio-serial-test.c | 23 qtest_qmp_device_add(global_qtest, "virtserialport", "hp-port", "{}"); in serial_hotplug() 24 qtest_qmp_device_del(global_qtest, "hp-port"); in serial_hotplug()
|
H A D | stm32l4x5_gpio-test.c | 127 qtest_set_irq_in(global_qtest, name, NULL, num, level); in gpio_set_irq() 136 r = qtest_qmp(global_qtest, "{ 'execute': 'qom-set', 'arguments': " in disconnect_all_pins() 150 r = qtest_qmp(global_qtest, "{ 'execute': 'qom-get', 'arguments':" in get_disconnected_pins() 174 r = qtest_qmp(global_qtest, "{'execute': 'system_reset'}"); in system_reset() 290 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_gpio_output_mode() 325 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_gpio_input_mode() 354 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_pull_up_pull_down() 384 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_push_pull() 431 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_open_drain()
|
H A D | aspeed_smc-test.c | 439 (global_qtest, "/machine/soc/fmc/ssi.0/child[0]", "write-enable")); in test_read_status_reg() 449 (global_qtest, "/machine/soc/fmc/ssi.0/child[0]", "write-enable")); in test_read_status_reg() 459 (global_qtest, "/machine/soc/fmc/ssi.0/child[0]", "write-enable")); in test_read_status_reg() 493 qtest_set_irq_in(global_qtest, in test_status_reg_write_protection() 517 qtest_set_irq_in(global_qtest, in test_status_reg_write_protection() 625 global_qtest = qtest_initf("-m 256 -machine palmetto-bmc " in main() 646 qtest_quit(global_qtest); in main()
|
H A D | tpm-tis-i2c-test.c | 53 aspeed_i2c_writeb(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, in tpm_tis_i2c_set_locty() 61 return aspeed_i2c_readb(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, reg); in tpm_tis_i2c_readb() 67 return aspeed_i2c_readw(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, reg); in tpm_tis_i2c_readw() 73 return aspeed_i2c_readl(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, reg); in tpm_tis_i2c_readl() 81 aspeed_i2c_writeb(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, reg, v); in tpm_tis_i2c_writeb() 89 aspeed_i2c_writel(global_qtest, aspeed_bus_addr, I2C_SLAVE_ADDR, reg, v); in tpm_tis_i2c_writel()
|
H A D | virtio-net-test.c | 35 QTestState *qts = global_qtest; in rx_test() 72 QTestState *qts = global_qtest; in tx_test() 102 QTestState *qts = global_qtest; in rx_stop_cont_test() 297 QTestState *qts = global_qtest; in large_tx()
|
H A D | virtio-blk-test.c | 123 QTestState *qts = global_qtest; in test_basic() 361 QTestState *qts = global_qtest; in indirect() 453 qtest_qmp_assert_success(global_qtest, in config() 479 QTestState *qts = global_qtest; in msix() 503 qtest_qmp_assert_success(global_qtest, in msix() 589 QTestState *qts = global_qtest; in idx() 756 QTestState *qts = global_qtest; in resize() 760 qtest_qmp_assert_success(global_qtest, in resize()
|
H A D | usb-hcd-ehci-test.c | 55 pcibus = qpci_new_pc(global_qtest, NULL); in test_init() 142 usb_test_hotplug(global_qtest, "ich9-ehci-1", "3", pci_ehci_port_3_hotplug); in pci_ehci_port_hotplug()
|
H A D | ipmi-kcs-test.c | 277 qtest_irq_intercept_in(global_qtest, "ioapic"); in main() 284 qtest_quit(global_qtest); in main()
|
H A D | ipmi-bt-test.c | 413 global_qtest = qtest_initf( in main() 417 qtest_irq_intercept_in(global_qtest, "ioapic"); in main() 423 qtest_quit(global_qtest); in main()
|
H A D | usb-hcd-ohci-test.c | 26 usb_test_hotplug(global_qtest, "ohci", "1", NULL); in test_ohci_hotplug()
|
H A D | fdc-test.c | 304 qtest_qmp_assert_success(global_qtest, in test_media_insert() 336 qtest_qmp_assert_success(global_qtest, in test_media_change() 620 qtest_irq_intercept_in(global_qtest, "ioapic"); in main()
|
H A D | virtio-scsi-test.c | 75 QTestState *qts = global_qtest; in virtio_scsi_do_command() 161 QTestState *qts = global_qtest; in hotplug()
|
H A D | vhost-user-blk-test.c | 70 QTestState *qts = global_qtest; in virtio_blk_request() 225 QTestState *qts = global_qtest; in test_basic() 470 QTestState *qts = global_qtest; in indirect() 559 QTestState *qts = global_qtest; in idx() 875 qtest_kill_qemu(global_qtest); in quit_storage_daemon()
|
H A D | rtl8139-test.c | 39 pcibus = qpci_new_pc(global_qtest, NULL); in get_device()
|
H A D | virtio-iommu-test.c | 180 QTestState *qts = global_qtest; in test_attach_detach() 227 QTestState *qts = global_qtest; in test_map_unmap()
|
H A D | e1000e-test.c | 193 QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */ in test_e1000e_hotplug()
|
H A D | igb-test.c | 227 QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */ in test_igb_hotplug()
|
H A D | qos-test.c | 180 obj = qos_allocate_objects(global_qtest, &alloc); in run_one_test()
|