Home
last modified time | relevance | path

Searched refs:__mask (Results 1 – 15 of 15) sorted by relevance

/linux-6.1.9/drivers/gpu/drm/i915/ !
Di915_reg_defs.h70 #define REG_FIELD_PREP(__mask, __val) \ argument
71 ((u32)((((typeof(__mask))(__val) << __bf_shf(__mask)) & (__mask)) + \
72 BUILD_BUG_ON_ZERO(!__is_constexpr(__mask)) + \
73 BUILD_BUG_ON_ZERO((__mask) == 0 || (__mask) > U32_MAX) + \
74 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
75 …D_BUG_ON_ZERO(__builtin_choose_expr(__is_constexpr(__val), (~((__mask) >> __bf_shf(__mask)) & (__v…
87 #define REG_FIELD_GET(__mask, __val) ((u32)FIELD_GET(__mask, __val)) argument
99 #define REG_FIELD_GET64(__mask, __val) ((u64)FIELD_GET(__mask, __val)) argument
/linux-6.1.9/drivers/net/wireless/ralink/rt2x00/ !
Drt2x00reg.h206 #define FIELD_CHECK(__mask, __type) \ argument
207 BUILD_BUG_ON(!(__mask) || \
208 !is_valid_mask(__mask) || \
209 (__mask) != (__type)(__mask)) \
211 #define FIELD8(__mask) \ argument
213 FIELD_CHECK(__mask, u8); \
215 compile_ffs8(__mask), (__mask) \
219 #define FIELD16(__mask) \ argument
221 FIELD_CHECK(__mask, u16); \
223 compile_ffs16(__mask), (__mask) \
[all …]
/linux-6.1.9/arch/s390/include/asm/ !
Dirqflags.h17 unsigned long __mask; \
20 : "=Q" (__mask) : "i" (__or) : "memory"); \
21 __mask; \
27 unsigned long __mask; \
30 : "=Q" (__mask) : "i" (__and) : "memory"); \
31 __mask; \
/linux-6.1.9/drivers/pinctrl/spear/ !
Dpinctrl-spear.h61 #define DEFINE_MUXREG(__pins, __muxreg, __mask, __ste) \ argument
65 .mask = __mask, \
66 .val = __ste ? __mask : 0, \
70 #define DEFINE_2_MUXREG(__pins, __muxreg1, __muxreg2, __mask, __ste1, __ste2) \ argument
74 .mask = __mask, \
75 .val = __ste1 ? __mask : 0, \
78 .mask = __mask, \
79 .val = __ste2 ? __mask : 0, \
/linux-6.1.9/arch/riscv/include/asm/ !
Dbitops.h38 unsigned long __res, __mask; \
39 __mask = BIT_MASK(nr); \
43 : "r" (mod(__mask)) \
45 ((__res & __mask) != 0); \
/linux-6.1.9/drivers/net/ethernet/smsc/ !
Dsmc911x.h717 int __mask; \
719 __mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<24); \
720 SMC_SET_FIFO_INT( (lp), __mask | (x)<<24 ); \
726 int __mask; \
728 __mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<16); \
729 SMC_SET_FIFO_INT( (lp), __mask | (((x) & 0xFF)<<16)); \
735 int __mask; \
737 __mask = SMC_GET_FIFO_INT((lp)) & ~(0xFF<<8); \
738 SMC_SET_FIFO_INT( (lp), __mask | (((x) & 0xFF)<<8)); \
744 int __mask; \
[all …]
Dsmc911x.c149 unsigned int __mask; \
150 __mask = SMC_GET_INT_EN((lp)); \
151 __mask |= (x); \
152 SMC_SET_INT_EN((lp), __mask); \
157 unsigned int __mask; \
158 __mask = SMC_GET_INT_EN((lp)); \
159 __mask &= ~(x); \
160 SMC_SET_INT_EN((lp), __mask); \
Dsmc91x.h896 int __mask; \
898 __mask = SMC_inw(ioaddr, INT_REG(lp)) & ~0xff; \
899 SMC_outw(lp, __mask | (x), ioaddr, INT_REG(lp)); \
/linux-6.1.9/drivers/gpu/drm/i2c/ !
Dch7006_priv.h142 #define __mask(src, bitfield) \ macro
144 #define mask(bitfield) __mask(bitfield)
147 (((x) >> (src) << (0 ? bitfield)) & __mask(src, bitfield))
155 ((x & __mask(src, bitfield)) >> (0 ? bitfield) << (src))
/linux-6.1.9/arch/x86/include/asm/ !
Dparavirt_types.h442 ({ unsigned long __mask = ~0UL; \
445 case 1: __mask = 0xffUL; break; \
446 case 2: __mask = 0xffffUL; break; \
447 case 4: __mask = 0xffffffffUL; break; \
450 __mask & __eax; \
/linux-6.1.9/drivers/gpu/drm/i915/display/ !
Dintel_display.h198 #define for_each_dbuf_slice_in_mask(__dev_priv, __slice, __mask) \ argument
200 for_each_if((__mask) & BIT(__slice))
380 #define for_each_pipe_masked(__dev_priv, __p, __mask) \ argument
382 for_each_if((__mask) & BIT(__p))
388 #define for_each_cpu_transcoder_masked(__dev_priv, __t, __mask) \ argument
390 for_each_if ((__mask) & BIT(__t))
Dintel_display_power.h153 #define for_each_power_domain(__domain, __mask) \ argument
155 for_each_if(test_bit((__domain), (__mask)->bits))
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/ !
Dbnx2x.h97 #define DP(__mask, fmt, ...) \ argument
99 if (unlikely(bp->msg_enable & (__mask))) \
103 #define DP_AND(__mask, fmt, ...) \ argument
105 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \
109 #define DP_CONT(__mask, fmt, ...) \ argument
111 if (unlikely(bp->msg_enable & (__mask))) \
/linux-6.1.9/drivers/mmc/core/ !
Dsd.c61 const u32 __mask = (__size < 32 ? 1 << __size : 0) - 1; \
69 __res & __mask; \
Dmmc.c57 const u32 __mask = (__size < 32 ? 1 << __size : 0) - 1; \
65 __res & __mask; \