Lines Matching defs:cpi
124 cpuid_info_t *cpi = &cpuid_info;
126 return cpi;
138 cpi->cpi_vendor = reg >> 24;
139 cpi->cpi_model = (reg >> 4) & 0xfff;
140 switch (cpi->cpi_vendor)
147 strncpy (cpi->cpi_vendorstr, AARCH64_VENDORSTR_ARM, sizeof (cpi->cpi_vendorstr));
150 strncpy (cpi->cpi_vendorstr, "UNKNOWN ARM", sizeof (cpi->cpi_vendorstr));
154 __LINE__, (unsigned int) reg, cpi->cpi_vendor, cpi->cpi_model);
159 cpi->cpi_maxeax = regs.eax;
160 ((uint32_t *) cpi->cpi_vendorstr)[0] = regs.ebx;
161 ((uint32_t *) cpi->cpi_vendorstr)[1] = regs.edx;
162 ((uint32_t *) cpi->cpi_vendorstr)[2] = regs.ecx;
163 cpi->cpi_vendorstr[12] = 0;
164 cpi->cpi_vendor = cpuid_vendorstr_to_vendorcode (cpi->cpi_vendorstr);
167 cpi->cpi_model = CPI_MODEL (regs.eax);
168 cpi->cpi_family = CPI_FAMILY (regs.eax);
169 if (cpi->cpi_family == 0xf)
170 cpi->cpi_family += CPI_FAMILY_XTD (regs.eax);
177 switch (cpi->cpi_vendor)
180 if (IS_EXTENDED_MODEL_INTEL (cpi->cpi_family))
181 cpi->cpi_model += CPI_MODEL_XTD (regs.eax) << 4;
184 if (CPI_FAMILY (cpi->cpi_family) == 0xf)
185 cpi->cpi_model += CPI_MODEL_XTD (regs.eax) << 4;
188 if (cpi->cpi_model == 0xf)
189 cpi->cpi_model += CPI_MODEL_XTD (regs.eax) << 4;
194 cpi->cpi_vendor = 0;
195 cpi->cpi_family = 0;
196 cpi->cpi_model = 0;
210 cpi->cpi_vendor = res.value;
211 cpi->cpi_family = 0;
212 cpi->cpi_model = 0;
215 return cpi;