Home
last modified time | relevance | path

Searched refs:QTestState (Results 1 – 25 of 173) sorted by relevance

1234567

/openbmc/qemu/tests/qtest/
H A Dlibqtest.h24 typedef struct QTestState QTestState; typedef
35 QTestState *qtest_initf(const char *fmt, ...) G_GNUC_PRINTF(1, 2);
47 QTestState *qtest_vinitf(const char *fmt, va_list ap) G_GNUC_PRINTF(1, 0);
56 QTestState *qtest_init(const char *extra_args);
69 QTestState *qtest_init_with_env(const char *var, const char *extra_args);
78 QTestState *qtest_init_without_qmp_handshake(const char *extra_args);
89 QTestState *qtest_init_with_serial(const char *extra_args, int *sock_fd);
98 void qtest_wait_qemu(QTestState *s);
109 void qtest_kill_qemu(QTestState *s);
117 void qtest_quit(QTestState *s);
[all …]
H A Dmigration-helpers.h25 bool migrate_watch_for_events(QTestState *who, const char *name,
29 void migrate_qmp(QTestState *who, QTestState *to, const char *uri,
33 void migrate_incoming_qmp(QTestState *who, const char *uri,
37 void migrate_qmp_fail(QTestState *who, const char *uri,
40 void migrate_set_capability(QTestState *who, const char *capability,
43 QDict *migrate_query(QTestState *who);
44 QDict *migrate_query_not_failed(QTestState *who);
46 void wait_for_migration_status(QTestState *who,
49 void wait_for_migration_complete(QTestState *who);
51 void wait_for_migration_fail(QTestState *from, bool allow_active);
[all …]
H A Dmigration-test.c225 static void wait_for_stop(QTestState *who, QTestMigrationState *state) in wait_for_stop()
232 static void wait_for_resume(QTestState *who, QTestMigrationState *state) in wait_for_resume()
239 static void wait_for_suspend(QTestState *who, QTestMigrationState *state) in wait_for_suspend()
251 static int64_t read_ram_property_int(QTestState *who, const char *property) in read_ram_property_int()
268 static int64_t read_migrate_property_int(QTestState *who, const char *property) in read_migrate_property_int()
279 static uint64_t get_migration_pass(QTestState *who) in get_migration_pass()
284 static void read_blocktime(QTestState *who) in read_blocktime()
296 static void wait_for_migration_pass(QTestState *who) in wait_for_migration_pass()
308 static void check_guests_ram(QTestState *who) in check_guests_ram()
363 static long long migrate_get_parameter_int(QTestState *who, in migrate_get_parameter_int()
[all …]
H A Dlibqtest.c58 typedef void (*QTestSendFn)(QTestState *s, const char *buf);
60 typedef GString* (*QTestRecvFn)(QTestState *);
74 struct QTestState struct
97 static int qtest_query_target_endianness(QTestState *s); argument
99 static void qtest_client_socket_send(QTestState*, const char *buf);
102 static GString *qtest_client_socket_recv_line(QTestState *);
104 static void qtest_client_set_tx_handler(QTestState *s, QTestSendFn send);
105 static void qtest_client_set_rx_handler(QTestState *s, QTestRecvFn recv);
150 pid_t qtest_pid(QTestState *s) in qtest_pid()
155 bool qtest_probe_child(QTestState *s) in qtest_probe_child()
[all …]
H A Ddrive_del-test.c21 static bool look_for_drive0(QTestState *qts, const char *command, const char *key) in look_for_drive0()
58 static bool has_drive(QTestState *qts) in has_drive()
63 static bool has_blockdev(QTestState *qts) in has_blockdev()
68 static void blockdev_add_with_media(QTestState *qts) in blockdev_add_with_media()
90 static void drive_add(QTestState *qts) in drive_add()
99 static void drive_add_with_media(QTestState *qts) in drive_add_with_media()
110 static void drive_del(QTestState *qts) in drive_del()
139 static void device_add(QTestState *qts) in device_add()
155 static void device_del(QTestState *qts, bool and_reset) in device_del()
173 QTestState *qts; in test_drive_without_dev()
[all …]
H A Dpnv-xive2-common.h91 extern uint64_t pnv_xive_xscom_read(QTestState *qts, uint32_t reg);
92 extern void pnv_xive_xscom_write(QTestState *qts, uint32_t reg, uint64_t val);
94 extern uint8_t get_esb(QTestState *qts, uint32_t index, uint8_t page,
96 extern void set_esb(QTestState *qts, uint32_t index, uint8_t page,
98 extern void get_nvp(QTestState *qts, uint32_t index, Xive2Nvp* nvp);
99 extern void set_nvp(QTestState *qts, uint32_t index, uint8_t first);
100 extern void get_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair);
101 extern void set_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair);
102 extern void set_nvg(QTestState *qts, uint32_t index, uint8_t next);
103 extern void set_eas(QTestState *qts, uint32_t index, uint32_t end_index,
[all …]
H A Dtpm-util.h23 typedef void (tx_func)(QTestState *s,
27 void tpm_util_crb_transfer(QTestState *s,
31 void tpm_util_startup(QTestState *s, tx_func *tx);
32 void tpm_util_pcrextend(QTestState *s, tx_func *tx);
33 void tpm_util_pcrread(QTestState *s, tx_func *tx,
42 void tpm_util_migrate(QTestState *who, const char *uri);
44 void tpm_util_migration_start_qemu(QTestState **src_qemu,
45 QTestState **dst_qemu,
52 void tpm_util_wait_for_migration_complete(QTestState *who);
H A Ddevice-plug-test.c18 static void system_reset(QTestState *qtest) in system_reset()
27 static void wait_device_deleted_event(QTestState *qtest, const char *id) in wait_device_deleted_event()
53 static void process_device_remove(QTestState *qtest, const char *id) in process_device_remove()
67 QTestState *qtest; in test_pci_unplug_request()
90 QTestState *qtest; in test_q35_pci_unplug_request()
109 QTestState *qtest; in test_pci_unplug_json_request()
133 QTestState *qtest; in test_q35_pci_unplug_json_request()
159 QTestState *qtest; in test_ccw_unplug()
176 QTestState *qtest; in test_spapr_cpu_unplug_request()
189 QTestState *qtest; in test_spapr_memory_unplug_request()
[all …]
H A Daspeed_fsi-test.c44 static uint32_t aspeed_fsi_readl(QTestState *s, uint32_t reg) in aspeed_fsi_readl()
49 static void aspeed_fsi_writel(QTestState *s, uint32_t reg, uint32_t val) in aspeed_fsi_writel()
55 static void test_fsi_setup(QTestState *s, uint32_t base_addr) in test_fsi_setup()
87 static void test_fsi_reg_change(QTestState *s, uint32_t reg, uint32_t newval) in test_fsi_reg_change()
103 QTestState *s = (QTestState *)data; in test_fsi0_master_regs()
118 QTestState *s = (QTestState *)data; in test_fsi1_master_regs()
133 QTestState *s = (QTestState *)data; in test_fsi0_getcfam_addr0()
157 QTestState *s = (QTestState *)data; in test_fsi1_getcfam_addr0()
181 QTestState *s; in main()
H A Ddm163-test.c33 static void rise_gpio_pin_dck(QTestState *qts) in rise_gpio_pin_dck()
41 static void lower_gpio_pin_dck(QTestState *qts) in lower_gpio_pin_dck()
49 static void rise_gpio_pin_selbk(QTestState *qts) in rise_gpio_pin_selbk()
57 static void lower_gpio_pin_selbk(QTestState *qts) in lower_gpio_pin_selbk()
65 static void rise_gpio_pin_lat_b(QTestState *qts) in rise_gpio_pin_lat_b()
73 static void lower_gpio_pin_lat_b(QTestState *qts) in lower_gpio_pin_lat_b()
81 static void rise_gpio_pin_rst_b(QTestState *qts) in rise_gpio_pin_rst_b()
89 static void lower_gpio_pin_rst_b(QTestState *qts) in lower_gpio_pin_rst_b()
97 static void rise_gpio_pin_sin(QTestState *qts) in rise_gpio_pin_sin()
105 static void lower_gpio_pin_sin(QTestState *qts) in lower_gpio_pin_sin()
[all …]
H A Dfw_cfg-test.c29 QTestState *s; in test_fw_cfg_signature()
46 QTestState *s; in test_fw_cfg_id()
62 QTestState *s; in test_fw_cfg_uuid()
84 QTestState *s; in test_fw_cfg_ram_size()
98 QTestState *s; in test_fw_cfg_nographic()
112 QTestState *s; in test_fw_cfg_nb_cpus()
126 QTestState *s; in test_fw_cfg_max_cpus()
139 QTestState *s; in test_fw_cfg_numa()
168 QTestState *s; in test_fw_cfg_boot_menu()
181 QTestState *s; in test_fw_cfg_reboot_timeout()
[all …]
H A Dnpcm7xx_pwm-test.c221 static uint64_t pwm_qom_get(QTestState *qts, const char *path, const char *name) in pwm_qom_get()
239 static uint64_t pwm_get_freq(QTestState *qts, int module_index, int pwm_index) in pwm_get_freq()
250 static uint64_t pwm_get_duty(QTestState *qts, int module_index, int pwm_index) in pwm_get_duty()
261 static void mft_qom_set(QTestState *qts, int index, const char *name, in mft_qom_set()
288 static uint64_t read_pclk(QTestState *qts, bool mft) in read_pclk()
337 static uint64_t pwm_compute_freq(QTestState *qts, uint32_t ppr, uint32_t csr, in pwm_compute_freq()
363 static uint32_t pwm_read(QTestState *qts, const TestData *td, unsigned offset) in pwm_read()
368 static void pwm_write(QTestState *qts, const TestData *td, unsigned offset, in pwm_write()
374 static uint8_t mft_readb(QTestState *qts, int index, unsigned offset) in mft_readb()
379 static uint16_t mft_readw(QTestState *qts, int index, unsigned offset) in mft_readw()
[all …]
H A Dstm32l4x5_usart-test.c53 static bool check_nvic_pending(QTestState *qts, unsigned int n) in check_nvic_pending()
61 static bool clear_nvic_pending(QTestState *qts, unsigned int n) in clear_nvic_pending()
75 static bool usart_wait_for_flag(QTestState *qts, uint32_t event_addr, in usart_wait_for_flag()
88 static void usart_receive_string(QTestState *qts, int sock_fd, const char *in, in usart_receive_string()
102 static void usart_send_string(QTestState *qts, const char *in) in usart_send_string()
114 static void init_clocks(QTestState *qts) in init_clocks()
173 static void init_uart(QTestState *qts) in init_uart()
202 QTestState *qts = qtest_init("-M b-l475e-iot01a"); in test_write_read()
216 QTestState *qts = qtest_init_with_serial("-M b-l475e-iot01a", &sock_fd); in test_receive_char()
246 QTestState *qts = qtest_init_with_serial("-M b-l475e-iot01a", &sock_fd); in test_send_char()
[all …]
H A Dqtest_aspeed.h26 uint8_t aspeed_i2c_readb(QTestState *s,
28 uint16_t aspeed_i2c_readw(QTestState *s,
30 uint32_t aspeed_i2c_readl(QTestState *s,
32 void aspeed_i2c_writeb(QTestState *s, uint32_t baseaddr, uint8_t slave_addr,
34 void aspeed_i2c_writew(QTestState *s, uint32_t baseaddr, uint8_t slave_addr,
36 void aspeed_i2c_writel(QTestState *s, uint32_t baseaddr, uint8_t slave_addr,
H A Dpnv-xive2-common.c25 uint64_t pnv_xive_xscom_read(QTestState *qts, uint32_t reg) in pnv_xive_xscom_read()
30 void pnv_xive_xscom_write(QTestState *qts, uint32_t reg, uint64_t val) in pnv_xive_xscom_write()
35 static void xive_get_struct(QTestState *qts, uint64_t src, void *dest, in xive_get_struct()
46 static void xive_copy_struct(QTestState *qts, void *src, uint64_t dest, in xive_copy_struct()
62 uint8_t get_esb(QTestState *qts, uint32_t index, uint8_t page, in get_esb()
74 void set_esb(QTestState *qts, uint32_t index, uint8_t page, in set_esb()
86 void get_nvp(QTestState *qts, uint32_t index, Xive2Nvp* nvp) in get_nvp()
92 void set_nvp(QTestState *qts, uint32_t index, uint8_t first) in set_nvp()
118 void get_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair) in get_cl_pair()
124 void set_cl_pair(QTestState *qts, Xive2Nvp *nvp, uint8_t *cl_pair) in set_cl_pair()
[all …]
H A Dqtest_aspeed.c18 static void aspeed_i2c_startup(QTestState *s, uint32_t baseaddr, in aspeed_i2c_startup()
42 static uint32_t aspeed_i2c_read_n(QTestState *s, in aspeed_i2c_read_n()
63 uint32_t aspeed_i2c_readl(QTestState *s, in aspeed_i2c_readl()
69 uint16_t aspeed_i2c_readw(QTestState *s, in aspeed_i2c_readw()
75 uint8_t aspeed_i2c_readb(QTestState *s, in aspeed_i2c_readb()
81 static void aspeed_i2c_write_n(QTestState *s, in aspeed_i2c_write_n()
98 void aspeed_i2c_writel(QTestState *s, in aspeed_i2c_writel()
105 void aspeed_i2c_writew(QTestState *s, in aspeed_i2c_writew()
112 void aspeed_i2c_writeb(QTestState *s, in aspeed_i2c_writeb()
H A Dboot-order-test.c27 uint64_t (*read_boot_order)(QTestState *), in test_a_boot_order() argument
32 QTestState *qts; in test_a_boot_order()
55 uint64_t (*read_boot_order)(QTestState *), in test_boot_orders() argument
68 static uint8_t read_mc146818(QTestState *qts, uint16_t port, uint8_t reg) in read_mc146818()
74 static uint64_t read_boot_order_pc(QTestState *qts) in read_boot_order_pc()
113 static uint64_t read_boot_order_pmac(QTestState *qts) in read_boot_order_pmac()
138 static uint64_t read_boot_order_sun4m(QTestState *qts) in read_boot_order_sun4m()
150 static uint64_t read_boot_order_sun4u(QTestState *qts) in read_boot_order_sun4u()
H A Dmigration-helpers.c84 static SocketAddressList *migrate_get_socket_address(QTestState *who) in migrate_get_socket_address()
103 migrate_get_connect_uri(QTestState *who) in migrate_get_connect_uri()
116 migrate_get_connect_qdict(QTestState *who) in migrate_get_connect_qdict()
128 static void migrate_set_ports(QTestState *to, QList *channel_list) in migrate_set_ports()
151 bool migrate_watch_for_events(QTestState *who, const char *name, in migrate_watch_for_events()
170 void migrate_qmp_fail(QTestState *who, const char *uri, in migrate_qmp_fail()
204 void migrate_qmp(QTestState *who, QTestState *to, const char *uri, in migrate_qmp()
235 void migrate_set_capability(QTestState *who, const char *capability, in migrate_set_capability()
246 void migrate_incoming_qmp(QTestState *to, const char *uri, const char *fmt, ...) in migrate_incoming_qmp()
279 QDict *migrate_query(QTestState *who) in migrate_query()
[all …]
H A Dm48t59-test.c34 static uint8_t cmos_read_mmio(QTestState *s, uint8_t reg) in cmos_read_mmio()
39 static void cmos_write_mmio(QTestState *s, uint8_t reg, uint8_t val) in cmos_write_mmio()
46 static uint8_t cmos_read_ioio(QTestState *s, uint8_t reg) in cmos_read_ioio()
52 static void cmos_write_ioio(QTestState *s, uint8_t reg, uint8_t val) in cmos_write_ioio()
58 static uint8_t cmos_read(QTestState *s, uint8_t reg) in cmos_read()
67 static void cmos_write(QTestState *s, uint8_t reg, uint8_t val) in cmos_write()
110 static void cmos_get_date_time(QTestState *s, struct tm *date) in cmos_get_date_time()
147 static QTestState *m48t59_qtest_start(void) in m48t59_qtest_start()
158 QTestState *qts = m48t59_qtest_start(); in bcd_check_time()
220 QTestState *s = m48t59_qtest_start(); in fuzz_registers()
H A Dam53c974-test.c17 QTestState *s = qtest_init( in test_cmdfifo_underflow_ok()
34 QTestState *s = qtest_init( in test_cmdfifo_underflow2_ok()
82 QTestState *s = qtest_init( in test_cmdfifo_overflow_ok()
99 QTestState *s = qtest_init( in test_cmdfifo_overflow2_ok()
115 QTestState *s = qtest_init( in test_fifo_pop_buf()
137 QTestState *s = qtest_init( in test_target_selected_ok()
155 QTestState *s = qtest_init( in test_fifo_underflow_on_write_ok()
172 QTestState *s = qtest_init( in test_cancelled_request_ok()
194 QTestState *s = qtest_init( in test_inflight_cancel_ok()
228 QTestState *s = qtest_init( in test_reset_before_transfer_ok()
H A Dnpcm7xx_adc-test.c98 static uint32_t adc_read_con(QTestState *qts, const ADC *adc) in adc_read_con()
103 static void adc_write_con(QTestState *qts, const ADC *adc, uint32_t value) in adc_write_con()
108 static uint32_t adc_read_data(QTestState *qts, const ADC *adc) in adc_read_data()
119 static void adc_qom_set(QTestState *qts, const ADC *adc, in adc_qom_set()
135 static void adc_write_input(QTestState *qts, const ADC *adc, in adc_write_input()
144 static void adc_write_vref(QTestState *qts, const ADC *adc, uint32_t value) in adc_write_vref()
162 static uint32_t adc_prescaler(QTestState *qts, const ADC *adc) in adc_prescaler()
175 static void adc_wait_conv_finished(QTestState *qts, const ADC *adc, in adc_wait_conv_finished()
198 QTestState *qts = qtest_init("-machine quanta-gsj"); in test_init()
209 QTestState *qts = qtest_init("-machine quanta-gsj"); in test_convert_internal()
[all …]
H A Dpnv-xive2-test.c21 static void set_table(QTestState *qts, uint64_t type, uint64_t addr) in set_table()
64 static void set_tima8(QTestState *qts, uint32_t pir, uint32_t offset, in set_tima8()
73 static void set_tima32(QTestState *qts, uint32_t pir, uint32_t offset, in set_tima32()
82 static uint8_t get_tima8(QTestState *qts, uint32_t pir, uint32_t offset) in get_tima8()
90 static uint16_t get_tima16(QTestState *qts, uint32_t pir, uint32_t offset) in get_tima16()
98 static uint32_t get_tima32(QTestState *qts, uint32_t pir, uint32_t offset) in get_tima32()
106 static void reset_pool_threads(QTestState *qts) in reset_pool_threads()
120 static void reset_hw_threads(QTestState *qts) in reset_hw_threads()
143 static void reset_state(QTestState *qts) in reset_state()
152 static void init_xive(QTestState *qts) in init_xive()
[all …]
H A Dwdt_ib700-test.c15 static void qmp_check_no_event(QTestState *s) in qmp_check_no_event()
22 static QDict *ib700_program_and_wait(QTestState *s) in ib700_program_and_wait()
60 QTestState *s = qtest_init("-watchdog-action pause -device ib700"); in ib700_pause()
73 QTestState *s = qtest_init("-watchdog-action reset -device ib700"); in ib700_reset()
86 QTestState *s; in ib700_shutdown()
100 QTestState *s = qtest_init("-watchdog-action none -device ib700"); in ib700_none()
/openbmc/qemu/tests/qtest/fuzz/
H A Dqtest_wrappers.c26 WRAP(uint8_t , qtest_inb(QTestState *s, uint16_t addr)) in WRAP()
27 WRAP(uint16_t , qtest_inw(QTestState *s, uint16_t addr)) in WRAP()
28 WRAP(uint32_t , qtest_inl(QTestState *s, uint16_t addr)) in WRAP()
29 WRAP(void , qtest_outb(QTestState *s, uint16_t addr, uint8_t value)) in WRAP()
30 WRAP(void , qtest_outw(QTestState *s, uint16_t addr, uint16_t value)) in WRAP()
31 WRAP(void , qtest_outl(QTestState *s, uint16_t addr, uint32_t value)) in WRAP()
32 WRAP(uint8_t , qtest_readb(QTestState *s, uint64_t addr)) in WRAP()
33 WRAP(uint16_t , qtest_readw(QTestState *s, uint64_t addr)) in WRAP()
34 WRAP(uint32_t , qtest_readl(QTestState *s, uint64_t addr)) in WRAP()
35 WRAP(uint64_t , qtest_readq(QTestState *s, uint64_t addr)) in WRAP()
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dvirtio.h117 void qvirtio_wait_queue_isr(QTestState *qts, QVirtioDevice *d,
119 uint8_t qvirtio_wait_status_byte_no_isr(QTestState *qts, QVirtioDevice *d,
123 void qvirtio_wait_used_elem(QTestState *qts, QVirtioDevice *d,
134 void qvring_init(QTestState *qts, const QGuestAllocator *alloc, QVirtQueue *vq,
136 QVRingIndirectDesc *qvring_indirect_desc_setup(QTestState *qs, QVirtioDevice *d,
139 void qvring_indirect_desc_add(QVirtioDevice *d, QTestState *qts,
142 uint32_t qvirtqueue_add(QTestState *qts, QVirtQueue *vq, uint64_t data,
144 uint32_t qvirtqueue_add_indirect(QTestState *qts, QVirtQueue *vq,
146 void qvirtqueue_kick(QTestState *qts, QVirtioDevice *d, QVirtQueue *vq,
148 bool qvirtqueue_get_buf(QTestState *qts, QVirtQueue *vq, uint32_t *desc_idx,
[all …]

1234567