Lines Matching refs:cpu
61 int cpu;
63 cpu = beri_get_cpu();
65 return (cpu);
72 phandle_t cpus, cpu;
96 if ((cpu = OF_child(cpus)) <= 0) {
102 if (OF_getprop(cpu, "reg", ®, sizeof(reg)) <= 0) {
103 printf("%s: cpu device with no reg property\n",
108 printf("%s: cpu ID too large (%d > %d)\n", __func__,
112 cpu_of_nodes[reg] = cpu;
115 if (OF_getprop(cpu, "enable-method", &prop,
116 sizeof(prop)) <= 0 && OF_getprop(OF_parent(cpu),
128 if (OF_getprop(cpu, "cpu-release-addr", &se,
131 "cpu-release-addr\n", __func__, reg);
142 } while ((cpu = OF_peer(cpu)) > 0);
260 phandle_t cpu;
268 cpu = cpu_of_nodes[cpuid];
269 if (OF_getprop(cpu, "status", &prop, sizeof(prop)) <= 0) {
273 if (OF_getprop(OF_parent(cpu), "status", &prop,
282 if (OF_getprop(cpu, "enable-method", &prop, sizeof(prop)) <= 0) {
286 if (OF_getprop(OF_parent(cpu), "enable-method", &prop,
295 if (OF_getprop(cpu, "cpu-release-addr", &se, sizeof(se)) <= 0)
296 panic("%s: CPU %d has missing or invalid cpu-release-addr",