| /openbmc/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 …]
|
| /openbmc/u-boot/drivers/video/rockchip/ |
| H A D | rk_mipi.c | 173 unsigned char *test_data, unsigned char size) in rk_mipi_phy_write() argument 187 rk_mipi_dsi_write(regs, PHY_TESTDIN, test_data[i]); in rk_mipi_phy_write() 209 unsigned char test_data[2] = {0}; in rk_mipi_phy_enable() local 233 test_data[0] = 0x80 | (ddr_clk / (200 * MHz)) << 3 | 0x3; in rk_mipi_phy_enable() 234 rk_mipi_phy_write(regs, CODE_PLL_VCORANGE_VCOCAP, test_data, 1); in rk_mipi_phy_enable() 236 test_data[0] = 0x8; in rk_mipi_phy_enable() 237 rk_mipi_phy_write(regs, CODE_PLL_CPCTRL, test_data, 1); in rk_mipi_phy_enable() 239 test_data[0] = 0x80 | 0x40; in rk_mipi_phy_enable() 240 rk_mipi_phy_write(regs, CODE_PLL_LPF_CP, test_data, 1); in rk_mipi_phy_enable() 251 test_data[0] = freq_rang[i][1] << 1; in rk_mipi_phy_enable() [all …]
|
| /openbmc/obmc-console/test/ |
| H A D | test-config-parse-bytesize.c | 21 const struct test_parse_size_unit test_data[] = { in test_config_parse_bytesize() local 45 sizeof(test_data) / sizeof(struct test_parse_size_unit); in test_config_parse_bytesize() 51 rc = config_parse_bytesize(test_data[i].test_str, &size); in test_config_parse_bytesize() 53 if (rc == -1 && rc != test_data[i].expected_rc) { in test_config_parse_bytesize() 55 test_data[i].test_str, test_data[i].expected_rc, in test_config_parse_bytesize() 57 } else if (rc == 0 && test_data[i].expected_size != size) { in test_config_parse_bytesize() 59 i, test_data[i].test_str, in test_config_parse_bytesize() 60 test_data[i].expected_size, size); in test_config_parse_bytesize() 62 assert(rc == test_data[i].expected_rc); in test_config_parse_bytesize() 64 assert(size == test_data[i].expected_size); in test_config_parse_bytesize()
|
| /openbmc/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-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-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-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()
|
| /openbmc/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
|
| /openbmc/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 …]
|
| /openbmc/openbmc/poky/meta/lib/oeqa/sdkext/ |
| H A D | testsdk.py | 38 test_data = json.load(open(tdname, "r")) 71 … f.write('SSTATE_MIRRORS += "file://.* file://%s/PATH"\n' % test_data.get('SSTATE_DIR')) 72 f.write('SOURCE_MIRROR_URL = "file://%s"\n' % test_data.get('DL_DIR')) 74 …git.yoctoproject.org/.* git://%s/git2/git.yoctoproject.org.BASENAME "\n' % test_data.get('DL_DIR')) 80 tc = OESDKExtTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir,
|
| /openbmc/qemu/tests/tcg/x86_64/system/ |
| H A D | validate-patch.py | 29 test_data = f.read() 32 if "Value: 1" in test_data:
|
| /openbmc/openbmc/poky/meta/lib/oeqa/sdk/ |
| H A D | testmetaidesupport.py | 24 test_data = json.load(open(tdname, "r")) 34 tc = OESDKTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir,
|
| /openbmc/openbmc/poky/meta/recipes-devtools/e2fsprogs/e2fsprogs/ |
| H A D | ptest.patch | 20 @@ -20,7 +20,7 @@ test_one: $(srcdir)/test_one.in Makefile mke2fs.conf test_data.tmp 29 @@ -31,7 +31,7 @@ test_script: test_one test_script.in Makefile mke2fs.conf test_data.tmp 66 TEST_BITS="test_data.tmp"
|
| /openbmc/openbmc/poky/scripts/pybootchartgui/pybootchartgui/tests/ |
| H A D | process_tree_test.py | 41 test_data = open(filename) 42 for expected, actual in zip(test_data, self.flatten(process_tree)): 50 test_data.close()
|