Lines Matching refs:l4
125 if (processor->cache.l4.size != 0) { in cpuinfo_x86_count_objects()
126 const uint32_t l4_id = apic_id & ~bit_mask(processor->cache.l4.apic_bits); in cpuinfo_x86_count_objects()
156 struct cpuinfo_cache* l4 = NULL; in cpuinfo_x86_linux_init() local
240 if (x86_processor.cache.l4.size != 0) { in cpuinfo_x86_linux_init()
241 llc_apic_bits = x86_processor.cache.l4.apic_bits; in cpuinfo_x86_linux_init()
334 l4 = calloc(l4_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_linux_init()
335 if (l4 == NULL) { in cpuinfo_x86_linux_init()
543 if (x86_processor.cache.l4.size != 0) { in cpuinfo_x86_linux_init()
544 const uint32_t l4_id = apic_id & ~bit_mask(x86_processor.cache.l4.apic_bits); in cpuinfo_x86_linux_init()
545 processors[i].cache.l4 = &l4[l4_index]; in cpuinfo_x86_linux_init()
549 l4[++l4_index] = (struct cpuinfo_cache) { in cpuinfo_x86_linux_init()
550 .size = x86_processor.cache.l4.size, in cpuinfo_x86_linux_init()
551 .associativity = x86_processor.cache.l4.associativity, in cpuinfo_x86_linux_init()
552 .sets = x86_processor.cache.l4.sets, in cpuinfo_x86_linux_init()
553 .partitions = x86_processor.cache.l4.partitions, in cpuinfo_x86_linux_init()
554 .line_size = x86_processor.cache.l4.line_size, in cpuinfo_x86_linux_init()
555 .flags = x86_processor.cache.l4.flags, in cpuinfo_x86_linux_init()
561 l4[l4_index].processor_count += 1; in cpuinfo_x86_linux_init()
563 processors[i].cache.l4 = &l4[l4_index]; in cpuinfo_x86_linux_init()
580 cpuinfo_cache[cpuinfo_cache_level_4] = l4; in cpuinfo_x86_linux_init()
612 l1i = l1d = l2 = l3 = l4 = NULL; in cpuinfo_x86_linux_init()
626 free(l4); in cpuinfo_x86_linux_init()