Home
last modified time | relevance | path

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

12

/linux-6.12.1/tools/testing/selftests/kvm/aarch64/
Dvgic_lpi_stress.c32 static struct test_data { struct
46 } test_data = { argument
66 u32 nr_events = test_data.nr_event_ids; in guest_setup_its_mappings()
67 u32 nr_devices = test_data.nr_devices; in guest_setup_its_mappings()
68 u32 nr_cpus = test_data.nr_cpus; in guest_setup_its_mappings()
71 its_send_mapc_cmd(test_data.cmdq_base_va, coll_id, coll_id, true); in guest_setup_its_mappings()
76 vm_paddr_t itt_base = test_data.itt_tables + (device_id * SZ_64K); in guest_setup_its_mappings()
78 its_send_mapd_cmd(test_data.cmdq_base_va, device_id, in guest_setup_its_mappings()
82 its_send_mapti_cmd(test_data.cmdq_base_va, device_id, in guest_setup_its_mappings()
85 coll_id = (coll_id + 1) % test_data.nr_cpus; in guest_setup_its_mappings()
[all …]
/linux-6.12.1/tools/testing/vsock/
Dvsock_test_zerocopy.c145 const struct vsock_test_data *test_data, in test_client() argument
164 if (test_data->so_zerocopy) in test_client()
167 iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt); in test_client()
170 msg.msg_iovlen = test_data->vecs_cnt; in test_client()
175 if (errno != test_data->sendmsg_errno) { in test_client()
177 test_data->sendmsg_errno, errno); in test_client()
182 if (sendmsg_res != iovec_bytes(iovec, test_data->vecs_cnt)) { in test_client()
184 iovec_bytes(iovec, test_data->vecs_cnt), in test_client()
199 vsock_recv_completion(fd, &test_data->zerocopied); in test_client()
200 } else if (test_data->so_zerocopy && !test_data->sendmsg_errno) { in test_client()
[all …]
Dvsock_uring_test.c59 const struct vsock_io_uring_test *test_data, in vsock_io_uring_client() argument
78 iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt); in vsock_io_uring_client()
83 if (io_uring_register_buffers(&ring, iovec, test_data->vecs_cnt)) in vsock_io_uring_client()
88 msg.msg_iovlen = test_data->vecs_cnt; in vsock_io_uring_client()
104 control_writeulong(iovec_hash_djb2(iovec, test_data->vecs_cnt)); in vsock_io_uring_client()
108 free_test_iovec(test_data->vecs, iovec, test_data->vecs_cnt); in vsock_io_uring_client()
113 const struct vsock_io_uring_test *test_data) in vsock_io_uring_server() argument
129 data_len = iovec_bytes(test_data->vecs, test_data->vecs_cnt); in vsock_io_uring_server()
/linux-6.12.1/lib/
Dtest_sysctl.c57 static struct test_sysctl_data test_data = { variable
77 .data = &test_data.int_0001,
86 .data = &test_data.int_0002,
93 .data = &test_data.int_0003,
94 .maxlen = sizeof(test_data.int_0003),
107 .data = &test_data.boot_int,
108 .maxlen = sizeof(test_data.boot_int),
116 .data = &test_data.uint_0001,
123 .data = &test_data.string_0001,
124 .maxlen = sizeof(test_data.string_0001),
[all …]
Dplist.c270 unsigned int test_data[241]; in plist_test() local
272 for (i = 0; i < ARRAY_SIZE(test_data); i++) in plist_test()
273 test_data[i] = i; in plist_test()
281 test_node[i].prio = test_data[i]; in plist_test()
/linux-6.12.1/drivers/gpu/drm/kmb/
Dkmb_dsi.c772 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 …]
/linux-6.12.1/drivers/thunderbolt/
Dtest.c490 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 …]
/linux-6.12.1/include/crypto/
Ddrbg.h144 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()
/linux-6.12.1/tools/perf/arch/x86/tests/
Dinsn-x86.c12 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()
Dintel-pt-test.c25 static const struct test_data { struct
209 static void decoding_failed(const struct test_data *d) in decoding_failed()
216 static int fail(const struct test_data *d, struct intel_pt_pkt *packet, int len, in fail()
245 static int test_ctx_unchanged(const struct test_data *d, struct intel_pt_pkt *packet, in test_ctx_unchanged()
261 static int test_one(const struct test_data *d) in test_one()
310 const struct test_data *d = data; in test__intel_pt_pkt_decoder()
/linux-6.12.1/tools/perf/tests/
Ddlfilter-test.c42 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 …]
Dtime-utils-test.c60 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()
/linux-6.12.1/sound/pci/asihpi/
Dhpi6000.c637 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 …]
Dhpi6205.c1838 u32 test_data = 0, data = 0; in boot_loader_test_memory() local
1848 test_data = 0x00000001; in boot_loader_test_memory()
1851 test_data); in boot_loader_test_memory()
1854 if (data != test_data) { in boot_loader_test_memory()
1858 test_data, data, dsp_index); in boot_loader_test_memory()
1861 test_data = test_data << 1; in boot_loader_test_memory()
1870 test_data = 0xA5A55A5A; in boot_loader_test_memory()
1871 boot_loader_write_mem32(pao, dsp_index, test_addr, test_data); in boot_loader_test_memory()
1874 if (data != test_data) { in boot_loader_test_memory()
1877 "%08x %08x %08x %i\n", test_addr, test_data, in boot_loader_test_memory()
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dcgroup_ancestor.c16 struct test_data { struct
49 static int setup_network(struct test_data *t) in setup_network()
85 static void cleanup_network(struct test_data *t) in cleanup_network()
93 static void check_ancestors_ids(struct test_data *t) in check_ancestors_ids()
114 struct test_data t; in test_cgroup_ancestor()
Dattach_probe.c34 static char test_data[] = "test_data"; variable
280 skel->bss->user_ptr = test_data; in test_uprobe_sleepable()
/linux-6.12.1/tools/testing/selftests/kvm/x86_64/
Dhyperv_tlb_flush.c63 struct test_data { struct
71 static void worker_guest_code(vm_vaddr_t test_data) in worker_guest_code() argument
73 struct test_data *data = (struct test_data *)test_data; in worker_guest_code()
159 static inline void prepare_to_test(struct test_data *data) in prepare_to_test()
182 static inline void post_test(struct test_data *data, u64 exp1, u64 exp2) in post_test()
199 static void sender_guest_code(vm_vaddr_t test_data) in sender_guest_code() argument
201 struct test_data *data = (struct test_data *)test_data; in sender_guest_code()
587 struct test_data *data; in main()
597 data = (struct test_data *)addr_gva2hva(vm, test_data_page); in main()
Dnested_exceptions_test.c157 static void __attribute__((__flatten__)) l1_guest_code(void *test_data) in l1_guest_code() argument
160 l1_svm_code(test_data); in l1_guest_code()
162 l1_vmx_code(test_data); in l1_guest_code()
/linux-6.12.1/samples/bpf/
Dtest_lwt_bpf.sh199 function test_data { function
201 install_test $1 test_data
214 install_test in test_data
386 test_data "xmit"
387 test_data "out"
/linux-6.12.1/lib/kunit/
Dplatform-test.c125 static const char * const test_data = "test data"; variable
140 ctx->data = test_data; in kunit_platform_driver_probe()
168 KUNIT_EXPECT_STREQ(test, ctx->data, test_data); in kunit_platform_driver_register_test()
/linux-6.12.1/fs/ext4/
Dinode-test.c83 static const struct timestamp_expectation test_data[] = { variable
220 KUNIT_ARRAY_PARAM(ext4_inode, test_data, timestamp_expectation_to_desc);
/linux-6.12.1/drivers/mmc/core/
Dmmc_test.c2185 struct mmc_test_multiple_rw test_data = { in mmc_test_profile_mult_write_blocking_perf() local
2194 return mmc_test_rw_multiple_size(test, &test_data); in mmc_test_profile_mult_write_blocking_perf()
2204 struct mmc_test_multiple_rw test_data = { in mmc_test_profile_mult_write_nonblock_perf() local
2213 return mmc_test_rw_multiple_size(test, &test_data); in mmc_test_profile_mult_write_nonblock_perf()
2223 struct mmc_test_multiple_rw test_data = { in mmc_test_profile_mult_read_blocking_perf() local
2232 return mmc_test_rw_multiple_size(test, &test_data); in mmc_test_profile_mult_read_blocking_perf()
2242 struct mmc_test_multiple_rw test_data = { in mmc_test_profile_mult_read_nonblock_perf() local
2251 return mmc_test_rw_multiple_size(test, &test_data); in mmc_test_profile_mult_read_nonblock_perf()
2261 struct mmc_test_multiple_rw test_data = { in mmc_test_profile_sglen_wr_blocking_perf() local
2270 return mmc_test_rw_multiple_sg_len(test, &test_data); in mmc_test_profile_sglen_wr_blocking_perf()
[all …]
/linux-6.12.1/drivers/char/hw_random/
Dn2-drv.c423 unsigned long ra = __pa(&np->test_data); in n2rng_data_read()
436 np->buffer = np->test_data >> 32; in n2rng_data_read()
437 *data = np->test_data & 0xffffffff; in n2rng_data_read()
458 unsigned long ra = __pa(&np->test_data); in n2rng_guest_check()
Dn2rng.h141 u64 test_data; member
/linux-6.12.1/tools/testing/selftests/kvm/
Dmemslot_perf_test.c790 struct test_data { struct
801 const struct test_data *tdata, in test_execute() argument
850 static const struct test_data tests[] = {
1046 static bool test_loop(const struct test_data *data, in test_loop()
1117 const struct test_data *data = &tests[tctr]; in main()

12