Lines Matching refs:function
199 static inline struct cpuid raw_cpuid(u32 function, u32 index) in raw_cpuid() argument
204 : "0"(function), "2"(index)); in raw_cpuid()
208 static inline struct cpuid cpuid_indexed(u32 function, u32 index) in cpuid_indexed() argument
210 u32 level = raw_cpuid(function & 0xf0000000, 0).a; in cpuid_indexed()
211 if (level < function) in cpuid_indexed()
213 return raw_cpuid(function, index); in cpuid_indexed()
216 static inline struct cpuid cpuid(u32 function) in cpuid() argument
218 return cpuid_indexed(function, 0); in cpuid()
234 u32 function; member
243 .function = fn, \
348 u32 function; member
357 .function = fn, \
413 static inline u32 __this_cpu_has(u32 function, u32 index, u8 reg, u8 lo, u8 hi) in __this_cpu_has() argument
420 c.cpuid = cpuid_indexed(function, index); in __this_cpu_has()
427 return __this_cpu_has(feature.function, feature.index, in this_cpu_has()
433 return __this_cpu_has(property.function, property.index, in this_cpu_property()
441 switch (property.function & 0xc0000000) { in this_cpu_has_p()
454 return max_leaf >= property.function; in this_cpu_has_p()