/openbmc/qemu/tests/qtest/ |
H A D | libqtest-single.h | 17 QTestState *global_qtest __attribute__((common, weak)); variable 19 __declspec(selectany) QTestState *global_qtest; variable 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() 66 response = qtest_vqmp(global_qtest, fmt, ap); in qmp() 79 return qtest_qmp_eventwait(global_qtest, event); in qmp_eventwait() 90 return qtest_get_irq(global_qtest, num); in get_irq() [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() 272 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_rising_edge() 275 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_rising_edge() 278 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_rising_edge() 281 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_rising_edge() 295 g_assert_false(qtest_get_irq(global_qtest, GPIO_IRQ(0))); in test_events_both_edges() [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 | stm32l4x5_syscfg-test.c | 47 qtest_set_irq_in(global_qtest, SOC, NULL, num, level); in syscfg_set_irq() 53 response = qtest_qmp(global_qtest, "{'execute': 'system_reset'}"); in system_reset() 206 qtest_irq_intercept_in(global_qtest, EXTI); in test_interrupt() 239 qtest_irq_intercept_in(global_qtest, EXTI); in test_irq_pin_multiplexer() 266 qtest_irq_intercept_in(global_qtest, EXTI); in test_irq_gpio_multiplexer() 309 g_assert_cmpuint(get_clock_period(global_qtest, SYSCFG_CLK), ==, 0); in test_clock_enable() 314 g_assert_cmpuint(get_clock_period(global_qtest, SYSCFG_CLK), ==, in test_clock_enable()
|
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_gpio-test.c | 128 qtest_set_irq_in(global_qtest, name, NULL, num, level); in gpio_set_irq() 137 r = qtest_qmp(global_qtest, "{ 'execute': 'qom-set', 'arguments': " in disconnect_all_pins() 151 r = qtest_qmp(global_qtest, "{ 'execute': 'qom-get', 'arguments':" in get_disconnected_pins() 175 r = qtest_qmp(global_qtest, "{'execute': 'system_reset'}"); in system_reset() 291 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_gpio_output_mode() 326 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_gpio_input_mode() 355 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_pull_up_pull_down() 385 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_push_pull() 432 qtest_irq_intercept_in(global_qtest, SYSCFG); in test_open_drain() 521 g_assert_cmpuint(get_clock_period(global_qtest, path), ==, 0); in test_clock_enable() [all …]
|
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 | 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-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 | ipmi-kcs-test.c | 277 qtest_irq_intercept_in(global_qtest, "ioapic"); in main() 284 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 | 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 | virtio-scsi-test.c | 75 QTestState *qts = global_qtest; in virtio_scsi_do_command() 161 QTestState *qts = global_qtest; in hotplug()
|
H A D | cmsdk-apb-watchdog-test.c | 204 system_reset(global_qtest); in test_watchdog_reset() 350 system_reset(global_qtest); in test_watchdog_inten_luminary()
|
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 | rtl8139-test.c | 39 pcibus = qpci_new_pc(global_qtest, NULL); in get_device()
|
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 | e1000e-test.c | 193 QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */ in test_e1000e_hotplug()
|
H A D | qos-test.c | 180 obj = qos_allocate_objects(global_qtest, &alloc); in run_one_test()
|