Lines Matching refs:cache_info
108 uint32_t cache_info[4];
115 do_cpuid(0, cache_info);
117 if (cache_info[eax] < 4) {
138 cache_info[eax] = 4;
139 cache_info[ecx] = index;
140 cache_info[ebx] = 0;
141 cache_info[edx] = 0;
143 cpuid(cache_info);
148 if (bitfield(cache_info[eax], 4, 0) == 0)
154 this_level = bitfield(cache_info[eax], 7, 5);
166 nCPUsSharing = bitfield(cache_info[eax], 25, 14) + 1;
283 uint32_t cache_info[4];
286 do_cpuid(0, cache_info);
288 if (cache_info[eax] < 4) {
297 cache_info[eax] = 4;
298 cache_info[ecx] = index;
299 cache_info[ebx] = 0;
300 cache_info[edx] = 0;
302 cpuid(cache_info);
307 if (bitfield(cache_info[eax], 4, 0) == 0)
315 cur->type = bitfield(cache_info[eax], 4, 0);
316 cur->level = bitfield(cache_info[eax], 7, 5);
317 cur->maxcpus = (bitfield(cache_info[eax], 25, 14) + 1);
318 cur->line_size = bitfield(cache_info[ebx], 11, 0) + 1;
319 cur->partitions = bitfield(cache_info[ebx], 21, 12) + 1;
320 cur->ways = bitfield(cache_info[ebx], 31, 22) + 1;
321 nsets = bitfield(cache_info[ecx], 31, 0) + 1;