Home
last modified time | relevance | path

Searched refs:bits_shift (Results 1 – 2 of 2) sorted by relevance

/trusted-firmware-a/plat/rockchip/rk3288/drivers/soc/
A Dsoc.h85 #define REG_W_MSK(bits_shift, msk) \ argument
86 ((msk) << ((bits_shift) + 16))
87 #define REG_VAL_CLRBITS(val, bits_shift, msk) \ argument
88 ((val) & (~((msk) << bits_shift)))
89 #define REG_SET_BITS(bits, bits_shift, msk) \ argument
90 (((bits) & (msk)) << (bits_shift))
91 #define REG_WMSK_BITS(bits, bits_shift, msk) \ argument
92 (REG_W_MSK(bits_shift, msk) | \
93 REG_SET_BITS(bits, bits_shift, msk))
/trusted-firmware-a/plat/rockchip/rk3368/drivers/soc/
A Dsoc.h121 #define REG_W_MSK(bits_shift, msk) \ argument
122 ((msk) << ((bits_shift) + 16))
123 #define REG_VAL_CLRBITS(val, bits_shift, msk) \ argument
124 (val & (~(msk << bits_shift)))
125 #define REG_SET_BITS(bits, bits_shift, msk) \ argument
126 (((bits) & (msk)) << (bits_shift))
127 #define REG_WMSK_BITS(bits, bits_shift, msk) \ argument
128 (REG_W_MSK(bits_shift, msk) | \
129 REG_SET_BITS(bits, bits_shift, msk))

Completed in 3 milliseconds