Searched refs:l3_count (Results 1 – 5 of 5) sorted by relevance
/external/cpuinfo/src/x86/mach/ |
D | init.c | 154 uint32_t threads_per_l3 = 0, l3_count = 0; in cpuinfo_x86_mach_init() local 166 l3_count = mach_topology.threads / threads_per_l3; in cpuinfo_x86_mach_init() 167 cpuinfo_log_debug("detected %"PRIu32" L3 caches", l3_count); in cpuinfo_x86_mach_init() 259 if (l3_count != 0) { in cpuinfo_x86_mach_init() 260 l3 = calloc(l3_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_mach_init() 263 l3_count * sizeof(struct cpuinfo_cache), l3_count); in cpuinfo_x86_mach_init() 266 for (uint32_t c = 0; c < l3_count; c++) { in cpuinfo_x86_mach_init() 325 cpuinfo_cache_count[cpuinfo_cache_level_3] = l3_count; in cpuinfo_x86_mach_init()
|
/external/cpuinfo/src/arm/mach/ |
D | init.c | 472 uint32_t threads_per_l3 = 0, l3_count = 0; in cpuinfo_arm_mach_init() local 476 l3_count = 1; in cpuinfo_arm_mach_init() 477 cpuinfo_log_debug("detected %"PRIu32" L3 caches", l3_count); in cpuinfo_arm_mach_init() 552 if (l3_count != 0) { in cpuinfo_arm_mach_init() 553 l3 = calloc(l3_count, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_mach_init() 556 l3_count * sizeof(struct cpuinfo_cache), l3_count); in cpuinfo_arm_mach_init() 559 for (uint32_t c = 0; c < l3_count; c++) { in cpuinfo_arm_mach_init() 595 cpuinfo_cache_count[cpuinfo_cache_level_3] = l3_count; in cpuinfo_arm_mach_init()
|
/external/cpuinfo/src/x86/linux/ |
D | init.c | 70 uint32_t l1i_count = 0, l1d_count = 0, l2_count = 0, l3_count = 0, l4_count = 0; in cpuinfo_x86_count_objects() local 122 l3_count++; in cpuinfo_x86_count_objects() 140 *l3_count_ptr = l3_count; in cpuinfo_x86_count_objects() 250 uint32_t l1i_count = 0, l1d_count = 0, l2_count = 0, l3_count = 0, l4_count = 0; in cpuinfo_x86_linux_init() local 253 …&cores_count, &clusters_count, &packages_count, &l1i_count, &l1d_count, &l2_count, &l3_count, &l4_… in cpuinfo_x86_linux_init() 261 cpuinfo_log_debug("detected %"PRIu32" L3 caches", l3_count); in cpuinfo_x86_linux_init() 325 if (l3_count != 0) { in cpuinfo_x86_linux_init() 326 l3 = calloc(l3_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_linux_init() 329 l3_count * sizeof(struct cpuinfo_cache), l3_count); in cpuinfo_x86_linux_init() 589 cpuinfo_cache_count[cpuinfo_cache_level_3] = l3_count; in cpuinfo_x86_linux_init()
|
/external/cpuinfo/src/x86/windows/ |
D | init.c | 48 uint32_t l1i_count = 0, l1d_count = 0, l2_count = 0, l3_count = 0, l4_count = 0; in cpuinfo_x86_count_caches() local 80 l3_count++; in cpuinfo_x86_count_caches() 94 *l3_count_ptr = l3_count; in cpuinfo_x86_count_caches() 385 uint32_t l1i_count, l1d_count, l2_count, l3_count, l4_count; in cpuinfo_x86_windows_init() local 387 &l1i_count, &l1d_count, &l2_count, &l3_count, &l4_count); in cpuinfo_x86_windows_init() 414 if (l3_count != 0) { in cpuinfo_x86_windows_init() 415 l3 = HeapAlloc(heap, HEAP_ZERO_MEMORY, l3_count * sizeof(struct cpuinfo_cache)); in cpuinfo_x86_windows_init() 418 l3_count * sizeof(struct cpuinfo_cache), l3_count); in cpuinfo_x86_windows_init() 584 cpuinfo_cache_count[cpuinfo_cache_level_3] = l3_count; in cpuinfo_x86_windows_init()
|
/external/cpuinfo/src/arm/linux/ |
D | init.c | 510 uint32_t l2_count = 0, l3_count = 0, big_l3_size = 0, cluster_id = UINT32_MAX; in cpuinfo_arm_linux_init() local 599 l3_count = 1; in cpuinfo_arm_linux_init() 603 l3_count += 1; in cpuinfo_arm_linux_init() 626 if (l3_count != 0) { in cpuinfo_arm_linux_init() 627 l3 = calloc(l3_count, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_linux_init() 630 l3_count * sizeof(struct cpuinfo_cache), l3_count); in cpuinfo_arm_linux_init() 674 if (l3_index < l3_count) { in cpuinfo_arm_linux_init() 690 } else if (l3_index < l3_count) { in cpuinfo_arm_linux_init() 731 cpuinfo_cache_count[cpuinfo_cache_level_3] = l3_count; in cpuinfo_arm_linux_init()
|