Symbol: test_data
arch/powerpc/kvm/test-guest-state-buffer.c
416
struct kvmppc_gs_msg_test_hostwide_data test_data = {
arch/powerpc/kvm/test-guest-state-buffer.c
426
gsm = kvmppc_gsm_new(&gs_msg_test_hostwide_ops, &test_data, GSM_SEND,
arch/powerpc/kvm/test-guest-state-buffer.c
441
memset(&test_data, 0, sizeof(test_data));
arch/powerpc/kvm/test-guest-state-buffer.c
444
KUNIT_EXPECT_EQ(test, test_data.guest_heap, 0xdeadbeef);
arch/powerpc/kvm/test-guest-state-buffer.c
445
KUNIT_EXPECT_EQ(test, test_data.guest_heap_max, ~0ULL);
arch/powerpc/kvm/test-guest-state-buffer.c
446
KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_size, 0xff);
arch/powerpc/kvm/test-guest-state-buffer.c
447
KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_size_max, 0xffffff);
arch/powerpc/kvm/test-guest-state-buffer.c
448
KUNIT_EXPECT_EQ(test, test_data.guest_pgtable_reclaim, 0xdeadbeef);
arch/powerpc/kvm/test-guest-state-buffer.c
456
struct kvmppc_gs_msg_test_hostwide_data test_data;
arch/powerpc/kvm/test-guest-state-buffer.c
467
gsm = kvmppc_gsm_new(&gs_msg_test_hostwide_ops, &test_data, GSM_SEND,
crypto/drbg.c
1301
if (list_empty(&drbg->test_data.list))
crypto/drbg.c
1425
drbg_string_fill(&drbg->test_data, data, len);
crypto/drbg.c
242
if (list_empty(&drbg->test_data.list))
crypto/drbg.c
884
if (list_empty(&drbg->test_data.list))
crypto/drbg.c
928
if (list_empty(&drbg->test_data.list)) {
crypto/drbg.c
929
drbg_string_fill(&data1, drbg->test_data.buf,
crypto/drbg.c
930
drbg->test_data.len);
crypto/testmgr.c
3490
struct drbg_test_data test_data;
crypto/testmgr.c
3507
test_data.testentropy = &testentropy;
crypto/testmgr.c
3510
ret = crypto_drbg_reset_test(drng, &pers, &test_data);
crypto/testmgr.c
3520
buf, test->expectedlen, &addtl, &test_data);
crypto/testmgr.c
3535
buf, test->expectedlen, &addtl, &test_data);
drivers/char/hw_random/n2-drv.c
423
unsigned long ra = __pa(&np->test_data);
drivers/char/hw_random/n2-drv.c
436
np->buffer = np->test_data >> 32;
drivers/char/hw_random/n2-drv.c
437
*data = np->test_data & 0xffffffff;
drivers/char/hw_random/n2-drv.c
458
unsigned long ra = __pa(&np->test_data);
drivers/char/hw_random/n2rng.h
141
u64 test_data;
drivers/gpu/drm/i915/display/intel_display_types.h
1681
struct intel_dp_compliance_data test_data;
drivers/gpu/drm/i915/display/intel_dp_test.c
157
intel_dp->compliance.test_data.bpc = 6;
drivers/gpu/drm/i915/display/intel_dp_test.c
160
intel_dp->compliance.test_data.bpc = 8;
drivers/gpu/drm/i915/display/intel_dp_test.c
166
intel_dp->compliance.test_data.video_pattern = test_pattern;
drivers/gpu/drm/i915/display/intel_dp_test.c
167
intel_dp->compliance.test_data.hdisplay = be16_to_cpu(h_width);
drivers/gpu/drm/i915/display/intel_dp_test.c
168
intel_dp->compliance.test_data.vdisplay = be16_to_cpu(v_height);
drivers/gpu/drm/i915/display/intel_dp_test.c
197
intel_dp->compliance.test_data.edid = INTEL_DP_RESOLUTION_FAILSAFE;
drivers/gpu/drm/i915/display/intel_dp_test.c
211
intel_dp->compliance.test_data.edid = INTEL_DP_RESOLUTION_PREFERRED;
drivers/gpu/drm/i915/display/intel_dp_test.c
225
&intel_dp->compliance.test_data.phytest;
drivers/gpu/drm/i915/display/intel_dp_test.c
311
&intel_dp->compliance.test_data.phytest;
drivers/gpu/drm/i915/display/intel_dp_test.c
339
&intel_dp->compliance.test_data.phytest;
drivers/gpu/drm/i915/display/intel_dp_test.c
38
if (intel_dp->compliance.test_data.bpc != 0) {
drivers/gpu/drm/i915/display/intel_dp_test.c
39
int bpp = 3 * intel_dp->compliance.test_data.bpc;
drivers/gpu/drm/i915/display/intel_dp_test.c
682
intel_dp->compliance.test_data.edid);
drivers/gpu/drm/i915/display/intel_dp_test.c
686
intel_dp->compliance.test_data.hdisplay);
drivers/gpu/drm/i915/display/intel_dp_test.c
688
intel_dp->compliance.test_data.vdisplay);
drivers/gpu/drm/i915/display/intel_dp_test.c
690
intel_dp->compliance.test_data.bpc);
drivers/gpu/drm/i915/display/intel_dp_test.c
694
intel_dp->compliance.test_data.phytest.phy_pattern);
drivers/gpu/drm/i915/display/intel_dp_test.c
696
intel_dp->compliance.test_data.phytest.num_lanes);
drivers/gpu/drm/i915/display/intel_dp_test.c
698
intel_dp->compliance.test_data.phytest.link_rate);
drivers/gpu/drm/kmb/kmb_dsi.c
1002
test_data = 0x02;
drivers/gpu/drm/kmb/kmb_dsi.c
1003
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1007
test_data = 0x00;
drivers/gpu/drm/kmb/kmb_dsi.c
1008
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1013
u32 test_code = 0, test_data = 0;
drivers/gpu/drm/kmb/kmb_dsi.c
1023
test_data = (0x03 | (1 << 6));
drivers/gpu/drm/kmb/kmb_dsi.c
1024
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1028
test_data = 0x01;
drivers/gpu/drm/kmb/kmb_dsi.c
1029
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1035
test_data = (0x72f & 0x7f);
drivers/gpu/drm/kmb/kmb_dsi.c
1036
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1042
test_data = ((0x72f >> 6) & 0x1f) | (1 << 7);
drivers/gpu/drm/kmb/kmb_dsi.c
1043
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1048
u32 test_code = 0, test_data = 0;
drivers/gpu/drm/kmb/kmb_dsi.c
1058
test_data = (0x03 | (1 << 6));
drivers/gpu/drm/kmb/kmb_dsi.c
1059
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1063
test_data = 0x01;
drivers/gpu/drm/kmb/kmb_dsi.c
1064
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1068
test_data = (0x523 & 0x7f);
drivers/gpu/drm/kmb/kmb_dsi.c
1069
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1073
test_data = ((0x523 >> 6) & 0x1f) | (1 << 7);
drivers/gpu/drm/kmb/kmb_dsi.c
1074
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1080
u32 test_code = 0, test_data = 0;
drivers/gpu/drm/kmb/kmb_dsi.c
1084
test_data = 0x01;
drivers/gpu/drm/kmb/kmb_dsi.c
1085
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1101
u32 i, test_code = 0, test_data = 0;
drivers/gpu/drm/kmb/kmb_dsi.c
1111
test_data = (mipi_hs_freq_range[i].hsfreqrange_code & 0x7f) |
drivers/gpu/drm/kmb/kmb_dsi.c
1113
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1122
u32 test_code = 0, test_data = 0, val;
drivers/gpu/drm/kmb/kmb_dsi.c
1148
test_data = 0x01;
drivers/gpu/drm/kmb/kmb_dsi.c
1150
test_data = 0x00;
drivers/gpu/drm/kmb/kmb_dsi.c
1153
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
1181
test_data = 0x0;
drivers/gpu/drm/kmb/kmb_dsi.c
1182
test_mode_send(kmb_dsi, dphy_no, test_code, test_data);
drivers/gpu/drm/kmb/kmb_dsi.c
772
u32 test_code, u32 test_data)
drivers/gpu/drm/kmb/kmb_dsi.c
814
test_data << ((dphy_no % 4) * 8));
drivers/gpu/drm/kmb/kmb_dsi.c
997
u32 test_code = 0, test_data = 0;
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
385
u8 test_data)
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c
400
PHY_TESTDIN(test_data));
drivers/gpu/drm/xe/tests/xe_guc_buf_kunit.c
322
KUNIT_CASE(test_data),
drivers/media/i2c/ccs/ccs-core.c
1126
for (i = 0; i < ARRAY_SIZE(sensor->test_data); i++) {
drivers/media/i2c/ccs/ccs-core.c
1129
sensor->test_data[i] = v4l2_ctrl_new_std(
drivers/media/i2c/ccs/ccs-core.c
2224
for (i = 0; i < ARRAY_SIZE(sensor->test_data); i++)
drivers/media/i2c/ccs/ccs-core.c
2226
sensor->test_data[i], 0,
drivers/media/i2c/ccs/ccs-core.c
761
for (i = 0; i < ARRAY_SIZE(sensor->test_data); i++)
drivers/media/i2c/ccs/ccs-core.c
763
sensor->test_data[i],
drivers/media/i2c/ccs/ccs.h
262
struct v4l2_ctrl *test_data[CCS_COLOUR_COMPONENTS];
drivers/media/platform/raspberrypi/rp1-cfe/dphy.c
83
uint8_t test_data)
drivers/media/platform/raspberrypi/rp1-cfe/dphy.c
92
set_testdin(dphy, test_data);
drivers/mmc/core/mmc_test.c
2175
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2184
return mmc_test_rw_multiple_size(test, &test_data);
drivers/mmc/core/mmc_test.c
2194
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2203
return mmc_test_rw_multiple_size(test, &test_data);
drivers/mmc/core/mmc_test.c
2213
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2222
return mmc_test_rw_multiple_size(test, &test_data);
drivers/mmc/core/mmc_test.c
2232
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2241
return mmc_test_rw_multiple_size(test, &test_data);
drivers/mmc/core/mmc_test.c
2251
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2260
return mmc_test_rw_multiple_sg_len(test, &test_data);
drivers/mmc/core/mmc_test.c
2270
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2279
return mmc_test_rw_multiple_sg_len(test, &test_data);
drivers/mmc/core/mmc_test.c
2289
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2298
return mmc_test_rw_multiple_sg_len(test, &test_data);
drivers/mmc/core/mmc_test.c
2308
struct mmc_test_multiple_rw test_data = {
drivers/mmc/core/mmc_test.c
2317
return mmc_test_rw_multiple_sg_len(test, &test_data);
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1480
u8 *test_data = NULL;
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1488
test_data = __skb_put(skb_tmp, LP_PKT_LEN);
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1490
memset(test_data, 0xFF, 2 * ETH_ALEN);
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1491
test_data[ETH_ALEN] = 0xFE;
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1492
test_data[2 * ETH_ALEN] = 0x08;
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1493
test_data[2 * ETH_ALEN + 1] = 0x0;
drivers/net/ethernet/huawei/hinic/hinic_ethtool.c
1496
test_data[i] = i & 0xFF;
drivers/phy/rockchip/phy-rockchip-dphy-rx0.c
172
static void rk_dphy_write(struct rk_dphy *priv, u8 test_code, u8 test_data)
drivers/phy/rockchip/phy-rockchip-dphy-rx0.c
184
rk_dphy_write_grf(priv, GRF_DPHY_RX0_TESTDIN, test_data);
drivers/platform/chrome/cros_ec_proto_test.c
2529
} test_data[] = {
drivers/platform/chrome/cros_ec_proto_test.c
2541
for (i = 0; i < ARRAY_SIZE(test_data); ++i) {
drivers/platform/chrome/cros_ec_proto_test.c
2552
cros_kunit_readmem_mock_data[0] = test_data[i].readmem_data;
drivers/platform/chrome/cros_ec_proto_test.c
2558
KUNIT_EXPECT_EQ(test, ret, test_data[i].expected_result);
drivers/staging/media/imx/imx6-mipi-csi2.c
151
u32 test_code, u32 test_data)
drivers/staging/media/imx/imx6-mipi-csi2.c
166
writel(test_data, csi2->base + CSI2_PHY_TST_CTRL1);
drivers/thunderbolt/test.c
1006
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
1051
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
1052
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
1058
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1059
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
1061
test_data[i].in_type);
drivers/thunderbolt/test.c
1062
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1063
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
1065
test_data[i].out_type);
drivers/thunderbolt/test.c
1086
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
1131
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
1132
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
1138
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1139
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
1141
test_data[i].in_type);
drivers/thunderbolt/test.c
1142
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1143
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
1145
test_data[i].out_type);
drivers/thunderbolt/test.c
1170
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
1223
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
1224
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
1230
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1231
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
1233
test_data[i].in_type);
drivers/thunderbolt/test.c
1234
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1235
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
1237
test_data[i].out_type);
drivers/thunderbolt/test.c
1262
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
1315
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
1316
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
1322
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1323
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
1325
test_data[i].in_type);
drivers/thunderbolt/test.c
1326
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
1327
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
1329
test_data[i].out_type);
drivers/thunderbolt/test.c
490
static const struct port_expectation test_data[] = {
drivers/thunderbolt/test.c
510
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
511
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
512
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
514
test_data[i].type);
drivers/thunderbolt/test.c
518
KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
520
i = ARRAY_SIZE(test_data) - 1;
drivers/thunderbolt/test.c
522
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
523
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
524
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
526
test_data[i].type);
drivers/thunderbolt/test.c
546
static const struct port_expectation test_data[] = {
drivers/thunderbolt/test.c
569
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
570
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
571
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
573
test_data[i].type);
drivers/thunderbolt/test.c
577
KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
579
i = ARRAY_SIZE(test_data) - 1;
drivers/thunderbolt/test.c
581
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
582
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
583
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
585
test_data[i].type);
drivers/thunderbolt/test.c
607
static const struct port_expectation test_data[] = {
drivers/thunderbolt/test.c
632
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
633
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
634
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
636
test_data[i].type);
drivers/thunderbolt/test.c
640
KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
642
i = ARRAY_SIZE(test_data) - 1;
drivers/thunderbolt/test.c
644
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
645
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
646
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
648
test_data[i].type);
drivers/thunderbolt/test.c
678
static const struct port_expectation test_data[] = {
drivers/thunderbolt/test.c
716
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
717
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
718
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
720
test_data[i].type);
drivers/thunderbolt/test.c
724
KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
726
i = ARRAY_SIZE(test_data) - 1;
drivers/thunderbolt/test.c
728
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
729
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
730
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
732
test_data[i].type);
drivers/thunderbolt/test.c
769
static const struct port_expectation test_data[] = {
drivers/thunderbolt/test.c
819
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
820
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
821
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
823
test_data[i].type);
drivers/thunderbolt/test.c
827
KUNIT_EXPECT_EQ(test, i, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
829
i = ARRAY_SIZE(test_data) - 1;
drivers/thunderbolt/test.c
831
KUNIT_EXPECT_TRUE(test, i < ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
832
KUNIT_EXPECT_EQ(test, tb_route(p->sw), test_data[i].route);
drivers/thunderbolt/test.c
833
KUNIT_EXPECT_EQ(test, p->port, test_data[i].port);
drivers/thunderbolt/test.c
835
test_data[i].type);
drivers/thunderbolt/test.c
880
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
909
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
910
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
916
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
917
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
919
test_data[i].in_type);
drivers/thunderbolt/test.c
920
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
921
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
923
test_data[i].out_type);
drivers/thunderbolt/test.c
942
static const struct hop_expectation test_data[] = {
drivers/thunderbolt/test.c
971
KUNIT_ASSERT_EQ(test, path->path_length, ARRAY_SIZE(test_data));
drivers/thunderbolt/test.c
972
for (i = 0; i < ARRAY_SIZE(test_data); i++) {
drivers/thunderbolt/test.c
978
KUNIT_EXPECT_EQ(test, tb_route(in_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
979
KUNIT_EXPECT_EQ(test, in_port->port, test_data[i].in_port);
drivers/thunderbolt/test.c
981
test_data[i].in_type);
drivers/thunderbolt/test.c
982
KUNIT_EXPECT_EQ(test, tb_route(out_port->sw), test_data[i].route);
drivers/thunderbolt/test.c
983
KUNIT_EXPECT_EQ(test, out_port->port, test_data[i].out_port);
drivers/thunderbolt/test.c
985
test_data[i].out_type);
fs/ext4/inode-test.c
220
KUNIT_ARRAY_PARAM(ext4_inode, test_data, timestamp_expectation_to_desc);
fs/ext4/inode-test.c
83
static const struct timestamp_expectation test_data[] = {
include/crypto/drbg.h
121
struct drbg_string test_data;
include/crypto/drbg.h
213
struct drbg_test_data *test_data)
include/crypto/drbg.h
215
crypto_rng_set_entropy(drng, test_data->testentropy->buf,
include/crypto/drbg.h
216
test_data->testentropy->len);
include/crypto/drbg.h
237
struct drbg_test_data *test_data)
include/crypto/drbg.h
239
crypto_rng_set_entropy(drng, test_data->testentropy->buf,
include/crypto/drbg.h
240
test_data->testentropy->len);
kernel/printk/printk_ringbuffer_kunit_test.c
117
kunit_info(tr->test_data->test, "start thread %03lu (writer)\n", tr->num);
kernel/printk/printk_ringbuffer_kunit_test.c
146
if (prb_reserve(&e, tr->test_data->ringbuffer, &r)) {
kernel/printk/printk_ringbuffer_kunit_test.c
156
wake_up_interruptible(&tr->test_data->new_record_wait);
kernel/printk/printk_ringbuffer_kunit_test.c
166
kunit_info(tr->test_data->test, "end thread %03lu: wrote=%lu\n", tr->num, count);
kernel/printk/printk_ringbuffer_kunit_test.c
184
static int prbtest_reader(struct prbtest_data *test_data, unsigned long timeout_ms)
kernel/printk/printk_ringbuffer_kunit_test.c
199
kunit_info(test_data->test, "start reader\n");
kernel/printk/printk_ringbuffer_kunit_test.c
201
while (!wait_event_interruptible(test_data->new_record_wait,
kernel/printk/printk_ringbuffer_kunit_test.c
202
prb_read_valid(test_data->ringbuffer, seq, &r))) {
kernel/printk/printk_ringbuffer_kunit_test.c
205
KUNIT_FAIL(test_data->test, "BAD SEQ READ: request=%llu read=%llu\n",
kernel/printk/printk_ringbuffer_kunit_test.c
209
prbtest_fail_record(test_data->test,
kernel/printk/printk_ringbuffer_kunit_test.c
221
kunit_info(test_data->test, "end reader: read=%lu seq=%llu\n", count, info.seq);
kernel/printk/printk_ringbuffer_kunit_test.c
257
struct prbtest_data *test_data;
kernel/printk/printk_ringbuffer_kunit_test.c
285
test_data = kunit_kmalloc(test, sizeof(*test_data), GFP_KERNEL);
kernel/printk/printk_ringbuffer_kunit_test.c
286
KUNIT_ASSERT_NOT_NULL(test, test_data);
kernel/printk/printk_ringbuffer_kunit_test.c
287
test_data->test = test;
kernel/printk/printk_ringbuffer_kunit_test.c
288
test_data->ringbuffer = &test_rb;
kernel/printk/printk_ringbuffer_kunit_test.c
289
init_waitqueue_head(&test_data->new_record_wait);
kernel/printk/printk_ringbuffer_kunit_test.c
296
thread_data->test_data = test_data;
kernel/printk/printk_ringbuffer_kunit_test.c
308
prbtest_reader(test_data, runtime_ms);
kernel/printk/printk_ringbuffer_kunit_test.c
71
struct prbtest_data *test_data;
kernel/trace/trace_events_hist.c
1142
struct hist_trigger_data *test_data;
kernel/trace/trace_events_hist.c
1154
test_data = test->private_data;
kernel/trace/trace_events_hist.c
1155
hist_field = find_var_field(test_data, var_name);
kernel/trace/trace_events_hist.c
1198
struct hist_trigger_data *test_data;
kernel/trace/trace_events_hist.c
1206
test_data = test->private_data;
kernel/trace/trace_events_hist.c
1207
hist_field = find_var_field(test_data, var_name);
lib/kunit/platform-test.c
125
static const char * const test_data = "test data";
lib/kunit/platform-test.c
140
ctx->data = test_data;
lib/kunit/platform-test.c
168
KUNIT_EXPECT_STREQ(test, ctx->data, test_data);
lib/packing_test.c
413
PACKED_FIELD(63, 61, struct test_data, field1),
lib/packing_test.c
414
PACKED_FIELD(60, 52, struct test_data, field2),
lib/packing_test.c
415
PACKED_FIELD(51, 28, struct test_data, field3),
lib/packing_test.c
416
PACKED_FIELD(27, 14, struct test_data, field4),
lib/packing_test.c
417
PACKED_FIELD(13, 9, struct test_data, field5),
lib/packing_test.c
418
PACKED_FIELD(8, 0, struct test_data, field6),
lib/packing_test.c
423
const struct test_data data = {
lib/packing_test.c
446
struct test_data data = {};
lib/plist.c
282
unsigned int test_data[241];
lib/plist.c
284
for (i = 0; i < ARRAY_SIZE(test_data); i++)
lib/plist.c
285
test_data[i] = i;
lib/plist.c
293
test_node[i].prio = test_data[i];
lib/test_firmware.c
709
static const u8 test_data[] = {
lib/test_firmware.c
727
efi_embedded_fw.data = (void *)test_data;
lib/test_firmware.c
728
efi_embedded_fw.length = sizeof(test_data);
lib/test_firmware.c
739
if (firmware->size != sizeof(test_data) ||
lib/test_firmware.c
740
memcmp(firmware->data, test_data, sizeof(test_data)) != 0) {
lib/test_sysctl.c
109
.data = &test_data.boot_int,
lib/test_sysctl.c
110
.maxlen = sizeof(test_data.boot_int),
lib/test_sysctl.c
118
.data = &test_data.uint_0001,
lib/test_sysctl.c
125
.data = &test_data.string_0001,
lib/test_sysctl.c
126
.maxlen = sizeof(test_data.string_0001),
lib/test_sysctl.c
132
.data = &test_data.bitmap_0001,
lib/test_sysctl.c
169
test_data.bitmap_0001 = kzalloc(SYSCTL_TEST_BITMAP_SIZE/8, GFP_KERNEL);
lib/test_sysctl.c
170
if (!test_data.bitmap_0001)
lib/test_sysctl.c
174
kfree(test_data.bitmap_0001);
lib/test_sysctl.c
185
.data = &test_data.int_0001,
lib/test_sysctl.c
247
.data = &test_data.uint_0001,
lib/test_sysctl.c
259
.data = &test_data.uint_0001,
lib/test_sysctl.c
271
.data = &test_data.uint_0001,
lib/test_sysctl.c
324
kfree(test_data.bitmap_0001);
lib/test_sysctl.c
59
static struct test_sysctl_data test_data = {
lib/test_sysctl.c
79
.data = &test_data.int_0001,
lib/test_sysctl.c
88
.data = &test_data.int_0002,
lib/test_sysctl.c
95
.data = &test_data.int_0003,
lib/test_sysctl.c
96
.maxlen = sizeof(test_data.int_0003),
sound/pci/asihpi/hpi6000.c
1105
test_data = 0xAAAAAA00L & mask;
sound/pci/asihpi/hpi6000.c
1107
hpi_write_word(pdo, PLD_BASE_ADDRESS + 4L, test_data);
sound/pci/asihpi/hpi6000.c
1110
if (read != test_data) {
sound/pci/asihpi/hpi6000.c
1111
HPI_DEBUG_LOG(ERROR, "PLD %x %x\n", test_data,
sound/pci/asihpi/hpi6000.c
1115
test_data = 0x55555500L & mask;
sound/pci/asihpi/hpi6000.c
1116
hpi_write_word(pdo, PLD_BASE_ADDRESS + 4L, test_data);
sound/pci/asihpi/hpi6000.c
1119
if (read != test_data) {
sound/pci/asihpi/hpi6000.c
1120
HPI_DEBUG_LOG(ERROR, "PLD %x %x\n", test_data,
sound/pci/asihpi/hpi6000.c
637
u32 test_data = 0x00000001;
sound/pci/asihpi/hpi6000.c
718
test_data = 0x00000001;
sound/pci/asihpi/hpi6000.c
720
iowrite32(test_data, pdo->prHPI_address);
sound/pci/asihpi/hpi6000.c
722
if (data != test_data) {
sound/pci/asihpi/hpi6000.c
724
test_data, data, dsp_index);
sound/pci/asihpi/hpi6000.c
727
test_data = test_data << 1;
sound/pci/asihpi/hpi6000.c
778
test_data = 0x00000001;
sound/pci/asihpi/hpi6000.c
780
hpi_write_word(pdo, test_addr + i, test_data);
sound/pci/asihpi/hpi6000.c
782
if (data != test_data) {
sound/pci/asihpi/hpi6000.c
785
test_addr + i, test_data,
sound/pci/asihpi/hpi6000.c
790
test_data = test_data << 1;
sound/pci/asihpi/hpi6000.c
895
test_data = 0x00000001;
sound/pci/asihpi/hpi6000.c
898
hpi_write_word(pdo, test_addr, test_data);
sound/pci/asihpi/hpi6000.c
900
if (data != test_data) {
sound/pci/asihpi/hpi6000.c
903
test_addr, test_data, data,
sound/pci/asihpi/hpi6000.c
908
test_data = test_data << 1;
sound/pci/asihpi/hpi6000.c
914
test_data = 0x0;
sound/pci/asihpi/hpi6000.c
916
hpi_write_word(pdo, test_addr + i, test_data);
sound/pci/asihpi/hpi6000.c
917
test_data++;
sound/pci/asihpi/hpi6000.c
920
test_data = 0x0;
sound/pci/asihpi/hpi6000.c
923
if (data != test_data) {
sound/pci/asihpi/hpi6000.c
926
test_addr + i, test_data,
sound/pci/asihpi/hpi6000.c
930
test_data++;
sound/pci/asihpi/hpi6205.c
1838
u32 test_data = 0, data = 0;
sound/pci/asihpi/hpi6205.c
1848
test_data = 0x00000001;
sound/pci/asihpi/hpi6205.c
1851
test_data);
sound/pci/asihpi/hpi6205.c
1854
if (data != test_data) {
sound/pci/asihpi/hpi6205.c
1858
test_data, data, dsp_index);
sound/pci/asihpi/hpi6205.c
1861
test_data = test_data << 1;
sound/pci/asihpi/hpi6205.c
1870
test_data = 0xA5A55A5A;
sound/pci/asihpi/hpi6205.c
1871
boot_loader_write_mem32(pao, dsp_index, test_addr, test_data);
sound/pci/asihpi/hpi6205.c
1874
if (data != test_data) {
sound/pci/asihpi/hpi6205.c
1877
"%08x %08x %08x %i\n", test_addr, test_data,
sound/pci/ice1712/prodigy192.c
675
const unsigned char test_data = 0xd1; /* random value */
sound/pci/ice1712/prodigy192.c
680
prodigy192_ak4114_write(ice, addr, test_data);
sound/pci/ice1712/prodigy192.c
681
if (prodigy192_ak4114_read(ice, addr) == test_data) {
tools/perf/arch/x86/tests/insn-x86.c
100
static int test_data_item(const struct test_data *dat, int x86_64)
tools/perf/arch/x86/tests/insn-x86.c
150
static int test_data_set(const struct test_data *dat_set, int x86_64)
tools/perf/arch/x86/tests/insn-x86.c
152
const struct test_data *dat;
tools/perf/arch/x86/tests/insn-x86.c
21
const struct test_data test_data_32[] = {
tools/perf/arch/x86/tests/insn-x86.c
28
const struct test_data test_data_64[] = {
tools/perf/arch/x86/tests/intel-pt-test.c
209
static void decoding_failed(const struct test_data *d)
tools/perf/arch/x86/tests/intel-pt-test.c
216
static int fail(const struct test_data *d, struct intel_pt_pkt *packet, int len,
tools/perf/arch/x86/tests/intel-pt-test.c
245
static int test_ctx_unchanged(const struct test_data *d, struct intel_pt_pkt *packet,
tools/perf/arch/x86/tests/intel-pt-test.c
261
static int test_one(const struct test_data *d)
tools/perf/arch/x86/tests/intel-pt-test.c
310
const struct test_data *d = data;
tools/perf/tests/dlfilter-test.c
111
static int write_attr(struct test_data *td, u64 sample_type, u64 *id)
tools/perf/tests/dlfilter-test.c
172
static int write_sample(struct test_data *td, u64 sample_type, u64 id, pid_t pid, pid_t tid)
tools/perf/tests/dlfilter-test.c
244
static int check_filter_desc(struct test_data *td)
tools/perf/tests/dlfilter-test.c
262
static int get_ip_addr(struct test_data *td)
tools/perf/tests/dlfilter-test.c
287
static int do_run_perf_script(struct test_data *td, int do_early)
tools/perf/tests/dlfilter-test.c
301
static int run_perf_script(struct test_data *td)
tools/perf/tests/dlfilter-test.c
319
static int test__dlfilter_test(struct test_data *td)
tools/perf/tests/dlfilter-test.c
399
static void test_data__free(struct test_data *td)
tools/perf/tests/dlfilter-test.c
412
struct test_data td = {.fd = -1};
tools/perf/tests/dlfilter-test.c
68
struct test_data *td = container_of(tool, struct test_data, tool);
tools/perf/tests/time-utils-test.c
160
struct test_data d = {
tools/perf/tests/time-utils-test.c
175
struct test_data d = {
tools/perf/tests/time-utils-test.c
190
struct test_data d = {
tools/perf/tests/time-utils-test.c
205
struct test_data d = {
tools/perf/tests/time-utils-test.c
220
struct test_data d = {
tools/perf/tests/time-utils-test.c
235
struct test_data d = {
tools/perf/tests/time-utils-test.c
70
static bool test__perf_time__parse_for_ranges(struct test_data *d)
tools/testing/selftests/bpf/prog_tests/attach_probe.c
35
static char test_data[] = "test_data";
tools/testing/selftests/bpf/prog_tests/attach_probe.c
385
skel->bss->user_ptr = test_data;
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
327
char *test_data = NULL;
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
348
test_data = malloc(sizeof(char) * 10);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
349
strscpy(test_data, "test_data", 10);
tools/testing/selftests/bpf/prog_tests/bpf_iter.c
360
data[0] = test_data;
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
114
struct test_data t;
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
49
static int setup_network(struct test_data *t)
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
85
static void cleanup_network(struct test_data *t)
tools/testing/selftests/bpf/prog_tests/cgroup_ancestor.c
93
static void check_ancestors_ids(struct test_data *t)
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
19
void *runner(void *test_data)
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
21
struct test_data *td = test_data;
tools/testing/selftests/bpf/prog_tests/task_work_stress.c
54
struct test_data td_sched = { .exit = 0 }, td_del = { .exit = 1 };
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
1137
skel->bss->user_ptr = test_data;
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
20
static char test_data[] = "test_data";
tools/testing/selftests/bpf/prog_tests/uprobe_multi_test.c
202
skel->bss->user_ptr = test_data;
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
273
static void cleanup(struct test_data *data)
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
301
static int ping_setup(struct test_data *data)
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
333
static void ping_test(struct test_data *data)
tools/testing/selftests/bpf/prog_tests/xdp_do_redirect.c
400
struct test_data data = {};
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
103
gic_init(GIC_V3, test_data.nr_cpus);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
104
gic_rdist_enable_lpis(test_data.lpi_prop_table, SZ_64K,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
105
test_data.lpi_pend_tables + (cpuid * SZ_64K));
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
112
while (atomic_load(&nr_cpus_ready) < test_data.nr_cpus)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
115
its_init(test_data.collection_table, SZ_64K,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
116
test_data.device_table, SZ_64K,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
117
test_data.cmdq_base, SZ_64K);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
123
for (cpuid = 0; cpuid < test_data.nr_cpus; cpuid++)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
124
its_send_sync_cmd(test_data.cmdq_base_va, cpuid);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
138
while (!READ_ONCE(test_data.request_vcpus_stop))
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
156
sz = (3 + test_data.nr_devices) * SZ_64K;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
163
sz += (1 + test_data.nr_cpus) * SZ_64K;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
175
size_t nr_lpis = test_data.nr_devices * test_data.nr_event_ids;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
176
u8 *tbl = addr_gpa2hva(vm, test_data.lpi_prop_table);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
189
u32 nr_devices = test_data.nr_devices;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
190
u32 nr_cpus = test_data.nr_cpus;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
193
test_data.device_table = vm_phy_pages_alloc(vm, pages_per_64k,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
197
test_data.collection_table = vm_phy_pages_alloc(vm, pages_per_64k,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
204
test_data.cmdq_base = cmdq_base;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
205
test_data.cmdq_base_va = (void *)cmdq_base;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
207
test_data.itt_tables = vm_phy_pages_alloc(vm, pages_per_64k * nr_devices,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
210
test_data.lpi_prop_table = vm_phy_pages_alloc(vm, pages_per_64k,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
214
test_data.lpi_pend_tables = vm_phy_pages_alloc(vm, pages_per_64k * nr_cpus,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
217
sync_global_to_guest(vm, test_data);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
256
for (event_id = 0; event_id < test_data.nr_event_ids; event_id++)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
292
nr_lpis = test_data.nr_devices * test_data.nr_event_ids * nr_iterations;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
302
u32 nr_devices = test_data.nr_devices;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
303
u32 nr_vcpus = test_data.nr_cpus;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
327
write_guest_global(vm, test_data.request_vcpus_stop, true);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
339
vcpus = malloc(test_data.nr_cpus * sizeof(struct kvm_vcpu *));
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
342
vm = vm_create_with_vcpus(test_data.nr_cpus, guest_code, vcpus);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
345
for (i = 0; i < test_data.nr_cpus; i++)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
367
pr_info(" -v:\tnumber of vCPUs (default: %u)\n", test_data.nr_cpus);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
368
pr_info(" -d:\tnumber of devices (default: %u)\n", test_data.nr_devices);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
369
pr_info(" -e:\tnumber of event IDs per device (default: %u)\n", test_data.nr_event_ids);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
383
test_data.nr_cpus = atoi(optarg);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
386
test_data.nr_devices = atoi(optarg);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
389
test_data.nr_event_ids = atoi(optarg);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
401
nr_threads = test_data.nr_cpus + test_data.nr_devices;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
46
} test_data = {
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
66
u32 nr_events = test_data.nr_event_ids;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
67
u32 nr_devices = test_data.nr_devices;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
68
u32 nr_cpus = test_data.nr_cpus;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
71
its_send_mapc_cmd(test_data.cmdq_base_va, coll_id, coll_id, true);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
76
vm_paddr_t itt_base = test_data.itt_tables + (device_id * SZ_64K);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
78
its_send_mapd_cmd(test_data.cmdq_base_va, device_id,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
82
its_send_mapti_cmd(test_data.cmdq_base_va, device_id,
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
85
coll_id = (coll_id + 1) % test_data.nr_cpus;
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
94
for (i = 0; i < test_data.nr_cpus; i++)
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
95
its_send_invall_cmd(test_data.cmdq_base_va, i);
tools/testing/selftests/kvm/memslot_perf_test.c
1047
static bool test_loop(const struct test_data *data,
tools/testing/selftests/kvm/memslot_perf_test.c
1118
const struct test_data *data = &tests[tctr];
tools/testing/selftests/kvm/memslot_perf_test.c
802
const struct test_data *tdata,
tools/testing/selftests/kvm/memslot_perf_test.c
851
static const struct test_data tests[] = {
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
159
static inline void prepare_to_test(struct test_data *data)
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
182
static inline void post_test(struct test_data *data, u64 exp1, u64 exp2)
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
199
static void sender_guest_code(vm_vaddr_t test_data)
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
201
struct test_data *data = (struct test_data *)test_data;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
587
struct test_data *data;
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
597
data = (struct test_data *)addr_gva2hva(vm, test_data_page);
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
71
static void worker_guest_code(vm_vaddr_t test_data)
tools/testing/selftests/kvm/x86/hyperv_tlb_flush.c
73
struct test_data *data = (struct test_data *)test_data;
tools/testing/selftests/kvm/x86/kvm_buslock_test.c
59
static void guest_code(void *test_data)
tools/testing/selftests/kvm/x86/kvm_buslock_test.c
64
l1_svm_code(test_data);
tools/testing/selftests/kvm/x86/kvm_buslock_test.c
66
l1_vmx_code(test_data);
tools/testing/selftests/kvm/x86/nested_emulation_test.c
49
static void guest_code(void *test_data)
tools/testing/selftests/kvm/x86/nested_emulation_test.c
57
struct svm_test_data *svm = test_data;
tools/testing/selftests/kvm/x86/nested_emulation_test.c
69
GUEST_ASSERT(prepare_for_vmx_operation(test_data));
tools/testing/selftests/kvm/x86/nested_emulation_test.c
70
GUEST_ASSERT(load_vmcs(test_data));
tools/testing/selftests/kvm/x86/nested_emulation_test.c
72
prepare_vmcs(test_data, NULL, NULL);
tools/testing/selftests/kvm/x86/nested_emulation_test.c
97
struct svm_test_data *svm = test_data;
tools/testing/selftests/kvm/x86/nested_exceptions_test.c
159
static void __attribute__((__flatten__)) l1_guest_code(void *test_data)
tools/testing/selftests/kvm/x86/nested_exceptions_test.c
162
l1_svm_code(test_data);
tools/testing/selftests/kvm/x86/nested_exceptions_test.c
164
l1_vmx_code(test_data);
tools/testing/vsock/vsock_test_zerocopy.c
149
const struct vsock_test_data *test_data,
tools/testing/vsock/vsock_test_zerocopy.c
168
if (test_data->so_zerocopy)
tools/testing/vsock/vsock_test_zerocopy.c
171
iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt);
tools/testing/vsock/vsock_test_zerocopy.c
174
msg.msg_iovlen = test_data->vecs_cnt;
tools/testing/vsock/vsock_test_zerocopy.c
179
if (errno != test_data->sendmsg_errno) {
tools/testing/vsock/vsock_test_zerocopy.c
181
test_data->sendmsg_errno, errno);
tools/testing/vsock/vsock_test_zerocopy.c
186
if (sendmsg_res != iovec_bytes(iovec, test_data->vecs_cnt)) {
tools/testing/vsock/vsock_test_zerocopy.c
188
iovec_bytes(iovec, test_data->vecs_cnt),
tools/testing/vsock/vsock_test_zerocopy.c
203
vsock_recv_completion(fd, &test_data->zerocopied);
tools/testing/vsock/vsock_test_zerocopy.c
204
} else if (test_data->so_zerocopy && !test_data->sendmsg_errno) {
tools/testing/vsock/vsock_test_zerocopy.c
213
if (!test_data->sendmsg_errno)
tools/testing/vsock/vsock_test_zerocopy.c
214
control_writeulong(iovec_hash_djb2(iovec, test_data->vecs_cnt));
tools/testing/vsock/vsock_test_zerocopy.c
219
free_test_iovec(test_data->vecs, iovec, test_data->vecs_cnt);
tools/testing/vsock/vsock_test_zerocopy.c
244
const struct vsock_test_data *test_data,
tools/testing/vsock/vsock_test_zerocopy.c
264
data_len = iovec_bytes(test_data->vecs, test_data->vecs_cnt);
tools/testing/vsock/vsock_test_zerocopy.c
285
if (test_data->sendmsg_errno == 0)
tools/testing/vsock/vsock_uring_test.c
104
control_writeulong(iovec_hash_djb2(iovec, test_data->vecs_cnt));
tools/testing/vsock/vsock_uring_test.c
108
free_test_iovec(test_data->vecs, iovec, test_data->vecs_cnt);
tools/testing/vsock/vsock_uring_test.c
113
const struct vsock_io_uring_test *test_data)
tools/testing/vsock/vsock_uring_test.c
129
data_len = iovec_bytes(test_data->vecs, test_data->vecs_cnt);
tools/testing/vsock/vsock_uring_test.c
59
const struct vsock_io_uring_test *test_data,
tools/testing/vsock/vsock_uring_test.c
78
iovec = alloc_test_iovec(test_data->vecs, test_data->vecs_cnt);
tools/testing/vsock/vsock_uring_test.c
83
if (io_uring_register_buffers(&ring, iovec, test_data->vecs_cnt))
tools/testing/vsock/vsock_uring_test.c
88
msg.msg_iovlen = test_data->vecs_cnt;