• Home
  • Raw
  • Download

Lines Matching refs:arm_linux_processors

105 	struct cpuinfo_arm_linux_processor* arm_linux_processors = NULL;  in cpuinfo_arm_linux_init()  local
143arm_linux_processors = calloc(arm_linux_processors_count, sizeof(struct cpuinfo_arm_linux_processo… in cpuinfo_arm_linux_init()
144 if (arm_linux_processors == NULL) { in cpuinfo_arm_linux_init()
154 arm_linux_processors_count, &arm_linux_processors->flags, in cpuinfo_arm_linux_init()
161 arm_linux_processors_count, &arm_linux_processors->flags, in cpuinfo_arm_linux_init()
182 arm_linux_processors)) { in cpuinfo_arm_linux_init()
188 if (bitmask_all(arm_linux_processors[i].flags, valid_processor_mask)) { in cpuinfo_arm_linux_init()
189 arm_linux_processors[i].flags |= CPUINFO_LINUX_FLAG_VALID; in cpuinfo_arm_linux_init()
191 i, arm_linux_processors[i].midr); in cpuinfo_arm_linux_init()
200 arm_linux_processors[i].system_processor_id = i; in cpuinfo_arm_linux_init()
201 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
204 if (!(arm_linux_processors[i].flags & CPUINFO_ARM_LINUX_VALID_PROCESSOR)) { in cpuinfo_arm_linux_init()
212 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_ARM_LINUX_VALID_MIDR)) { in cpuinfo_arm_linux_init()
213 last_midr = arm_linux_processors[i].midr; in cpuinfo_arm_linux_init()
216 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_ARM_LINUX_VALID_ARCHITECTURE)) { in cpuinfo_arm_linux_init()
217 last_architecture_version = arm_linux_processors[i].architecture_version; in cpuinfo_arm_linux_init()
218 last_architecture_flags = arm_linux_processors[i].architecture_flags; in cpuinfo_arm_linux_init()
223 if (!(arm_linux_processors[i].flags & CPUINFO_ARM_LINUX_VALID_PROCESSOR)) { in cpuinfo_arm_linux_init()
258 …if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID | CPUINFO_ARM_LINUX_VALID_… in cpuinfo_arm_linux_init()
260 isa_features = arm_linux_processors[i].features; in cpuinfo_arm_linux_init()
261 isa_features2 = arm_linux_processors[i].features2; in cpuinfo_arm_linux_init()
263 isa_features &= arm_linux_processors[i].features; in cpuinfo_arm_linux_init()
264 isa_features2 &= arm_linux_processors[i].features2; in cpuinfo_arm_linux_init()
289 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
292 arm_linux_processors[i].max_frequency = max_frequency; in cpuinfo_arm_linux_init()
293 arm_linux_processors[i].flags |= CPUINFO_LINUX_FLAG_MAX_FREQUENCY; in cpuinfo_arm_linux_init()
298 arm_linux_processors[i].min_frequency = min_frequency; in cpuinfo_arm_linux_init()
299 arm_linux_processors[i].flags |= CPUINFO_LINUX_FLAG_MIN_FREQUENCY; in cpuinfo_arm_linux_init()
302 if (cpuinfo_linux_get_processor_package_id(i, &arm_linux_processors[i].package_id)) { in cpuinfo_arm_linux_init()
303 arm_linux_processors[i].flags |= CPUINFO_LINUX_FLAG_PACKAGE_ID; in cpuinfo_arm_linux_init()
310 arm_linux_processors[i].package_leader_id = i; in cpuinfo_arm_linux_init()
315 if (!bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
319 if (arm_linux_processors[i].flags & CPUINFO_LINUX_FLAG_PACKAGE_ID) { in cpuinfo_arm_linux_init()
323 arm_linux_processors); in cpuinfo_arm_linux_init()
330 …if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID | CPUINFO_LINUX_FLAG_PACKA… in cpuinfo_arm_linux_init()
333 const uint32_t package_leader_id = arm_linux_processors[i].package_leader_id; in cpuinfo_arm_linux_init()
335arm_linux_processors[i].package_leader_id = arm_linux_processors[package_leader_id].package_leader… in cpuinfo_arm_linux_init()
339 i, arm_linux_processors[i].package_leader_id); in cpuinfo_arm_linux_init()
353 …t_core_clusters_by_heuristic(valid_processors, arm_linux_processors_count, arm_linux_processors)) { in cpuinfo_arm_linux_init()
354 …rm_linux_detect_core_clusters_by_sequential_scan(arm_linux_processors_count, arm_linux_processors); in cpuinfo_arm_linux_init()
358 cpuinfo_arm_linux_count_cluster_processors(arm_linux_processors_count, arm_linux_processors); in cpuinfo_arm_linux_init()
362 arm_linux_processors_count, valid_processors, arm_linux_processors); in cpuinfo_arm_linux_init()
366 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
367 const uint32_t cluster_leader = arm_linux_processors[i].package_leader_id; in cpuinfo_arm_linux_init()
371 arm_linux_processors[cluster_leader].midr, in cpuinfo_arm_linux_init()
373 !!(arm_linux_processors[cluster_leader].features & CPUINFO_ARM_LINUX_FEATURE_VFPV4), in cpuinfo_arm_linux_init()
375 &arm_linux_processors[cluster_leader].vendor, in cpuinfo_arm_linux_init()
376 &arm_linux_processors[cluster_leader].uarch); in cpuinfo_arm_linux_init()
379 arm_linux_processors[i].flags |= arm_linux_processors[cluster_leader].flags & in cpuinfo_arm_linux_init()
381 arm_linux_processors[i].midr = arm_linux_processors[cluster_leader].midr; in cpuinfo_arm_linux_init()
382 arm_linux_processors[i].vendor = arm_linux_processors[cluster_leader].vendor; in cpuinfo_arm_linux_init()
383 arm_linux_processors[i].uarch = arm_linux_processors[cluster_leader].uarch; in cpuinfo_arm_linux_init()
384 arm_linux_processors[i].max_frequency = arm_linux_processors[cluster_leader].max_frequency; in cpuinfo_arm_linux_init()
390 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
392 i, arm_linux_processors[i].midr, arm_linux_processors[i].max_frequency); in cpuinfo_arm_linux_init()
396 qsort(arm_linux_processors, arm_linux_processors_count, in cpuinfo_arm_linux_init()
400 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
402 …i, arm_linux_processors[i].system_processor_id, arm_linux_processors[i].midr, arm_linux_processors in cpuinfo_arm_linux_init()
409 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
410 if (uarchs_count == 0 || arm_linux_processors[i].uarch != last_uarch) { in cpuinfo_arm_linux_init()
411 last_uarch = arm_linux_processors[i].uarch; in cpuinfo_arm_linux_init()
414 arm_linux_processors[i].uarch_index = uarchs_count - 1; in cpuinfo_arm_linux_init()
496 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_LINUX_FLAG_VALID)) { in cpuinfo_arm_linux_init()
497 if (uarchs_index == 0 || arm_linux_processors[i].uarch != last_uarch) { in cpuinfo_arm_linux_init()
498 last_uarch = arm_linux_processors[i].uarch; in cpuinfo_arm_linux_init()
500 .uarch = arm_linux_processors[i].uarch, in cpuinfo_arm_linux_init()
501 .midr = arm_linux_processors[i].midr, in cpuinfo_arm_linux_init()
515 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
519 .processor_count = arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
521 .core_count = arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
524 .vendor = arm_linux_processors[i].vendor, in cpuinfo_arm_linux_init()
525 .uarch = arm_linux_processors[i].uarch, in cpuinfo_arm_linux_init()
526 .midr = arm_linux_processors[i].midr, in cpuinfo_arm_linux_init()
534 processors[i].linux_id = (int) arm_linux_processors[i].system_processor_id; in cpuinfo_arm_linux_init()
537 linux_cpu_to_processor_map[arm_linux_processors[i].system_processor_id] = &processors[i]; in cpuinfo_arm_linux_init()
544 cores[i].vendor = arm_linux_processors[i].vendor; in cpuinfo_arm_linux_init()
545 cores[i].uarch = arm_linux_processors[i].uarch; in cpuinfo_arm_linux_init()
546 cores[i].midr = arm_linux_processors[i].midr; in cpuinfo_arm_linux_init()
547 linux_cpu_to_core_map[arm_linux_processors[i].system_processor_id] = &cores[i]; in cpuinfo_arm_linux_init()
550 linux_cpu_to_uarch_index_map[arm_linux_processors[i].system_processor_id] = in cpuinfo_arm_linux_init()
551 arm_linux_processors[i].uarch_index; in cpuinfo_arm_linux_init()
556 arm_linux_processors[i].uarch, in cpuinfo_arm_linux_init()
557 arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
558 arm_linux_processors[i].midr, in cpuinfo_arm_linux_init()
561 arm_linux_processors[i].architecture_version, in cpuinfo_arm_linux_init()
567 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_ARM_LINUX_VALID_ICACHE)) { in cpuinfo_arm_linux_init()
569 .size = arm_linux_processors[i].proc_cpuinfo_cache.i_size, in cpuinfo_arm_linux_init()
570 .associativity = arm_linux_processors[i].proc_cpuinfo_cache.i_assoc, in cpuinfo_arm_linux_init()
571 .sets = arm_linux_processors[i].proc_cpuinfo_cache.i_sets, in cpuinfo_arm_linux_init()
573 .line_size = arm_linux_processors[i].proc_cpuinfo_cache.i_line_length in cpuinfo_arm_linux_init()
577 if (bitmask_all(arm_linux_processors[i].flags, CPUINFO_ARM_LINUX_VALID_DCACHE)) { in cpuinfo_arm_linux_init()
579 .size = arm_linux_processors[i].proc_cpuinfo_cache.d_size, in cpuinfo_arm_linux_init()
580 .associativity = arm_linux_processors[i].proc_cpuinfo_cache.d_assoc, in cpuinfo_arm_linux_init()
581 .sets = arm_linux_processors[i].proc_cpuinfo_cache.d_sets, in cpuinfo_arm_linux_init()
583 .line_size = arm_linux_processors[i].proc_cpuinfo_cache.d_line_length in cpuinfo_arm_linux_init()
596 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
611 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
639 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
645 arm_linux_processors[i].uarch, in cpuinfo_arm_linux_init()
646 arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
647 arm_linux_processors[i].midr, in cpuinfo_arm_linux_init()
650 arm_linux_processors[i].architecture_version, in cpuinfo_arm_linux_init()
672 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
684 shared_l3 ? valid_processors : arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
695 if (arm_linux_processors[i].package_leader_id == arm_linux_processors[i].system_processor_id) { in cpuinfo_arm_linux_init()
705 .processor_count = arm_linux_processors[i].package_processor_count, in cpuinfo_arm_linux_init()
753 free(arm_linux_processors); in cpuinfo_arm_linux_init()