/linux/tools/testing/selftests/kvm/arm64/ ! |
H A D | vgic_lpi_stress.c | 32 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/lib/ ! |
H A D | test_sysctl.c | 59 static struct test_sysctl_data test_data = { variable 79 .data = &test_data.int_0001, 88 .data = &test_data.int_0002, 95 .data = &test_data.int_0003, 96 .maxlen = sizeof(test_data.int_0003), 109 .data = &test_data.boot_int, 110 .maxlen = sizeof(test_data.boot_int), 118 .data = &test_data.uint_0001, 125 .data = &test_data.string_0001, 126 .maxlen = sizeof(test_data.string_0001), [all …]
|
H A D | packing_test.c | 403 struct test_data { struct 413 PACKED_FIELD(63, 61, struct test_data, field1), argument 414 PACKED_FIELD(60, 52, struct test_data, field2), 415 PACKED_FIELD(51, 28, struct test_data, field3), 416 PACKED_FIELD(27, 14, struct test_data, field4), 417 PACKED_FIELD(13, 9, struct test_data, field5), 418 PACKED_FIELD(8, 0, struct test_data, field6), 423 const struct test_data data = { in packing_test_pack_fields() 446 struct test_data data = {}; in packing_test_unpack_fields()
|
H A D | plist.c | 282 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()
|
/linux/tools/testing/vsock/ ! |
H A D | vsock_uring_test.c | 59 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/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 …]
|
/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 …]
|
/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()
|
/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()
|
H A D | intel-pt-test.c | 25 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/drivers/gpu/drm/i915/display/ ! |
H A D | intel_dp_test.c | 39 if (intel_dp->compliance.test_data.bpc != 0) { in intel_dp_test_compute_config() 40 int bpp = 3 * intel_dp->compliance.test_data.bpc; in intel_dp_test_compute_config() 158 intel_dp->compliance.test_data.bpc = 6; in intel_dp_autotest_video_pattern() 161 intel_dp->compliance.test_data.bpc = 8; in intel_dp_autotest_video_pattern() 167 intel_dp->compliance.test_data.video_pattern = test_pattern; in intel_dp_autotest_video_pattern() 168 intel_dp->compliance.test_data.hdisplay = be16_to_cpu(h_width); in intel_dp_autotest_video_pattern() 169 intel_dp->compliance.test_data.vdisplay = be16_to_cpu(v_height); in intel_dp_autotest_video_pattern() 198 intel_dp->compliance.test_data.edid = INTEL_DP_RESOLUTION_FAILSAFE; in intel_dp_autotest_edid() 212 intel_dp->compliance.test_data.edid = INTEL_DP_RESOLUTION_PREFERRED; in intel_dp_autotest_edid() 226 &intel_dp->compliance.test_data.phytest; in intel_dp_phy_pattern_update() [all …]
|
/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() 400 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()
|
/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 …]
|
/linux/tools/testing/selftests/kvm/x86/ ! |
H A D | nested_emulation_test.c | 49 static void guest_code(void *test_data) in guest_code() argument 57 struct svm_test_data *svm = test_data; in guest_code() 69 GUEST_ASSERT(prepare_for_vmx_operation(test_data)); in guest_code() 70 GUEST_ASSERT(load_vmcs(test_data)); in guest_code() 72 prepare_vmcs(test_data, NULL, NULL); in guest_code() 97 struct svm_test_data *svm = test_data; in guest_code()
|
H A D | hyperv_tlb_flush.c | 63 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 D | kvm_buslock_test.c | 59 static void guest_code(void *test_data) in guest_code() argument 64 l1_svm_code(test_data); in guest_code() 66 l1_vmx_code(test_data); in guest_code()
|
H A D | nested_exceptions_test.c | 159 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/tools/testing/selftests/bpf/prog_tests/ ! |
H A D | cgroup_ancestor.c | 16 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 D | xdp_do_redirect.c | 268 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()
|
/linux/arch/powerpc/kvm/ ! |
H A D | test-guest-state-buffer.c | 416 struct kvmppc_gs_msg_test_hostwide_data test_data = { in test_gs_hostwide_msg() local 426 gsm = kvmppc_gsm_new(&gs_msg_test_hostwide_ops, &test_data, GSM_SEND, in test_gs_hostwide_msg() 441 memset(&test_data, 0, sizeof(test_data)); in test_gs_hostwide_msg() 444 KUNIT_EXPECT_EQ(test, test_data.guest_heap, 0xdeadbeef); in test_gs_hostwide_msg() 445 KUNIT_EXPECT_EQ(test, test_data.guest_heap_max, ~0ULL); in test_gs_hostwide_msg() 446 KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_size, 0xff); in test_gs_hostwide_msg() 447 KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_size_max, 0xffffff); in test_gs_hostwide_msg() 448 KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_reclaim, 0xdeadbeef); in test_gs_hostwide_msg() 456 struct kvmppc_gs_msg_test_hostwide_data test_data; in test_gs_hostwide_counters() local 467 gsm = kvmppc_gsm_new(&gs_msg_test_hostwide_ops, &test_data, GSM_SEND, in test_gs_hostwide_counters()
|
/linux/lib/kunit/ ! |
H A D | platform-test.c | 125 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/drivers/media/platform/raspberrypi/rp1-cfe/ ! |
H A D | dphy.c | 83 uint8_t test_data) in dphy_transaction() argument 92 set_testdin(dphy, test_data); in dphy_transaction()
|
/linux/drivers/char/hw_random/ ! |
H A D | n2-drv.c | 423 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()
|
/linux/drivers/mmc/core/ ! |
H A D | mmc_test.c | 2185 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 …]
|