Lines Matching +full:pass +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
10 * SB1250 specification level: User's manual 1/02/02
24 * 'long long' (64-bit integer) support.
45 * #if SIBYTE_HDR_FEATURE(chip,pass)
54 * Note also that 'chip' and 'pass' must textually exactly
59 * #if SIBYTE_HDR_FEATURE_UP_TO(chip,pass)
64 * #if SIBYTE_HDR_FEATURE_EXACT(chip,pass)
98 #define SIBYTE_HDR_FMASK(chip, pass) \ argument
99 (SIBYTE_HDR_FMASK_ ## chip ## _ ## pass)
121 #define SIBYTE_HDR_FMASK_BEFORE(chip, pass) \ argument
122 ((SIBYTE_HDR_FMASK(chip, pass) - 1) & SIBYTE_HDR_FMASK_ALLREVS(chip))
125 #define SIBYTE_HDR_FMASK_AFTER(chip, pass) \ argument
126 (~(SIBYTE_HDR_FMASK(chip, pass) \
127 | (SIBYTE_HDR_FMASK(chip, pass) - 1)) & SIBYTE_HDR_FMASK_ALLREVS(chip))
141 #define SIBYTE_HDR_FEATURE(chip, pass) \ argument
142 (!! ((SIBYTE_HDR_FMASK(chip, pass) \
143 | SIBYTE_HDR_FMASK_AFTER(chip, pass)) & SIBYTE_HDR_FEATURES))
146 #define SIBYTE_HDR_FEATURE_EXACT(chip, pass) \ argument
147 (!! (SIBYTE_HDR_FMASK(chip, pass) & SIBYTE_HDR_FEATURES))
150 #define SIBYTE_HDR_FEATURE_UP_TO(chip, pass) \ argument
151 (!! ((SIBYTE_HDR_FMASK(chip, pass) \
152 | SIBYTE_HDR_FMASK_BEFORE(chip, pass)) & SIBYTE_HDR_FEATURES))
159 * For multi-bit fields, all bits in the field will
162 * K_xxx "Code" constant (value for data in a multi-bit
182 * G_xxx(X) GET value. This macro obtains a multi-bit field
196 * Cast to 64-bit number. Presumably the syntax is different in
212 * Make a mask for 1 bit at position 'n'
215 #define _SB_MAKEMASK1(n) (_SB_MAKE64(1) << _SB_MAKE64(n))
216 #define _SB_MAKEMASK1_32(n) (_SB_MAKE32(1) << _SB_MAKE32(n))
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