Lines Matching refs:cpus
266 let mut cpus = ArrayVec::new(); localVariable
272 for (idx, cpu) in cpu_nodes.by_ref().take(cpus.capacity()).enumerate() {
283 cpus.push(info);
297 warn!("DT has more than {} CPU nodes: discarding extra nodes.", cpus.capacity());
300 Ok((cpus, cpu_map.map(|_| topology)))
303 fn validate_cpu_info(cpus: &[CpuInfo]) -> Result<(), FdtValidationError> { in validate_cpu_info()
304 if cpus.is_empty() { in validate_cpu_info()
329 cpus: &[CpuInfo], in validate_vcpufreq_info()
336 let expected_size = VCPUFREQ_SIZE_PER_CPU * cpus.len() as u64; in validate_vcpufreq_info()
386 cpus: &[CpuInfo], in patch_cpus()
391 for (idx, cpu) in cpus.iter().enumerate() { in patch_cpus()
400 let mut next = get_nth_compatible(fdt, cpus.len(), COMPAT)?; in patch_cpus()
918 cpus: ArrayVec<[CpuInfo; DeviceTreeInfo::MAX_CPUS]>, field
1030 let (cpus, cpu_topology) = read_cpu_info_from(fdt).map_err(|e| { in parse_device_tree()
1034 validate_cpu_info(&cpus).map_err(|e| { in parse_device_tree()
1044 validate_vcpufreq_info(info, &cpus).map_err(|e| { in parse_device_tree()
1103 cpus, in parse_device_tree()
1132 patch_cpus(fdt, &info.cpus, &info.cpu_topology).map_err(|e| { in patch_device_tree()
1152 patch_gic(fdt, info.cpus.len()).map_err(|e| { in patch_device_tree()
1156 patch_timer(fdt, info.cpus.len()).map_err(|e| { in patch_device_tree()