Lines Matching refs:rc
16 int rc; in test_and_compare_child() local
18 rc = prctl(PR_RISCV_V_SET_CONTROL, provided); in test_and_compare_child()
19 if (rc != 0) { in test_and_compare_child()
21 provided, rc); in test_and_compare_child()
24 rc = launch_test(NEXT_PROGRAM, inherit, xtheadvector); in test_and_compare_child()
25 if (rc != expected) { in test_and_compare_child()
26 printf("Test failed, check %d != %ld\n", rc, expected); in test_and_compare_child()
37 long rc; in TEST() local
42 rc = prctl(PR_RISCV_V_GET_CONTROL); in TEST()
43 EXPECT_EQ(-1, rc) in TEST()
51 long rc; in TEST() local
56 rc = prctl(PR_RISCV_V_SET_CONTROL, PR_RISCV_V_VSTATE_CTRL_ON); in TEST()
57 EXPECT_EQ(-1, rc) in TEST()
66 long rc; in TEST() local
72 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in TEST()
73 EXPECT_EQ(0, rc) TH_LOG("Enabling V for current should always succeed"); in TEST()
79 long rc; in TEST() local
85 rc = prctl(PR_RISCV_V_SET_CONTROL, flag); in TEST()
88 EXPECT_EQ(-1, rc) in TEST()
210 int rc; in TEST() local
215 rc = prctl(PR_RISCV_V_SET_CONTROL, 0xff0); in TEST()
216 EXPECT_EQ(-1, rc); in TEST()
223 int rc; in TEST() local
228 rc = prctl(PR_RISCV_V_SET_CONTROL, 0x3); in TEST()
229 EXPECT_EQ(-1, rc); in TEST()
236 int rc; in TEST() local
241 rc = prctl(PR_RISCV_V_SET_CONTROL, 0xc); in TEST()
242 EXPECT_EQ(-1, rc); in TEST()