Home
last modified time | relevance | path

Searched refs:global_qtest (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/qemu/tests/qtest/
H A Dlibqtest-single.h33 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 Dnpcm7xx_gpio-test.c246 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 Dvirtio-ccw-test.c22 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 Dnpcm7xx_timer-test.c233 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 Dusb-hcd-xhci-test.c16 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 Dusb-hcd-uhci-test.c42 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 Dstm32l4x5_syscfg-test.c44 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 Dvirtio-serial-test.c23 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 Dstm32l4x5_gpio-test.c127 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 Daspeed_smc-test.c439 (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 Dtpm-tis-i2c-test.c53 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 Dvirtio-net-test.c35 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 Dvirtio-blk-test.c123 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 Dusb-hcd-ehci-test.c55 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 Dipmi-kcs-test.c277 qtest_irq_intercept_in(global_qtest, "ioapic"); in main()
284 qtest_quit(global_qtest); in main()
H A Dipmi-bt-test.c413 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 Dusb-hcd-ohci-test.c26 usb_test_hotplug(global_qtest, "ohci", "1", NULL); in test_ohci_hotplug()
H A Dfdc-test.c304 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 Dvirtio-scsi-test.c75 QTestState *qts = global_qtest; in virtio_scsi_do_command()
161 QTestState *qts = global_qtest; in hotplug()
H A Dvhost-user-blk-test.c70 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 Drtl8139-test.c39 pcibus = qpci_new_pc(global_qtest, NULL); in get_device()
H A Dvirtio-iommu-test.c180 QTestState *qts = global_qtest; in test_attach_detach()
227 QTestState *qts = global_qtest; in test_map_unmap()
H A De1000e-test.c193 QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */ in test_e1000e_hotplug()
H A Digb-test.c227 QTestState *qts = global_qtest; /* TODO: get rid of global_qtest here */ in test_igb_hotplug()
H A Dqos-test.c180 obj = qos_allocate_objects(global_qtest, &alloc); in run_one_test()

12