Searched refs:log2_mod_t (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/iommu/generic_pt/ |
| H A D | pt_log2.h | 34 #define log2_mod_t(type, a, b_lg2) \ macro 36 static_assert(log2_mod_t(unsigned int, 1, 2) == 1); 44 (log2_mod_t(type, a, b_lg2) == log2_to_max_int_t(type, b_lg2))
|
| H A D | pt_defs.h | 239 #define log2_mod(a, b_lg2) log2_mod_t(pt_vaddr_t, a, b_lg2) 264 return log2_mod_t(pt_vaddr_t, a, b_lg2); in fvalog2_mod() 295 #define oalog2_mod(a, b_lg2) log2_mod_t(pt_oaddr_t, a, b_lg2)
|
| H A D | kunit_generic_pt.h | 179 KUNIT_ASSERT_EQ(test, log2_mod_t(u32, val, ffs_t(u32, val)), 0); in test_bitops() 180 KUNIT_ASSERT_EQ(test, log2_mod_t(u64, val, ffs_t(u64, val)), 0); in test_bitops() 182 KUNIT_ASSERT_EQ(test, log2_mod_t(u32, val, ffz_t(u32, val)), in test_bitops() 184 KUNIT_ASSERT_EQ(test, log2_mod_t(u64, val, ffz_t(u64, val)), in test_bitops()
|