/external/cpuinfo/src/arm/ |
D | cache.c | 17 struct cpuinfo_cache l1i[restrict static 1], in cpuinfo_arm_decode_cache() 33 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 46 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 63 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 82 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 137 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 205 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 248 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 305 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 356 *l1i = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() [all …]
|
D | api.h | 103 struct cpuinfo_cache l1i[restrict static 1], 118 struct cpuinfo_cache l1i[1],
|
/external/cpuinfo/test/ |
D | arm-cache.cc | 18 struct cpuinfo_cache l1i = { 0 }; in TEST() local 25 &l1i, &l1d, &l2, &l3); in TEST() 26 EXPECT_EQ(32 * 1024, l1i.size); in TEST() 39 struct cpuinfo_cache l1i = { 0 }; in TEST() local 46 &l1i, &l1d, &l2, &l3); in TEST() 47 EXPECT_EQ(32 * 1024, l1i.size); in TEST() 61 struct cpuinfo_cache l1i = { 0 }; in TEST() local 68 &l1i, &l1d, &l2, &l3); in TEST() 69 EXPECT_EQ(32 * 1024, l1i.size); in TEST() 83 struct cpuinfo_cache l1i = { 0 }; in TEST() local [all …]
|
D | init.cc | 119 const cpuinfo_cache* l1i = processor->cache.l1i; in TEST() local 120 if (l1i != nullptr) { in TEST() 121 EXPECT_GE(i, l1i->processor_start); in TEST() 122 EXPECT_LT(i, l1i->processor_start + l1i->processor_count); in TEST() 906 EXPECT_EQ(cache, processor->cache.l1i); in TEST()
|
/external/cpuinfo/src/x86/mach/ |
D | init.c | 25 struct cpuinfo_cache* l1i = NULL; in cpuinfo_x86_mach_init() local 124 if (x86_processor.cache.l1i.size != 0 || x86_processor.cache.l1d.size != 0) { in cpuinfo_x86_mach_init() 187 if (x86_processor.cache.l1i.size != 0) { in cpuinfo_x86_mach_init() 188 l1i = calloc(l1_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_mach_init() 189 if (l1i == NULL) { in cpuinfo_x86_mach_init() 195 l1i[c] = (struct cpuinfo_cache) { in cpuinfo_x86_mach_init() 196 .size = x86_processor.cache.l1i.size, in cpuinfo_x86_mach_init() 197 .associativity = x86_processor.cache.l1i.associativity, in cpuinfo_x86_mach_init() 198 .sets = x86_processor.cache.l1i.sets, in cpuinfo_x86_mach_init() 199 .partitions = x86_processor.cache.l1i.partitions, in cpuinfo_x86_mach_init() [all …]
|
/external/cpuinfo/src/x86/linux/ |
D | init.c | 97 if (processor->cache.l1i.size != 0) { in cpuinfo_x86_count_objects() 98 const uint32_t l1i_id = apic_id & ~bit_mask(processor->cache.l1i.apic_bits); in cpuinfo_x86_count_objects() 152 struct cpuinfo_cache* l1i = NULL; in cpuinfo_x86_linux_init() local 302 l1i = calloc(l1i_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_linux_init() 303 if (l1i == NULL) { in cpuinfo_x86_linux_init() 443 if (x86_processor.cache.l1i.size != 0) { in cpuinfo_x86_linux_init() 444 const uint32_t l1i_id = apic_id & ~bit_mask(x86_processor.cache.l1i.apic_bits); in cpuinfo_x86_linux_init() 445 processors[i].cache.l1i = &l1i[l1i_index]; in cpuinfo_x86_linux_init() 449 l1i[++l1i_index] = (struct cpuinfo_cache) { in cpuinfo_x86_linux_init() 450 .size = x86_processor.cache.l1i.size, in cpuinfo_x86_linux_init() [all …]
|
/external/cpuinfo/src/emscripten/ |
D | init.c | 30 struct cpuinfo_cache* l1i = NULL; in cpuinfo_emscripten_init() local 80 l1i = calloc(core_count, sizeof(struct cpuinfo_cache)); in cpuinfo_emscripten_init() 81 if (l1i == NULL) { in cpuinfo_emscripten_init() 117 .cache.l1i = l1i + i, in cpuinfo_emscripten_init() 135 l1i[i] = (struct cpuinfo_cache) { in cpuinfo_emscripten_init() 231 cpuinfo_cache[cpuinfo_cache_level_1i] = l1i; in cpuinfo_emscripten_init() 268 l1i = l1d = l2 = NULL; in cpuinfo_emscripten_init() 274 free(l1i); in cpuinfo_emscripten_init()
|
/external/cpuinfo/src/x86/windows/ |
D | init.c | 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() 112 struct cpuinfo_cache* l1i = NULL; in cpuinfo_x86_windows_init() local 391 l1i = HeapAlloc(heap, HEAP_ZERO_MEMORY, l1i_count * sizeof(struct cpuinfo_cache)); in cpuinfo_x86_windows_init() 392 if (l1i == NULL) { 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() 440 processors[i].cache.l1i = &l1i[l1i_index]; in cpuinfo_x86_windows_init() 444 l1i[++l1i_index] = (struct cpuinfo_cache) { in cpuinfo_x86_windows_init() 445 .size = x86_processor.cache.l1i.size, in cpuinfo_x86_windows_init() [all …]
|
/external/cpuinfo/src/arm/mach/ |
D | init.c | 261 struct cpuinfo_cache* l1i = NULL; in cpuinfo_arm_mach_init() local 481 l1i = calloc(l1_count, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_mach_init() 482 if (l1i == NULL) { in cpuinfo_arm_mach_init() 488 l1i[c] = (struct cpuinfo_cache) { in cpuinfo_arm_mach_init() 500 processors[t].cache.l1i = &l1i[t / threads_per_l1]; in cpuinfo_arm_mach_init() 582 cpuinfo_cache[cpuinfo_cache_level_1i] = l1i; in cpuinfo_arm_mach_init() 607 l1i = l1d = l2 = l3 = NULL; in cpuinfo_arm_mach_init() 615 free(l1i); in cpuinfo_arm_mach_init()
|
/external/cpuinfo/src/arm/linux/ |
D | init.c | 110 struct cpuinfo_cache* l1i = NULL; in cpuinfo_arm_linux_init() local 480 l1i = calloc(valid_processors, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_linux_init() 481 if (l1i == NULL) { in cpuinfo_arm_linux_init() 535 processors[i].cache.l1i = l1i + i; in cpuinfo_arm_linux_init() 562 &l1i[i], &l1d[i], &temp_l2, &temp_l3); in cpuinfo_arm_linux_init() 563 l1i[i].processor_start = l1d[i].processor_start = i; in cpuinfo_arm_linux_init() 564 l1i[i].processor_count = l1d[i].processor_count = 1; in cpuinfo_arm_linux_init() 568 l1i[i] = (struct cpuinfo_cache) { in cpuinfo_arm_linux_init() 718 cpuinfo_cache[cpuinfo_cache_level_1i] = l1i; in cpuinfo_arm_linux_init() 747 l1i = l1d = l2 = l3 = NULL; in cpuinfo_arm_linux_init() [all …]
|
/external/cpuinfo/src/x86/cache/ |
D | deterministic.c | 49 cache->l1d = cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_deterministic_cache_parameters() 71 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_deterministic_cache_parameters() 178 cache->l1d = cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_properties() 200 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_properties()
|
D | descriptor.c | 107 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 122 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 137 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 347 cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 1158 cache->l1i = cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor()
|
/external/cpuinfo/src/x86/ |
D | api.h | 29 struct cpuinfo_x86_cache l1i; member
|
/external/cpuinfo/test/mock/ |
D | moto-g-gen3.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | galaxy-s3-us.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | moto-e-gen1.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | moto-g-gen1.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | lenovo-a6600-plus.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | galaxy-win-duos.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | galaxy-j1-2016.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | lg-optimus-g-pro.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | xperia-sl.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | nexus6.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | moto-g-gen2.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|
D | atm7029b-tablet.cc | 45 TEST(PROCESSORS, l1i) { in TEST() argument 47 ASSERT_EQ(cpuinfo_get_l1i_cache(i), cpuinfo_get_processor(i)->cache.l1i); in TEST()
|