Lines Matching refs:bit
51 #define test_cpu_cap(c, bit) \ argument
52 arch_test_bit(bit, (unsigned long *)((c)->x86_capability))
54 #define cpu_has(c, bit) \ argument
55 (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
56 test_cpu_cap(c, bit))
58 #define this_cpu_has(bit) \ argument
59 (__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 : \
60 x86_this_cpu_test_bit(bit, cpu_info.x86_capability))
71 #define cpu_feature_enabled(bit) \ argument
72 (__builtin_constant_p(bit) && DISABLED_MASK_BIT_SET(bit) ? 0 : static_cpu_has(bit))
74 #define boot_cpu_has(bit) cpu_has(&boot_cpu_data, bit) argument
76 #define set_cpu_cap(c, bit) set_bit(bit, (unsigned long *)((c)->x86_capability)) argument
78 extern void setup_clear_cpu_cap(unsigned int bit);
79 extern void clear_cpu_cap(struct cpuinfo_x86 *c, unsigned int bit);
82 #define setup_force_cpu_cap(bit) do { \ argument
84 if (!boot_cpu_has(bit)) \
87 set_cpu_cap(&boot_cpu_data, bit); \
88 set_bit(bit, (unsigned long *)cpu_caps_set); \
91 #define setup_force_cpu_bug(bit) setup_force_cpu_cap(bit) argument
99 static __always_inline bool _static_cpu_has(u16 bit) in _static_cpu_has() argument
108 : : [feature] "i" (bit), in _static_cpu_has()
109 [bitnum] "i" (1 << (bit & 7)), in _static_cpu_has()
110 [cap_byte] "i" (&((const char *)boot_cpu_data.x86_capability)[bit >> 3]) in _static_cpu_has()
118 #define static_cpu_has(bit) \ argument
120 __builtin_constant_p(boot_cpu_has(bit)) ? \
121 boot_cpu_has(bit) : \
122 _static_cpu_has(bit) \
125 #define cpu_has_bug(c, bit) cpu_has(c, (bit)) argument
126 #define set_cpu_bug(c, bit) set_cpu_cap(c, (bit)) argument
127 #define clear_cpu_bug(c, bit) clear_cpu_cap(c, (bit)) argument
129 #define static_cpu_has_bug(bit) static_cpu_has((bit)) argument
130 #define boot_cpu_has_bug(bit) cpu_has_bug(&boot_cpu_data, (bit)) argument
131 #define boot_cpu_set_bug(bit) set_cpu_cap(&boot_cpu_data, (bit)) argument