/qemu/tests/qtest/ |
H A D | aspeed-smc-utils.c | 211 const AspeedSMCTestData *test_data = (const AspeedSMCTestData *)data; in aspeed_smc_test_read_jedec() local 214 spi_conf(test_data, 1 << (CONF_ENABLE_W0 + test_data->cs)); in aspeed_smc_test_read_jedec() 216 spi_ctrl_start_user(test_data); in aspeed_smc_test_read_jedec() 217 flash_writeb(test_data, 0, JEDEC_READ); in aspeed_smc_test_read_jedec() 218 jedec |= flash_readb(test_data, 0) << 16; in aspeed_smc_test_read_jedec() 219 jedec |= flash_readb(test_data, 0) << 8; in aspeed_smc_test_read_jedec() 220 jedec |= flash_readb(test_data, 0); in aspeed_smc_test_read_jedec() 221 spi_ctrl_stop_user(test_data); in aspeed_smc_test_read_jedec() 223 flash_reset(test_data); in aspeed_smc_test_read_jedec() 225 g_assert_cmphex(jedec, ==, test_data->jedec_id); in aspeed_smc_test_read_jedec() [all …]
|
H A D | bios-tables-test.c | 105 } test_data; typedef 116 static GArray *load_expected_aml(test_data *data); 140 static void free_test_data(test_data *data) in free_test_data() 154 static void test_acpi_rsdp_table(test_data *data) in test_acpi_rsdp_table() 175 static void test_acpi_rxsdt_table(test_data *data) in test_acpi_rxsdt_table() 204 static void test_acpi_fadt_table(test_data *data) in test_acpi_fadt_table() 247 static void dump_aml_files(test_data *data, bool rebuild) in dump_aml_files() 252 test_data exp_data = {}; in dump_aml_files() 383 static GArray *load_expected_aml(test_data *data) in load_expected_aml() 456 static void test_acpi_asl(test_data *data) in test_acpi_asl() [all …]
|
H A D | npcm7xx_timer-test.c | 190 static void test_reset(gconstpointer test_data) in test_reset() argument 192 const TestData *td = test_data; in test_reset() 204 static void test_reset_overrides_enable(gconstpointer test_data) in test_reset_overrides_enable() argument 206 const TestData *td = test_data; in test_reset_overrides_enable() 219 static void test_oneshot_enable_then_disable(gconstpointer test_data) in test_oneshot_enable_then_disable() argument 221 const TestData *td = test_data; in test_oneshot_enable_then_disable() 237 static void test_oneshot_ps5(gconstpointer test_data) in test_oneshot_ps5() argument 239 const TestData *td = test_data; in test_oneshot_ps5() 275 static void test_oneshot_ps0(gconstpointer test_data) in test_oneshot_ps0() argument 277 const TestData *td = test_data; in test_oneshot_ps0() [all …]
|
H A D | npcm7xx_emc-test.c | 341 static void test_init(gconstpointer test_data) in test_init() argument 343 const TestData *td = test_data; in test_init() 498 const char *test_data, int test_size) in emc_send_verify1() argument 528 g_assert_cmpmem(buffer, ret, test_data, test_size); in emc_send_verify1() 740 char test_data[PTLE_DATA_LEN]; in emc_test_ptle() local 741 int len = htonl(sizeof(test_data)); in emc_test_ptle() 747 .iov_base = (char *) test_data, in emc_test_ptle() 748 .iov_len = sizeof(test_data), in emc_test_ptle() 751 memset(test_data, 42, sizeof(test_data)); in emc_test_ptle() 762 ret = iov_send(fd, iov, 2, 0, sizeof(len) + sizeof(test_data)); in emc_test_ptle() [all …]
|
H A D | stm32l4x5_gpio-test.c | 86 static inline void *test_data(uint32_t gpio_addr, uint8_t pin) in test_data() function 537 test_data(GPIO_C, 5), in main() 540 test_data(GPIO_H, 3), in main() 543 test_data(GPIO_D, 6), in main() 546 test_data(GPIO_C, 10), in main() 549 test_data(GPIO_B, 5), in main() 552 test_data(GPIO_F, 1), in main() 555 test_data(GPIO_G, 6), in main() 558 test_data(GPIO_H, 3), in main() 561 test_data(GPIO_C, 4), in main() [all …]
|
H A D | npcm7xx_pwm-test.c | 555 static void test_init(gconstpointer test_data) in test_init() argument 557 const TestData *td = test_data; in test_init() 569 static void test_oneshot(gconstpointer test_data) in test_oneshot() argument 571 const TestData *td = test_data; in test_oneshot() 600 static void test_toggle(gconstpointer test_data) in test_toggle() argument 602 const TestData *td = test_data; in test_toggle()
|
H A D | npcm_gmac-test.c | 195 static void test_init(gconstpointer test_data) in test_init() argument 197 const TestData *td = test_data; in test_init()
|
H A D | npcm7xx_gpio-test.c | 310 static void test_gpion_irq(gconstpointer test_data) in test_gpion_irq() argument 312 intptr_t n = (intptr_t)test_data; in test_gpion_irq()
|
H A D | i440fx-test.c | 361 gconstpointer test_data)) in add_firmware_test() argument
|
/qemu/tests/unit/ |
H A D | test-crypto-der.c | 209 const uint8_t *test_data; member 233 const QCryptoAns1DecoderTestData *test_data = in test_ans1() local 237 ctx[seq_depth].data = test_data->test_data; in test_ans1() 238 ctx[seq_depth].dlen = test_data->test_data_len; in test_ans1() 243 &test_data->checker[checker_idx++]; in test_ans1() 267 static QCryptoAns1DecoderTestData test_data[] = { variable 270 .test_data = test_rsa512_priv_key, 297 .test_data = test_rsa2048_priv_key, 324 .test_data = test_ecdsa_p192_priv_key, 341 .test_data = test_ecdsa_p256_priv_key, [all …]
|
H A D | test-opts-visitor.c | 36 setup_fixture(OptsVisitorFixture *f, gconstpointer test_data) in setup_fixture() argument 38 const char *opts_string = test_data; in setup_fixture() 54 teardown_fixture(OptsVisitorFixture *f, gconstpointer test_data) in teardown_fixture() argument 63 void (*test_func)(OptsVisitorFixture *f, gconstpointer test_data), in add_test() argument 64 gconstpointer test_data) in add_test() 66 g_test_add(testpath, OptsVisitorFixture, test_data, setup_fixture, in add_test() 73 expect_ok(OptsVisitorFixture *f, gconstpointer test_data) in expect_ok() argument 81 expect_fail(OptsVisitorFixture *f, gconstpointer test_data) in expect_fail() argument 90 g_test_message("'%s': %s", (const char *)test_data, in expect_fail() 96 test_value(OptsVisitorFixture *f, gconstpointer test_data) in test_value() argument [all …]
|
H A D | test-crypto-hmac.c | 34 static QCryptoHmacTestData test_data[] = { variable 95 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in test_hmac_alloc() 96 QCryptoHmacTestData *data = &test_data[i]; in test_hmac_alloc() 134 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in test_hmac_prealloc() 135 QCryptoHmacTestData *data = &test_data[i]; in test_hmac_prealloc() 179 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in test_hmac_iov() 180 QCryptoHmacTestData *data = &test_data[i]; in test_hmac_iov() 222 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in test_hmac_digest() 223 QCryptoHmacTestData *data = &test_data[i]; in test_hmac_digest()
|
H A D | test-shift128.c | 19 } test_data; typedef 21 static const test_data test_ltable[] = { 76 static const test_data test_rtable[] = { 113 test_data tmp = test_ltable[i]; in test_lshift() 126 test_data tmp = test_rtable[i]; in test_rshift()
|
H A D | test-crypto-ivgen.c | 36 } test_data[] = { variable 168 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 169 if (test_data[i].ivalg == QCRYPTO_IV_GEN_ALGO_ESSIV && in main() 170 !qcrypto_hash_supports(test_data[i].hashalg)) { in main() 173 g_test_add_data_func(test_data[i].path, in main() 174 &(test_data[i]), in main()
|
H A D | test-crypto-xts.c | 41 static const QCryptoXTSTestData test_data[] = { variable 509 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 510 gchar *path = g_strdup_printf("%s/basic", test_data[i].path); in main() 511 g_test_add_data_func(path, &test_data[i], test_xts); in main() 517 if ((test_data[i].PTLEN >= 32) && !(test_data[i].PTLEN % 32)) { in main() 518 path = g_strdup_printf("%s/split", test_data[i].path); in main() 519 g_test_add_data_func(path, &test_data[i], test_xts_split); in main() 523 path = g_strdup_printf("%s/unaligned", test_data[i].path); in main() 524 g_test_add_data_func(path, &test_data[i], test_xts_unaligned); in main()
|
H A D | test-crypto-afsplit.c | 36 static QCryptoAFSplitTestData test_data[] = { variable 187 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 188 if (!qcrypto_hash_supports(test_data[i].hash)) { in main() 191 g_test_add_data_func(test_data[i].path, &test_data[i], test_afsplit); in main()
|
H A D | test-crypto-pbkdf.c | 51 static QCryptoPbkdfTestData test_data[] = { variable 439 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 440 if (!qcrypto_pbkdf2_supports(test_data[i].hash)) { in main() 444 if (!test_data[i].slow || in main() 446 g_test_add_data_func(test_data[i].path, &test_data[i], test_pbkdf); in main()
|
H A D | test-crypto-cipher.c | 42 static QCryptoCipherTestData test_data[] = { variable 821 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 822 if (qcrypto_cipher_supports(test_data[i].alg, test_data[i].mode)) { in main() 823 g_test_add_data_func(test_data[i].path, &test_data[i], test_cipher); in main() 826 QCryptoCipherAlgo_str(test_data[i].alg), in main() 827 QCryptoCipherMode_str(test_data[i].mode)); in main()
|
H A D | test-crypto-block.c | 123 } test_data[] = { variable 574 for (i = 0; i < G_N_ELEMENTS(test_data); i++) { in main() 575 if (test_data[i].open_opts->format == QCRYPTO_BLOCK_FORMAT_LUKS && in main() 576 !qcrypto_hash_supports(test_data[i].hash_alg)) { in main() 578 QCryptoHashAlgo_str(test_data[i].hash_alg)); in main() 586 if (!test_data[i].slow || in main() 588 g_test_add_data_func(test_data[i].path, &test_data[i], test_block); in main()
|
H A D | test-visitor-serialization.c | 290 void *test_data; member 297 PrimitiveType *pt = args->test_data; in test_primitives() 358 PrimitiveType *pt = args->test_data; in test_primitive_lists() 1039 args->test_data = &pt_values[i]; in add_visitor_type() 1049 args->test_data = NULL; in add_visitor_type() 1055 args->test_data = NULL; in add_visitor_type() 1063 args->test_data = NULL; in add_visitor_type() 1074 args->test_data = &pt_values[i]; in add_visitor_type()
|
/qemu/tests/tcg/multiarch/system/ |
H A D | memory.c | 32 static uint8_t test_data[TEST_SIZE]; variable 70 uint8_t count = 0, *ptr = &test_data[0]; in init_test_data_u8() 97 uint8_t top, bottom, *ptr = &test_data[0]; in init_test_data_s8() 117 uint32_t *ptr = (uint32_t *) &test_data[0]; in reset_start_data() 137 uint16_t word, *ptr = (uint16_t *) &test_data[offset]; in init_test_data_u16() 157 uint32_t word, *ptr = (uint32_t *) &test_data[offset]; in init_test_data_u32() 180 uint64_t word, *ptr = (uint64_t *) &test_data[offset]; in init_test_data_u64() 205 uint16_t word, *ptr = (uint16_t *)&test_data[offset]; in read_test_data_u16() 230 uint32_t word, *ptr = (uint32_t *)&test_data[offset]; in read_test_data_u32() 272 uint64_t word, *ptr = (uint64_t *)&test_data[offset]; in read_test_data_u64() [all …]
|
/qemu/tests/tcg/tricore/asm/ |
H A D | test_ld_h.S | 3 test_data: label 12 TEST_LD (ld.h, 1, 0xffffaffe, test_data, [AREG_ADDR]2) 13 TEST_LD_SRO(ld.h, 2, 0x000022ff, test_data, [AREG_ADDR]4)
|
H A D | test_ld_bu.S | 3 test_data: label 12 TEST_LD(ld.bu, 1, 0xff, test_data + 4, [+AREG_ADDR]4) # pre_inc 13 TEST_LD(ld.bu, 2, 0xad, test_data + 4, [AREG_ADDR+]4) # post_inc
|
H A D | macros.h | 74 LIA(AREG_ADDR, test_data) \ 85 LIA(AREG_ADDR, test_data) \
|