Lines Matching full:cpuinfo
29 // The cpuinfo parser lives in a header file so it may be accessible from
98 // extract_cpuinfo_field extracts a /proc/cpuinfo field named |field| from
121 static int cpuinfo_field_equals(const STRING_PIECE *cpuinfo, const char *field, in cpuinfo_field_equals() argument
124 return extract_cpuinfo_field(&extracted, cpuinfo, field) && in cpuinfo_field_equals()
141 // from |cpuinfo|.
143 const STRING_PIECE *cpuinfo) { in crypto_get_arm_hwcap_from_cpuinfo() argument
144 if (cpuinfo_field_equals(cpuinfo, "CPU architecture", "8")) { in crypto_get_arm_hwcap_from_cpuinfo()
154 if (extract_cpuinfo_field(&features, cpuinfo, "Features") && in crypto_get_arm_hwcap_from_cpuinfo()
162 // value from |cpuinfo|.
164 const STRING_PIECE *cpuinfo) { in crypto_get_arm_hwcap2_from_cpuinfo() argument
166 if (!extract_cpuinfo_field(&features, cpuinfo, "Features")) { in crypto_get_arm_hwcap2_from_cpuinfo()
186 // crypto_cpuinfo_has_broken_neon returns one if |cpuinfo| matches a CPU known
188 static int crypto_cpuinfo_has_broken_neon(const STRING_PIECE *cpuinfo) { in crypto_cpuinfo_has_broken_neon() argument
189 return cpuinfo_field_equals(cpuinfo, "CPU implementer", "0x51") && in crypto_cpuinfo_has_broken_neon()
190 cpuinfo_field_equals(cpuinfo, "CPU architecture", "7") && in crypto_cpuinfo_has_broken_neon()
191 cpuinfo_field_equals(cpuinfo, "CPU variant", "0x1") && in crypto_cpuinfo_has_broken_neon()
192 cpuinfo_field_equals(cpuinfo, "CPU part", "0x04d") && in crypto_cpuinfo_has_broken_neon()
193 cpuinfo_field_equals(cpuinfo, "CPU revision", "0"); in crypto_cpuinfo_has_broken_neon()