Lines Matching +full:0 +full:- +full:127
1 // SPDX-License-Identifier: GPL-2.0+
12 KUNIT_EXPECT_EQ(test, 1ul, GENMASK(0, 0)); in genmask_test()
13 KUNIT_EXPECT_EQ(test, 3ul, GENMASK(1, 0)); in genmask_test()
15 KUNIT_EXPECT_EQ(test, 0xFFFFFFFFul, GENMASK(31, 0)); in genmask_test()
19 GENMASK(0, 1); in genmask_test()
20 GENMASK(0, 10); in genmask_test()
29 KUNIT_EXPECT_EQ(test, 1ull, GENMASK_ULL(0, 0)); in genmask_ull_test()
30 KUNIT_EXPECT_EQ(test, 3ull, GENMASK_ULL(1, 0)); in genmask_ull_test()
31 KUNIT_EXPECT_EQ(test, 0x000000ffffe00000ull, GENMASK_ULL(39, 21)); in genmask_ull_test()
32 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, GENMASK_ULL(63, 0)); in genmask_ull_test()
36 GENMASK_ULL(0, 1); in genmask_ull_test()
37 GENMASK_ULL(0, 10); in genmask_ull_test()
46 KUNIT_EXPECT_EQ(test, 0x0000000000000001ull, GENMASK_U128(0, 0)); in genmask_u128_test()
47 KUNIT_EXPECT_EQ(test, 0x0000000000000003ull, GENMASK_U128(1, 0)); in genmask_u128_test()
48 KUNIT_EXPECT_EQ(test, 0x0000000000000006ull, GENMASK_U128(2, 1)); in genmask_u128_test()
49 KUNIT_EXPECT_EQ(test, 0x00000000ffffffffull, GENMASK_U128(31, 0)); in genmask_u128_test()
50 KUNIT_EXPECT_EQ(test, 0x000000ffffe00000ull, GENMASK_U128(39, 21)); in genmask_u128_test()
51 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, GENMASK_U128(63, 0)); in genmask_u128_test()
53 /* Above 64 bit masks - only 64 bit portion can be validated once */ in genmask_u128_test()
54 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, GENMASK_U128(64, 0) >> 1); in genmask_u128_test()
55 KUNIT_EXPECT_EQ(test, 0x00000000ffffffffull, GENMASK_U128(81, 50) >> 50); in genmask_u128_test()
56 KUNIT_EXPECT_EQ(test, 0x0000000000ffffffull, GENMASK_U128(87, 64) >> 64); in genmask_u128_test()
57 KUNIT_EXPECT_EQ(test, 0x0000000000ff0000ull, GENMASK_U128(87, 80) >> 64); in genmask_u128_test()
59 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, GENMASK_U128(127, 0) >> 64); in genmask_u128_test()
60 KUNIT_EXPECT_EQ(test, 0xffffffffffffffffull, (u64)GENMASK_U128(127, 0)); in genmask_u128_test()
61 KUNIT_EXPECT_EQ(test, 0x0000000000000003ull, GENMASK_U128(127, 126) >> 126); in genmask_u128_test()
62 KUNIT_EXPECT_EQ(test, 0x0000000000000001ull, GENMASK_U128(127, 127) >> 127); in genmask_u128_test()
65 GENMASK_U128(0, 1); in genmask_u128_test()
66 GENMASK_U128(0, 10); in genmask_u128_test()
78 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(x, 0)); in genmask_input_check_test()
79 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(0, x)); in genmask_input_check_test()
80 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(x, y)); in genmask_input_check_test()
82 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(z, 0)); in genmask_input_check_test()
83 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(0, z)); in genmask_input_check_test()
84 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(z, w)); in genmask_input_check_test()
87 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(1, 1)); in genmask_input_check_test()
88 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(39, 21)); in genmask_input_check_test()
89 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(100, 80)); in genmask_input_check_test()
90 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(110, 65)); in genmask_input_check_test()
91 KUNIT_EXPECT_EQ(test, 0, GENMASK_INPUT_CHECK(127, 0)); in genmask_input_check_test()
104 .name = "bits-test",