Lines Matching defs:cpu
42 #include <machine/cpu.h>
65 static int powermac_smp_start_cpu(platform_t, struct pcpu *cpu);
125 powermac_smp_fill_cpuref(struct cpuref *cpuref, phandle_t cpu)
129 cpuref->cr_hwref = cpu;
130 res = OF_getprop(cpu, "reg", &cpuid, sizeof(cpuid));
148 phandle_t cpu, dev, root;
170 cpu = OF_child(dev);
172 while (cpu != 0) {
173 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
174 if (res > 0 && strcmp(buf, "cpu") == 0)
176 cpu = OF_peer(cpu);
178 if (cpu == 0)
181 return (powermac_smp_fill_cpuref(cpuref, cpu));
188 phandle_t cpu;
191 cpu = OF_peer(cpuref->cr_hwref);
192 while (cpu != 0) {
193 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
194 if (res > 0 && strcmp(buf, "cpu") == 0)
196 cpu = OF_peer(cpu);
198 if (cpu == 0)
201 return (powermac_smp_fill_cpuref(cpuref, cpu));
215 res = OF_getprop(chosen, "cpu", &inst, sizeof(inst));
227 phandle_t cpu;
232 cpu = pc->pc_hwref;
233 res = OF_getprop(cpu, "soft-reset", &reset, sizeof(reset));