/external/cpuinfo/src/arm/ |
D | cache.c | 18 struct cpuinfo_cache l1d[restrict static 1], in cpuinfo_arm_decode_cache() 38 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 51 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 68 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 87 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 142 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 210 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 253 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 310 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() 361 *l1d = (struct cpuinfo_cache) { in cpuinfo_arm_decode_cache() [all …]
|
D | api.h | 104 struct cpuinfo_cache l1d[restrict static 1], 119 struct cpuinfo_cache l1d[1],
|
/external/cpuinfo/test/ |
D | arm-cache.cc | 19 struct cpuinfo_cache l1d = { 0 }; in TEST() local 25 &l1i, &l1d, &l2, &l3); in TEST() 27 EXPECT_EQ(32 * 1024, l1d.size); in TEST() 40 struct cpuinfo_cache l1d = { 0 }; in TEST() local 46 &l1i, &l1d, &l2, &l3); in TEST() 48 EXPECT_EQ(32 * 1024, l1d.size); in TEST() 62 struct cpuinfo_cache l1d = { 0 }; in TEST() local 68 &l1i, &l1d, &l2, &l3); in TEST() 70 EXPECT_EQ(32 * 1024, l1d.size); in TEST() 84 struct cpuinfo_cache l1d = { 0 }; in TEST() local [all …]
|
D | init.cc | 133 const cpuinfo_cache* l1d = processor->cache.l1d; in TEST() local 134 if (l1d != nullptr) { in TEST() 135 EXPECT_GE(i, l1d->processor_start); in TEST() 136 EXPECT_LT(i, l1d->processor_start + l1d->processor_count); in TEST() 1071 EXPECT_EQ(cache, processor->cache.l1d); in TEST()
|
/external/cpuinfo/src/x86/mach/ |
D | init.c | 26 struct cpuinfo_cache* l1d = 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() 211 if (x86_processor.cache.l1d.size != 0) { in cpuinfo_x86_mach_init() 212 l1d = calloc(l1_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_mach_init() 213 if (l1d == NULL) { in cpuinfo_x86_mach_init() 219 l1d[c] = (struct cpuinfo_cache) { in cpuinfo_x86_mach_init() 220 .size = x86_processor.cache.l1d.size, in cpuinfo_x86_mach_init() 221 .associativity = x86_processor.cache.l1d.associativity, in cpuinfo_x86_mach_init() 222 .sets = x86_processor.cache.l1d.sets, in cpuinfo_x86_mach_init() 223 .partitions = x86_processor.cache.l1d.partitions, in cpuinfo_x86_mach_init() [all …]
|
/external/cpuinfo/src/x86/linux/ |
D | init.c | 104 if (processor->cache.l1d.size != 0) { in cpuinfo_x86_count_objects() 105 const uint32_t l1d_id = apic_id & ~bit_mask(processor->cache.l1d.apic_bits); in cpuinfo_x86_count_objects() 153 struct cpuinfo_cache* l1d = NULL; in cpuinfo_x86_linux_init() local 246 } else if (x86_processor.cache.l1d.size != 0) { in cpuinfo_x86_linux_init() 247 llc_apic_bits = x86_processor.cache.l1d.apic_bits; in cpuinfo_x86_linux_init() 310 l1d = calloc(l1d_count, sizeof(struct cpuinfo_cache)); in cpuinfo_x86_linux_init() 311 if (l1d == NULL) { in cpuinfo_x86_linux_init() 468 if (x86_processor.cache.l1d.size != 0) { in cpuinfo_x86_linux_init() 469 const uint32_t l1d_id = apic_id & ~bit_mask(x86_processor.cache.l1d.apic_bits); in cpuinfo_x86_linux_init() 470 processors[i].cache.l1d = &l1d[l1d_index]; in cpuinfo_x86_linux_init() [all …]
|
/external/cpuinfo/src/emscripten/ |
D | init.c | 31 struct cpuinfo_cache* l1d = NULL; in cpuinfo_emscripten_init() local 87 l1d = calloc(core_count, sizeof(struct cpuinfo_cache)); in cpuinfo_emscripten_init() 88 if (l1d == NULL) { in cpuinfo_emscripten_init() 118 .cache.l1d = l1d + i, in cpuinfo_emscripten_init() 145 l1d[i] = (struct cpuinfo_cache) { in cpuinfo_emscripten_init() 232 cpuinfo_cache[cpuinfo_cache_level_1d] = l1d; in cpuinfo_emscripten_init() 268 l1i = l1d = l2 = NULL; in cpuinfo_emscripten_init() 275 free(l1d); in cpuinfo_emscripten_init()
|
/external/cpuinfo/src/x86/windows/ |
D | init.c | 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() 113 struct cpuinfo_cache* l1d = NULL; in cpuinfo_x86_windows_init() local 399 l1d = HeapAlloc(heap, HEAP_ZERO_MEMORY, l1d_count * sizeof(struct cpuinfo_cache)); in cpuinfo_x86_windows_init() 400 if (l1d == NULL) { 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() 465 processors[i].cache.l1d = &l1d[l1d_index]; in cpuinfo_x86_windows_init() 469 l1d[++l1d_index] = (struct cpuinfo_cache) { in cpuinfo_x86_windows_init() 470 .size = x86_processor.cache.l1d.size, in cpuinfo_x86_windows_init() [all …]
|
/external/cpuinfo/src/arm/mach/ |
D | init.c | 262 struct cpuinfo_cache* l1d = NULL; in cpuinfo_arm_mach_init() local 505 l1d = calloc(l1_count, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_mach_init() 506 if (l1d == NULL) { in cpuinfo_arm_mach_init() 512 l1d[c] = (struct cpuinfo_cache) { in cpuinfo_arm_mach_init() 524 processors[t].cache.l1d = &l1d[t / threads_per_l1]; in cpuinfo_arm_mach_init() 583 cpuinfo_cache[cpuinfo_cache_level_1d] = l1d; in cpuinfo_arm_mach_init() 607 l1i = l1d = l2 = l3 = NULL; in cpuinfo_arm_mach_init() 616 free(l1d); in cpuinfo_arm_mach_init()
|
/external/cpuinfo/src/x86/cache/ |
D | descriptor.c | 152 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 180 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 195 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 210 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 332 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 829 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 882 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 895 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_descriptor() 908 cache->l1d = (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()
|
D | deterministic.c | 49 cache->l1d = cache->l1i = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_deterministic_cache_parameters() 60 cache->l1d = (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() 189 cache->l1d = (struct cpuinfo_x86_cache) { in cpuinfo_x86_decode_cache_properties()
|
/external/cpuinfo/src/ |
D | cache.c | 14 } else if (processor->cache.l1d != NULL) { in cpuinfo_compute_max_cache_size() 15 return processor->cache.l1d->size; in cpuinfo_compute_max_cache_size()
|
/external/cpuinfo/src/arm/linux/ |
D | init.c | 111 struct cpuinfo_cache* l1d = NULL; in cpuinfo_arm_linux_init() local 487 l1d = calloc(valid_processors, sizeof(struct cpuinfo_cache)); in cpuinfo_arm_linux_init() 488 if (l1d == NULL) { in cpuinfo_arm_linux_init() 536 processors[i].cache.l1d = l1d + 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() 578 l1d[i] = (struct cpuinfo_cache) { in cpuinfo_arm_linux_init() 719 cpuinfo_cache[cpuinfo_cache_level_1d] = l1d; in cpuinfo_arm_linux_init() 747 l1i = l1d = l2 = l3 = NULL; in cpuinfo_arm_linux_init() [all …]
|
/external/ruy/ruy/ |
D | cpuinfo.cc | 54 {processor->cache.l1d, processor->cache.l2, processor->cache.l3}) { in QueryCacheParams()
|
/external/cpuinfo/src/x86/ |
D | api.h | 30 struct cpuinfo_x86_cache l1d; member
|
/external/cpuinfo/test/mock/ |
D | moto-g-gen3.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | galaxy-s3-us.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | moto-e-gen1.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | moto-g-gen1.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | lenovo-a6600-plus.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | galaxy-win-duos.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | galaxy-j1-2016.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | lg-optimus-g-pro.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | xperia-sl.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|
D | nexus6.cc | 51 TEST(PROCESSORS, l1d) { in TEST() argument 53 ASSERT_EQ(cpuinfo_get_l1d_cache(i), cpuinfo_get_processor(i)->cache.l1d); in TEST()
|