Home
last modified time | relevance | path

Searched refs:test_data (Results 1 – 24 of 24) sorted by relevance

/qemu/tests/qtest/
H A Daspeed-smc-utils.c211 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 Dbios-tables-test.c105 } 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 Dnpcm7xx_timer-test.c190 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 Dnpcm7xx_emc-test.c341 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 Dstm32l4x5_gpio-test.c86 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 Dnpcm7xx_pwm-test.c555 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 Dnpcm_gmac-test.c195 static void test_init(gconstpointer test_data) in test_init() argument
197 const TestData *td = test_data; in test_init()
H A Dnpcm7xx_gpio-test.c310 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 Di440fx-test.c361 gconstpointer test_data)) in add_firmware_test() argument
/qemu/tests/unit/
H A Dtest-crypto-der.c209 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 Dtest-opts-visitor.c36 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 Dtest-crypto-hmac.c34 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 Dtest-shift128.c19 } 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 Dtest-crypto-ivgen.c36 } 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 Dtest-crypto-xts.c41 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 Dtest-crypto-afsplit.c36 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 Dtest-crypto-pbkdf.c51 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 Dtest-crypto-cipher.c42 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 Dtest-crypto-block.c123 } 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 Dtest-visitor-serialization.c290 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 Dmemory.c32 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 Dtest_ld_h.S3 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 Dtest_ld_bu.S3 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 Dmacros.h74 LIA(AREG_ADDR, test_data) \
85 LIA(AREG_ADDR, test_data) \