Lines Matching refs:feature
151 static inline bool early_mmu_has_feature(unsigned long feature) in early_mmu_has_feature() argument
153 return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); in early_mmu_has_feature()
165 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
170 BUILD_BUG_ON(!__builtin_constant_p(feature)); in mmu_has_feature()
177 return early_mmu_has_feature(feature); in mmu_has_feature()
181 if (!(MMU_FTRS_POSSIBLE & feature)) in mmu_has_feature()
184 i = __builtin_ctzl(feature); in mmu_has_feature()
188 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument
192 i = __builtin_ctzl(feature); in mmu_clear_feature()
193 cur_cpu_spec->mmu_features &= ~feature; in mmu_clear_feature()
203 static inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
205 return early_mmu_has_feature(feature); in mmu_has_feature()
208 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument
210 cur_cpu_spec->mmu_features &= ~feature; in mmu_clear_feature()