Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/kvm/arm64/
H A 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/tools/testing/vsock/
H A 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 …]
H A 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/include/crypto/
H A Ddrbg.h121 struct drbg_string test_data; member
213 struct drbg_test_data *test_data) in crypto_drbg_get_bytes_addtl_test() argument
215 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_get_bytes_addtl_test()
216 test_data->testentropy->len); in crypto_drbg_get_bytes_addtl_test()
237 struct drbg_test_data *test_data) in crypto_drbg_reset_test() argument
239 crypto_rng_set_entropy(drng, test_data->testentropy->buf, in crypto_drbg_reset_test()
240 test_data->testentropy->len); in crypto_drbg_reset_test()
/linux/sound/pci/asihpi/
H A 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 …]
H A 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/tools/perf/arch/x86/tests/
H A 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()
H A 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/tools/perf/tests/
H A 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()
400 static void test_data__free(struct test_data *td) in test_data__free()
[all …]
H A 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/tools/testing/selftests/bpf/prog_tests/
H A 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()
H A Dxdp_do_redirect.c268 struct test_data { struct
273 static void cleanup(struct test_data *data) in cleanup() argument
301 static int ping_setup(struct test_data *data) in ping_setup()
333 static void ping_test(struct test_data *data) in ping_test()
400 struct test_data data = {}; in xdp_redirect_ping()
H A Dattach_probe.c35 static char test_data[] = "test_data";
385 skel->bss->user_ptr = test_data;
34 static char test_data[] = "test_data"; global() variable
/linux/tools/testing/selftests/kvm/x86/
H A 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()
H A Dnested_exceptions_test.c159 static void __attribute__((__flatten__)) l1_guest_code(void *test_data) in l1_guest_code() argument
162 l1_svm_code(test_data); in l1_guest_code()
164 l1_vmx_code(test_data); in l1_guest_code()
/linux/samples/bpf/
H A 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/lib/
H A Dplist.c282 unsigned int test_data[241]; in plist_test() local
284 for (i = 0; i < ARRAY_SIZE(test_data); i++) in plist_test()
285 test_data[i] = i; in plist_test()
293 test_node[i].prio = test_data[i]; in plist_test()
H A Dtest_firmware.c709 static const u8 test_data[] = { in trigger_request_platform_store() local
727 efi_embedded_fw.data = (void *)test_data; in trigger_request_platform_store()
728 efi_embedded_fw.length = sizeof(test_data); in trigger_request_platform_store()
739 if (firmware->size != sizeof(test_data) || in trigger_request_platform_store()
740 memcmp(firmware->data, test_data, sizeof(test_data)) != 0) { in trigger_request_platform_store()
/linux/lib/kunit/
H A 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/fs/ext4/
H A Dinode-test.c83 static const struct timestamp_expectation test_data[] = { variable
220 KUNIT_ARRAY_PARAM(ext4_inode, test_data, timestamp_expectation_to_desc);
/linux/tools/testing/selftests/kvm/
H A Dmemslot_perf_test.c791 struct test_data {
802 const struct test_data *tdata, in test_execute()
851 static const struct test_data tests[] = {
1047 static bool test_loop(const struct test_data *data, in test_loop()
1118 const struct test_data *data = &tests[tctr]; in main()
790 struct test_data { global() struct
801 looptest_data test_execute() argument
/linux/crypto/
H A Ddrbg.c243 if (list_empty(&drbg->test_data.list)) in drbg_fips_continuous_test()
894 if (list_empty(&drbg->test_data.list)) in drbg_nopr_reseed_interval_elapsed()
937 if (list_empty(&drbg->test_data.list)) { in drbg_seed()
938 drbg_string_fill(&data1, drbg->test_data.buf, in drbg_seed()
939 drbg->test_data.len); in drbg_seed()
1311 if (list_empty(&drbg->test_data.list)) in drbg_prepare_hrng()
1435 drbg_string_fill(&drbg->test_data, data, len); in drbg_kcapi_set_entropy()
/linux/drivers/phy/rockchip/
H A Dphy-rockchip-dphy-rx0.c172 static void rk_dphy_write(struct rk_dphy *priv, u8 test_code, u8 test_data) in rk_dphy_write() argument
184 rk_dphy_write_grf(priv, GRF_DPHY_RX0_TESTDIN, test_data); in rk_dphy_write()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c1491 u8 *test_data = NULL; in hinic_run_lp_test() local
1499 test_data = __skb_put(skb_tmp, LP_PKT_LEN); in hinic_run_lp_test()
1501 memset(test_data, 0xFF, 2 * ETH_ALEN); in hinic_run_lp_test()
1502 test_data[ETH_ALEN] = 0xFE; in hinic_run_lp_test()
1503 test_data[2 * ETH_ALEN] = 0x08; in hinic_run_lp_test()
1504 test_data[2 * ETH_ALEN + 1] = 0x0; in hinic_run_lp_test()
1507 test_data[i] = i & 0xFF; in hinic_run_lp_test()
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_guc_buf_kunit.c273 static void test_data(struct kunit *test) in test_data() function
322 KUNIT_CASE(test_data),

12