Lines Matching refs:cpu
103 unsigned int mpidr, cpu, cluster; in hip04_boot_secondary() local
108 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_boot_secondary()
113 if (cluster >= HIP04_MAX_CLUSTERS || cpu >= HIP04_MAX_CPUS_PER_CLUSTER) in hip04_boot_secondary()
118 if (hip04_cpu_table[cluster][cpu]) in hip04_boot_secondary()
133 data = CORE_RESET_BIT(cpu) | NEON_RESET_BIT(cpu) | \ in hip04_boot_secondary()
134 CORE_DEBUG_RESET_BIT(cpu); in hip04_boot_secondary()
149 hip04_cpu_table[cluster][cpu]++; in hip04_boot_secondary()
158 unsigned int mpidr, cpu, cluster; in hip04_cpu_die() local
162 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_cpu_die()
166 hip04_cpu_table[cluster][cpu]--; in hip04_cpu_die()
167 if (hip04_cpu_table[cluster][cpu] == 1) { in hip04_cpu_die()
171 } else if (hip04_cpu_table[cluster][cpu] > 1) { in hip04_cpu_die()
172 pr_err("Cluster %d CPU%d boots multiple times\n", cluster, cpu); in hip04_cpu_die()
196 unsigned int mpidr, cpu, cluster; in hip04_cpu_kill() local
200 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_cpu_kill()
203 cpu >= HIP04_MAX_CPUS_PER_CLUSTER); in hip04_cpu_kill()
208 if (hip04_cpu_table[cluster][cpu]) in hip04_cpu_kill()
212 if (data & CORE_WFI_STATUS(cpu)) in hip04_cpu_kill()
221 data = CORE_RESET_BIT(cpu) | NEON_RESET_BIT(cpu) | \ in hip04_cpu_kill()
222 CORE_DEBUG_RESET_BIT(cpu); in hip04_cpu_kill()
227 if (data & CORE_RESET_STATUS(cpu)) in hip04_cpu_kill()
252 unsigned int mpidr, cpu, cluster; in hip04_cpu_table_init() local
255 cpu = MPIDR_AFFINITY_LEVEL(mpidr, 0); in hip04_cpu_table_init()
259 cpu >= HIP04_MAX_CPUS_PER_CLUSTER) { in hip04_cpu_table_init()
264 hip04_cpu_table[cluster][cpu] = 1; in hip04_cpu_table_init()