Lines Matching refs:mask
22 static ssize_t mlog_mask_show(u64 mask, char *buf) in mlog_mask_show() argument
26 if (__mlog_test_u64(mask, mlog_and_bits)) in mlog_mask_show()
28 else if (__mlog_test_u64(mask, mlog_not_bits)) in mlog_mask_show()
36 static ssize_t mlog_mask_store(u64 mask, const char *buf, size_t count) in mlog_mask_store() argument
39 __mlog_set_u64(mask, mlog_and_bits); in mlog_mask_store()
40 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store()
42 __mlog_set_u64(mask, mlog_not_bits); in mlog_mask_store()
43 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store()
45 __mlog_clear_u64(mask, mlog_not_bits); in mlog_mask_store()
46 __mlog_clear_u64(mask, mlog_and_bits); in mlog_mask_store()
53 void __mlog_printk(const u64 *mask, const char *func, int line, in __mlog_printk() argument
61 if (!__mlog_test_u64(*mask, mlog_and_bits) || in __mlog_printk()
62 __mlog_test_u64(*mask, mlog_not_bits)) in __mlog_printk()
65 if (*mask & ML_ERROR) { in __mlog_printk()
68 } else if (*mask & ML_NOTICE) { in __mlog_printk()
89 u64 mask; member
99 .mask = ML_##_name, \
132 return mlog_mask_show(mlog_attr->mask, buf); in mlog_show()
140 return mlog_mask_store(mlog_attr->mask, buf, count); in mlog_store()