/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() 382 static GArray *load_expected_aml(test_data *data) in load_expected_aml() 455 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 …]
|
/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/linux/lib/ |
H A D | test_sysctl.c | 55 static struct test_sysctl_data test_data = { variable 75 .data = &test_data.int_0001, 84 .data = &test_data.int_0002, 91 .data = &test_data.int_0003, 92 .maxlen = sizeof(test_data.int_0003), 105 .data = &test_data.boot_int, 106 .maxlen = sizeof(test_data.boot_int), 114 .data = &test_data.uint_0001, 121 .data = &test_data.string_0001, 122 .maxlen = sizeof(test_data.string_0001), [all …]
|
/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-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()
|
/openbmc/linux/drivers/gpu/drm/kmb/ |
H A D | kmb_dsi.c | 772 u32 test_code, u32 test_data) in test_mode_send() argument 814 test_data << ((dphy_no % 4) * 8)); in test_mode_send() 997 u32 test_code = 0, test_data = 0; in set_slewrate_gt_1500() local 1002 test_data = 0x02; in set_slewrate_gt_1500() 1003 test_mode_send(kmb_dsi, dphy_no, test_code, test_data); in set_slewrate_gt_1500() 1007 test_data = 0x00; in set_slewrate_gt_1500() 1008 test_mode_send(kmb_dsi, dphy_no, test_code, test_data); in set_slewrate_gt_1500() 1013 u32 test_code = 0, test_data = 0; in set_slewrate_gt_1000() local 1023 test_data = (0x03 | (1 << 6)); in set_slewrate_gt_1000() 1024 test_mode_send(kmb_dsi, dphy_no, test_code, test_data); in set_slewrate_gt_1000() [all …]
|
/openbmc/linux/drivers/thunderbolt/ |
H A D | test.c | 490 static const struct port_expectation test_data[] = { in tb_test_path_single_hop_walk() local 510 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk() 511 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 512 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk() 514 test_data[i].type); in tb_test_path_single_hop_walk() 518 KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk() 520 i = ARRAY_SIZE(test_data) - 1; in tb_test_path_single_hop_walk() 522 KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data)); in tb_test_path_single_hop_walk() 523 KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route); in tb_test_path_single_hop_walk() 524 KUNIT_EXPECT_EQ(test, p->port, test_data[i].port); in tb_test_path_single_hop_walk() [all …]
|
/openbmc/linux/include/crypto/ |
H A D | drbg.h | 144 struct drbg_string test_data; member 236 struct drbg_test_data *test_data) in crypto_drbg_get_bytes_addtl_test() argument 238 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_get_bytes_addtl_test() 239 test_data->testentropy->len); in crypto_drbg_get_bytes_addtl_test() 260 struct drbg_test_data *test_data) in crypto_drbg_reset_test() argument 262 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_reset_test() 263 test_data->testentropy->len); in crypto_drbg_reset_test()
|
/openbmc/qemu/tests/tcg/multiarch/system/ |
H A D | memory.c | 33 static uint8_t test_data[TEST_SIZE]; variable 71 uint8_t count = 0, *ptr = &test_data[0]; in init_test_data_u8() 98 uint8_t top, bottom, *ptr = &test_data[0]; in init_test_data_s8() 118 uint32_t *ptr = (uint32_t *) &test_data[0]; in reset_start_data() 138 uint16_t word, *ptr = (uint16_t *) &test_data[offset]; in init_test_data_u16() 158 uint32_t word, *ptr = (uint32_t *) &test_data[offset]; in init_test_data_u32() 181 uint64_t word, *ptr = (uint64_t *) &test_data[offset]; in init_test_data_u64() 206 uint16_t word, *ptr = (uint16_t *)&test_data[offset]; in read_test_data_u16() 231 uint32_t word, *ptr = (uint32_t *)&test_data[offset]; in read_test_data_u32() 273 uint64_t word, *ptr = (uint64_t *)&test_data[offset]; in read_test_data_u64() [all …]
|
/openbmc/linux/tools/perf/arch/x86/tests/ |
H A D | insn-x86.c | 12 struct test_data { struct 21 const struct test_data test_data_32[] = { argument 28 const struct test_data test_data_64[] = { 100 static int test_data_item(const struct test_data *dat, int x86_64) in test_data_item() 150 static int test_data_set(const struct test_data *dat_set, int x86_64) in test_data_set() 152 const struct test_data *dat; in test_data_set()
|
/openbmc/linux/tools/perf/tests/ |
H A D | dlfilter-test.c | 42 struct test_data { struct 69 struct test_data *td = container_of(tool, struct test_data, tool); in process() argument 112 static int write_attr(struct test_data *td, u64 sample_type, u64 *id) in write_attr() 173 static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid) in write_sample() 245 static int check_filter_desc(struct test_data *td) in check_filter_desc() 263 static int get_ip_addr(struct test_data *td) in get_ip_addr() 288 static int do_run_perf_script(struct test_data *td, int do_early) in do_run_perf_script() 302 static int run_perf_script(struct test_data *td) in run_perf_script() 320 static int test__dlfilter_test(struct test_data *td) in test__dlfilter_test() 395 static void test_data__free(struct test_data *td) in test_data__free() [all …]
|
H A D | time-utils-test.c | 60 struct test_data { struct 70 static bool test__perf_time__parse_for_ranges(struct test_data *d) in test__perf_time__parse_for_ranges() argument 160 struct test_data d = { in test__time_utils() 175 struct test_data d = { in test__time_utils() 190 struct test_data d = { in test__time_utils() 205 struct test_data d = { in test__time_utils() 220 struct test_data d = { in test__time_utils() 235 struct test_data d = { in test__time_utils()
|
/openbmc/linux/sound/pci/asihpi/ |
H A D | hpi6000.c | 637 u32 test_data = 0x00000001; in hpi6000_adapter_boot_load_dsp() local 718 test_data = 0x00000001; in hpi6000_adapter_boot_load_dsp() 720 iowrite32(test_data, pdo->prHPI_address); in hpi6000_adapter_boot_load_dsp() 722 if (data != test_data) { in hpi6000_adapter_boot_load_dsp() 724 test_data, data, dsp_index); in hpi6000_adapter_boot_load_dsp() 727 test_data = test_data << 1; in hpi6000_adapter_boot_load_dsp() 778 test_data = 0x00000001; in hpi6000_adapter_boot_load_dsp() 780 hpi_write_word(pdo, test_addr + i, test_data); in hpi6000_adapter_boot_load_dsp() 782 if (data != test_data) { in hpi6000_adapter_boot_load_dsp() 785 test_addr + i, test_data, in hpi6000_adapter_boot_load_dsp() [all …]
|
/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/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,
|