• Home
  • Raw
  • Download

Lines Matching refs:x86_processor

41 	const struct cpuinfo_x86_processor* x86_processor,  in cpuinfo_x86_count_caches()  argument
55 if (x86_processor->cache.l1i.size != 0) { in cpuinfo_x86_count_caches()
56 const uint32_t l1i_id = apic_id & ~bit_mask(x86_processor->cache.l1i.apic_bits); in cpuinfo_x86_count_caches()
62 if (x86_processor->cache.l1d.size != 0) { in cpuinfo_x86_count_caches()
63 const uint32_t l1d_id = apic_id & ~bit_mask(x86_processor->cache.l1d.apic_bits); in cpuinfo_x86_count_caches()
69 if (x86_processor->cache.l2.size != 0) { in cpuinfo_x86_count_caches()
70 const uint32_t l2_id = apic_id & ~bit_mask(x86_processor->cache.l2.apic_bits); in cpuinfo_x86_count_caches()
76 if (x86_processor->cache.l3.size != 0) { in cpuinfo_x86_count_caches()
77 const uint32_t l3_id = apic_id & ~bit_mask(x86_processor->cache.l3.apic_bits); in cpuinfo_x86_count_caches()
83 if (x86_processor->cache.l4.size != 0) { in cpuinfo_x86_count_caches()
84 const uint32_t l4_id = apic_id & ~bit_mask(x86_processor->cache.l4.apic_bits); in cpuinfo_x86_count_caches()
122 struct cpuinfo_x86_processor x86_processor; in cpuinfo_x86_windows_init() local
123 ZeroMemory(&x86_processor, sizeof(x86_processor)); in cpuinfo_x86_windows_init()
124 cpuinfo_x86_init_processor(&x86_processor); in cpuinfo_x86_windows_init()
126 cpuinfo_x86_normalize_brand_string(x86_processor.brand_string, brand_string); in cpuinfo_x86_windows_init()
128 const uint32_t thread_bits_mask = bit_mask(x86_processor.topology.thread_bits_length); in cpuinfo_x86_windows_init()
129 const uint32_t core_bits_mask = bit_mask(x86_processor.topology.core_bits_length); in cpuinfo_x86_windows_init()
131 x86_processor.topology.thread_bits_offset + x86_processor.topology.thread_bits_length, in cpuinfo_x86_windows_init()
132 x86_processor.topology.core_bits_offset + x86_processor.topology.core_bits_length); in cpuinfo_x86_windows_init()
262 …const uint32_t core_apic_id = (core_id & core_bits_mask) << x86_processor.topology.core_bits_offse… in cpuinfo_x86_windows_init()
284 ((smt_id & thread_bits_mask) << x86_processor.topology.thread_bits_offset) | in cpuinfo_x86_windows_init()
285 ((package_core_id & core_bits_mask) << x86_processor.topology.core_bits_offset); in cpuinfo_x86_windows_init()
359 (processor->apic_id >> x86_processor.topology.core_bits_offset); in cpuinfo_x86_windows_init()
360 core->vendor = x86_processor.vendor; in cpuinfo_x86_windows_init()
361 core->uarch = x86_processor.uarch; in cpuinfo_x86_windows_init()
362 core->cpuid = x86_processor.cpuid; in cpuinfo_x86_windows_init()
381 cpuinfo_x86_format_package_name(x86_processor.vendor, brand_string, package->name); in cpuinfo_x86_windows_init()
386 cpuinfo_x86_count_caches(processors_count, processors, &x86_processor, in cpuinfo_x86_windows_init()
438 if (x86_processor.cache.l1i.size != 0) { in cpuinfo_x86_windows_init()
439 const uint32_t l1i_id = apic_id & ~bit_mask(x86_processor.cache.l1i.apic_bits); in cpuinfo_x86_windows_init()
445 .size = x86_processor.cache.l1i.size, in cpuinfo_x86_windows_init()
446 .associativity = x86_processor.cache.l1i.associativity, in cpuinfo_x86_windows_init()
447 .sets = x86_processor.cache.l1i.sets, in cpuinfo_x86_windows_init()
448 .partitions = x86_processor.cache.l1i.partitions, in cpuinfo_x86_windows_init()
449 .line_size = x86_processor.cache.l1i.line_size, in cpuinfo_x86_windows_init()
450 .flags = x86_processor.cache.l1i.flags, in cpuinfo_x86_windows_init()
463 if (x86_processor.cache.l1d.size != 0) { in cpuinfo_x86_windows_init()
464 const uint32_t l1d_id = apic_id & ~bit_mask(x86_processor.cache.l1d.apic_bits); in cpuinfo_x86_windows_init()
470 .size = x86_processor.cache.l1d.size, in cpuinfo_x86_windows_init()
471 .associativity = x86_processor.cache.l1d.associativity, in cpuinfo_x86_windows_init()
472 .sets = x86_processor.cache.l1d.sets, in cpuinfo_x86_windows_init()
473 .partitions = x86_processor.cache.l1d.partitions, in cpuinfo_x86_windows_init()
474 .line_size = x86_processor.cache.l1d.line_size, in cpuinfo_x86_windows_init()
475 .flags = x86_processor.cache.l1d.flags, in cpuinfo_x86_windows_init()
488 if (x86_processor.cache.l2.size != 0) { in cpuinfo_x86_windows_init()
489 const uint32_t l2_id = apic_id & ~bit_mask(x86_processor.cache.l2.apic_bits); in cpuinfo_x86_windows_init()
495 .size = x86_processor.cache.l2.size, in cpuinfo_x86_windows_init()
496 .associativity = x86_processor.cache.l2.associativity, in cpuinfo_x86_windows_init()
497 .sets = x86_processor.cache.l2.sets, in cpuinfo_x86_windows_init()
498 .partitions = x86_processor.cache.l2.partitions, in cpuinfo_x86_windows_init()
499 .line_size = x86_processor.cache.l2.line_size, in cpuinfo_x86_windows_init()
500 .flags = x86_processor.cache.l2.flags, in cpuinfo_x86_windows_init()
513 if (x86_processor.cache.l3.size != 0) { in cpuinfo_x86_windows_init()
514 const uint32_t l3_id = apic_id & ~bit_mask(x86_processor.cache.l3.apic_bits); in cpuinfo_x86_windows_init()
520 .size = x86_processor.cache.l3.size, in cpuinfo_x86_windows_init()
521 .associativity = x86_processor.cache.l3.associativity, in cpuinfo_x86_windows_init()
522 .sets = x86_processor.cache.l3.sets, in cpuinfo_x86_windows_init()
523 .partitions = x86_processor.cache.l3.partitions, in cpuinfo_x86_windows_init()
524 .line_size = x86_processor.cache.l3.line_size, in cpuinfo_x86_windows_init()
525 .flags = x86_processor.cache.l3.flags, in cpuinfo_x86_windows_init()
538 if (x86_processor.cache.l4.size != 0) { in cpuinfo_x86_windows_init()
539 const uint32_t l4_id = apic_id & ~bit_mask(x86_processor.cache.l4.apic_bits); in cpuinfo_x86_windows_init()
545 .size = x86_processor.cache.l4.size, in cpuinfo_x86_windows_init()
546 .associativity = x86_processor.cache.l4.associativity, in cpuinfo_x86_windows_init()
547 .sets = x86_processor.cache.l4.sets, in cpuinfo_x86_windows_init()
548 .partitions = x86_processor.cache.l4.partitions, in cpuinfo_x86_windows_init()
549 .line_size = x86_processor.cache.l4.line_size, in cpuinfo_x86_windows_init()
550 .flags = x86_processor.cache.l4.flags, in cpuinfo_x86_windows_init()
589 .uarch = x86_processor.uarch, in cpuinfo_x86_windows_init()
590 .cpuid = x86_processor.cpuid, in cpuinfo_x86_windows_init()