Lines Matching refs:packages
259 struct cpuinfo_package* packages = NULL; in cpuinfo_arm_mach_init() local
279 packages = calloc(mach_topology.packages, sizeof(struct cpuinfo_package)); in cpuinfo_arm_mach_init()
280 if (packages == NULL) { in cpuinfo_arm_mach_init()
282 mach_topology.packages * sizeof(struct cpuinfo_package), mach_topology.packages); in cpuinfo_arm_mach_init()
287 const uint32_t threads_per_package = mach_topology.threads / mach_topology.packages; in cpuinfo_arm_mach_init()
288 const uint32_t cores_per_package = mach_topology.cores / mach_topology.packages; in cpuinfo_arm_mach_init()
290 for (uint32_t i = 0; i < mach_topology.packages; i++) { in cpuinfo_arm_mach_init()
291 packages[i] = (struct cpuinfo_package) { in cpuinfo_arm_mach_init()
297 decode_package_name(packages[i].name); in cpuinfo_arm_mach_init()
375 .package = packages + i / cores_per_package, in cpuinfo_arm_mach_init()
390 processors[i].package = &packages[package_id]; in cpuinfo_arm_mach_init()
440 for (uint32_t i = 0; i < mach_topology.packages; i++) { in cpuinfo_arm_mach_init()
441 packages[i].cluster_start = 0; in cpuinfo_arm_mach_init()
442 packages[i].cluster_count = num_clusters; in cpuinfo_arm_mach_init()
580 cpuinfo_packages = packages; in cpuinfo_arm_mach_init()
590 cpuinfo_packages_count = mach_topology.packages; in cpuinfo_arm_mach_init()
605 packages = NULL; in cpuinfo_arm_mach_init()
613 free(packages); in cpuinfo_arm_mach_init()