Lines Matching refs:feature
227 static __always_inline bool early_mmu_has_feature(unsigned long feature) in early_mmu_has_feature() argument
229 if (MMU_FTRS_ALWAYS & feature) in early_mmu_has_feature()
232 return !!(MMU_FTRS_POSSIBLE & cur_cpu_spec->mmu_features & feature); in early_mmu_has_feature()
244 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
249 BUILD_BUG_ON(!__builtin_constant_p(feature)); in mmu_has_feature()
256 return early_mmu_has_feature(feature); in mmu_has_feature()
260 if (MMU_FTRS_ALWAYS & feature) in mmu_has_feature()
263 if (!(MMU_FTRS_POSSIBLE & feature)) in mmu_has_feature()
266 i = __builtin_ctzl(feature); in mmu_has_feature()
270 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument
274 i = __builtin_ctzl(feature); in mmu_clear_feature()
275 cur_cpu_spec->mmu_features &= ~feature; in mmu_clear_feature()
285 static __always_inline bool mmu_has_feature(unsigned long feature) in mmu_has_feature() argument
287 return early_mmu_has_feature(feature); in mmu_has_feature()
290 static inline void mmu_clear_feature(unsigned long feature) in mmu_clear_feature() argument
292 cur_cpu_spec->mmu_features &= ~feature; in mmu_clear_feature()