Lines Matching refs:bit
54 #define test_cpu_cap(c, bit) \ argument
55 arch_test_bit(bit, (unsigned long *)((c)->x86_capability))
64 #define CHECK_BIT_IN_MASK_WORD(maskname, word, bit) \ argument
65 (((bit)>>5)==(word) && (1UL<<((bit)&31) & maskname##word ))
126 #define cpu_has(c, bit) \ argument
127 (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
128 test_cpu_cap(c, bit))
130 #define this_cpu_has(bit) \ argument
131 (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
132 x86_this_cpu_test_bit(bit, cpu_info.x86_capability))
142 #define cpu_feature_enabled(bit) \ argument
143 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
145 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) argument
147 #define set_cpu_cap(c, bit) set_bit(bit, (unsigned long *)((c)->x86_capability)) argument
149 extern void setup_clear_cpu_cap(unsigned int bit);
150 extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit);
152 #define setup_force_cpu_cap(bit) do { \ argument
154 if (!boot_cpu_has(bit)) \
157 set_cpu_cap(&boot_cpu_data, bit); \
158 set_bit(bit, (unsigned long *)cpu_caps_set); \
161 #define setup_force_cpu_bug(bit) setup_force_cpu_cap(bit) argument
176 static __always_inline bool _static_cpu_has(u16 bit) in _static_cpu_has() argument
185 : : [feature] "i" (bit), in _static_cpu_has()
186 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
187 [cap_byte] "i" (&((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
195 #define static_cpu_has(bit) \ argument
197 __builtin_constant_p(boot_cpu_has(bit)) ? \
198 boot_cpu_has(bit) : \
199 _static_cpu_has(bit) \
202 #define cpu_has_bug(c, bit) cpu_has(c, (bit)) argument
203 #define set_cpu_bug(c, bit) set_cpu_cap(c, (bit)) argument
204 #define clear_cpu_bug(c, bit) clear_cpu_cap(c, (bit)) argument
206 #define static_cpu_has_bug(bit) static_cpu_has((bit)) argument
207 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) argument
208 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit)) argument