testcase
enum xilinx_dpdma_testcases testcase;
dpdma_debugfs.testcase = DPDMA_TC_NONE;
dpdma_debugfs.testcase = DPDMA_TC_INTR_DONE;
enum xilinx_dpdma_testcases testcase;
dpdma_debugfs.testcase = DPDMA_TC_NONE;
testcase = READ_ONCE(dpdma_debugfs.testcase);
if (testcase != DPDMA_TC_NONE) {
ret = dpdma_debugfs_reqs[testcase].read(kern_buff);
char *testcase;
if (dpdma_debugfs.testcase != DPDMA_TC_NONE)
testcase = strsep(&kern_buff, " ");
if (!strcasecmp(testcase, dpdma_debugfs_reqs[i].name))
dpdma_debugfs.testcase = DPDMA_TC_NONE;
int testcase;
static void mmc_test_run(struct mmc_test_card *test, int testcase)
if (testcase && ((i + 1) != testcase))
gr->testcase = i;
seq_printf(sf, "Test %d: %d\n", gr->testcase + 1, gr->result);
long testcase;
ret = kstrtol_from_user(buf, count, 10, &testcase);
mmc_test_run(test, testcase);
struct fat_timestamp_testcase *testcase =
fake_sb.options.time_offset = testcase->time_offset;
testcase->time,
testcase->date,
testcase->cs);
testcase->ts.tv_sec,
testcase->ts.tv_nsec,
struct fat_timestamp_testcase *testcase =
fake_sb.options.time_offset = testcase->time_offset;
fat_time_unix2fat(&fake_sb, &testcase->ts,
le16_to_cpu(testcase->time),
le16_to_cpu(testcase->date),
testcase->cs,
testcase();
struct testcase pull_tests[NUM_PULL_TESTS] = {
struct testcase push_tests[NUM_PUSH_TESTS] = {
struct testcase diff_tests[NUM_DIFF_TESTS] = {
struct testcase edge_tests[NUM_EDGE_TESTS] = {
static void test_csum_diff(struct testcase *tests, int num_tests)
if (!(testcase & MISC_ENABLES_QUIRK_DISABLED) &&
(!!(testcase & CPUID_DISABLED) ^ !!(testcase & MWAIT_DISABLED)))
if (testcase & CPUID_DISABLED) {
if (testcase & MWAIT_DISABLED)
#define GUEST_ASSERT_MONITOR_MWAIT(insn, testcase, vector) \
bool fault_wanted = ((testcase) & MWAIT_QUIRK_DISABLED) && \
((testcase) & MWAIT_DISABLED); \
testcase, ex_str(vector)); \
testcase, ex_str(vector)); \
int testcase = (int) (long) arg;
if (!(testcase & MWAIT_DISABLED))
__GUEST_ASSERT(this_cpu_has(X86_FEATURE_MWAIT) == !(testcase & MWAIT_DISABLED),
(testcase & MWAIT_DISABLED) ? "cleared" : "set");
GUEST_ASSERT_MONITOR_MWAIT("MONITOR", testcase, vector);
GUEST_ASSERT_MONITOR_MWAIT("MWAIT", testcase, vector);
int testcase;
for (testcase = 0; testcase <= TEST_MAX; testcase++) {
vcpu_args_set(vcpu, 1, (void *)(long)testcase);
if (testcase & MWAIT_QUIRK_DISABLED) {
if (testcase & MISC_ENABLES_QUIRK_DISABLED) {
static const struct testcase testcases[] = {
const struct testcase *tc = &testcases[i];
struct testcase ht[] = {
static int run_test(struct testcase *test, int count)
struct testcase *t = test + i;
static struct testcase *testcases;
static struct testcase *hugetlb_testcases;
struct testcase t[] = {
.testcase = 1,
.testcase = 2,
.testcase = 3,
.testcase = 4,
.testcase = 5,
.testcase = 6,
.testcase = 7,
.testcase = 8,
.testcase = 9,
.testcase = 10,
.testcase = 11,
.testcase = 12,
.testcase = 13,
.testcase = 14,
static int send_can_frames(int sock, int testcase)
.testcase = 15,
.testcase = 16,
.testcase = 17,
.testcase = 18,
frame.data[0] = testcase;
ret = send_can_frames(self->sock, variant->testcase);
ASSERT_EQ(variant->testcase, frame.data[0])
int testcase;
struct testcase testcases_v6[] = {
static void run_one(struct testcase *test, int fdt, int fdr,
struct testcase *tests, *test;
struct testcase testcases_v4[] = {
testcase(0);
testcase(1);
return test_harness(testcase, "strlen");