Lines Matching +full:left +full:- +full:shifted
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
24 * 'long long' (64-bit integer) support.
122 ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip))
127 | (SIBYTE_HDR_FMASK(chip, pass) - 1)) & SIBYTE_HDR_FMASK_ALLREVS(chip))
159 * For multi-bit fields, all bits in the field will
162 * K_xxx "Code" constant (value for data in a multi-bit
167 * shifted to the correct position in the register.
170 * a field value (code) needs to be shifted
171 * (towards the left) to put the value in the right
182 * G_xxx(X) GET value. This macro obtains a multi-bit field
188 * K_xxx constant shifted to the correct position
196 * Cast to 64-bit number. Presumably the syntax is different in
222 #define _SB_MAKEMASK(v, n) (_SB_MAKE64((_SB_MAKE64(1)<<(v))-1) << _SB_MAKE64(n))
223 #define _SB_MAKEMASK_32(v, n) (_SB_MAKE32((_SB_MAKE32(1)<<(v))-1) << _SB_MAKE32(n))
236 * Macros to read/write on-chip registers