Lines Matching refs:midr
39 inline static uint32_t midr_set_implementer(uint32_t midr, uint32_t implementer) { in midr_set_implementer() argument
40 return (midr & ~CPUINFO_ARM_MIDR_IMPLEMENTER_MASK) | in midr_set_implementer()
44 inline static uint32_t midr_set_variant(uint32_t midr, uint32_t variant) { in midr_set_variant() argument
45 return (midr & ~CPUINFO_ARM_MIDR_VARIANT_MASK) | in midr_set_variant()
49 inline static uint32_t midr_set_architecture(uint32_t midr, uint32_t architecture) { in midr_set_architecture() argument
50 return (midr & ~CPUINFO_ARM_MIDR_ARCHITECTURE_MASK) | in midr_set_architecture()
54 inline static uint32_t midr_set_part(uint32_t midr, uint32_t part) { in midr_set_part() argument
55 return (midr & ~CPUINFO_ARM_MIDR_PART_MASK) | in midr_set_part()
59 inline static uint32_t midr_set_revision(uint32_t midr, uint32_t revision) { in midr_set_revision() argument
60 return (midr & ~CPUINFO_ARM_MIDR_REVISION_MASK) | in midr_set_revision()
64 inline static uint32_t midr_get_variant(uint32_t midr) { in midr_get_variant() argument
65 return (midr & CPUINFO_ARM_MIDR_VARIANT_MASK) >> CPUINFO_ARM_MIDR_VARIANT_OFFSET; in midr_get_variant()
68 inline static uint32_t midr_get_implementer(uint32_t midr) { in midr_get_implementer() argument
69 return (midr & CPUINFO_ARM_MIDR_IMPLEMENTER_MASK) >> CPUINFO_ARM_MIDR_IMPLEMENTER_OFFSET; in midr_get_implementer()
72 inline static uint32_t midr_get_part(uint32_t midr) { in midr_get_part() argument
73 return (midr & CPUINFO_ARM_MIDR_PART_MASK) >> CPUINFO_ARM_MIDR_PART_OFFSET; in midr_get_part()
76 inline static uint32_t midr_get_revision(uint32_t midr) { in midr_get_revision() argument
77 return (midr & CPUINFO_ARM_MIDR_REVISION_MASK) >> CPUINFO_ARM_MIDR_REVISION_OFFSET; in midr_get_revision()
80 inline static uint32_t midr_copy_implementer(uint32_t midr, uint32_t other_midr) { in midr_copy_implementer() argument
81 …return (midr & ~CPUINFO_ARM_MIDR_IMPLEMENTER_MASK) | (other_midr & CPUINFO_ARM_MIDR_IMPLEMENTER_MA… in midr_copy_implementer()
84 inline static uint32_t midr_copy_variant(uint32_t midr, uint32_t other_midr) { in midr_copy_variant() argument
85 return (midr & ~CPUINFO_ARM_MIDR_VARIANT_MASK) | (other_midr & CPUINFO_ARM_MIDR_VARIANT_MASK); in midr_copy_variant()
88 inline static uint32_t midr_copy_architecture(uint32_t midr, uint32_t other_midr) { in midr_copy_architecture() argument
89 …return (midr & ~CPUINFO_ARM_MIDR_ARCHITECTURE_MASK) | (other_midr & CPUINFO_ARM_MIDR_ARCHITECTURE_… in midr_copy_architecture()
92 inline static uint32_t midr_copy_part(uint32_t midr, uint32_t other_midr) { in midr_copy_part() argument
93 return (midr & ~CPUINFO_ARM_MIDR_PART_MASK) | (other_midr & CPUINFO_ARM_MIDR_PART_MASK); in midr_copy_part()
96 inline static uint32_t midr_copy_revision(uint32_t midr, uint32_t other_midr) { in midr_copy_revision() argument
97 return (midr & ~CPUINFO_ARM_MIDR_REVISION_MASK) | (other_midr & CPUINFO_ARM_MIDR_REVISION_MASK); in midr_copy_revision()
100 inline static bool midr_is_arm1156(uint32_t midr) { in midr_is_arm1156() argument
102 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_ARM1156 & uarch_mask); in midr_is_arm1156()
105 inline static bool midr_is_arm11(uint32_t midr) { in midr_is_arm11() argument
106 return (midr & (CPUINFO_ARM_MIDR_IMPLEMENTER_MASK | 0x0000F000)) == UINT32_C(0x4100B000); in midr_is_arm11()
109 inline static bool midr_is_cortex_a9(uint32_t midr) { in midr_is_cortex_a9() argument
111 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_CORTEX_A9 & uarch_mask); in midr_is_cortex_a9()
114 inline static bool midr_is_scorpion(uint32_t midr) { in midr_is_scorpion() argument
115 switch (midr & (CPUINFO_ARM_MIDR_IMPLEMENTER_MASK | CPUINFO_ARM_MIDR_PART_MASK)) { in midr_is_scorpion()
124 inline static bool midr_is_krait(uint32_t midr) { in midr_is_krait() argument
125 switch (midr & (CPUINFO_ARM_MIDR_IMPLEMENTER_MASK | CPUINFO_ARM_MIDR_PART_MASK)) { in midr_is_krait()
134 inline static bool midr_is_cortex_a53(uint32_t midr) { in midr_is_cortex_a53() argument
136 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_CORTEX_A53 & uarch_mask); in midr_is_cortex_a53()
139 inline static bool midr_is_qualcomm_cortex_a53_silver(uint32_t midr) { in midr_is_qualcomm_cortex_a53_silver() argument
141 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_KRYO280_SILVER & uarch_mask); in midr_is_qualcomm_cortex_a53_silver()
144 inline static bool midr_is_qualcomm_cortex_a55_silver(uint32_t midr) { in midr_is_qualcomm_cortex_a55_silver() argument
146 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_KRYO385_SILVER & uarch_mask); in midr_is_qualcomm_cortex_a55_silver()
149 inline static bool midr_is_kryo280_gold(uint32_t midr) { in midr_is_kryo280_gold() argument
151 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_KRYO280_GOLD & uarch_mask); in midr_is_kryo280_gold()
154 inline static bool midr_is_kryo_silver(uint32_t midr) { in midr_is_kryo_silver() argument
157 switch (midr & uarch_mask) { in midr_is_kryo_silver()
166 inline static bool midr_is_kryo_gold(uint32_t midr) { in midr_is_kryo_gold() argument
168 return (midr & uarch_mask) == (CPUINFO_ARM_MIDR_KRYO_GOLD & uarch_mask); in midr_is_kryo_gold()
171 inline static uint32_t midr_score_core(uint32_t midr) { in midr_score_core() argument
173 switch (midr & core_mask) { in midr_score_core()
234 inline static uint32_t midr_little_core_for_big(uint32_t midr) { in midr_little_core_for_big() argument
237 switch (midr & core_mask) { in midr_little_core_for_big()
255 return midr; in midr_little_core_for_big()