Lines Matching refs:cpu
42 #include <machine/cpu.h>
73 static int powernv_smp_start_cpu(platform_t, struct pcpu *cpu);
132 phandle_t cpu;
169 cpu = OF_peer(0);
170 cpu = OF_child(cpu);
171 while (cpu != 0) {
172 res = OF_getprop(cpu, "name", buf, sizeof(buf));
175 cpu = OF_peer(cpu);
177 if (cpu == 0)
180 cpu = OF_child(cpu);
181 while (cpu != 0) {
182 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
183 if (res > 0 && strcmp(buf, "cpu") == 0)
185 cpu = OF_peer(cpu);
187 if (cpu == 0)
190 res = OF_getencprop(cpu, "ibm,slb-size", &prop, sizeof(prop));
200 len = OF_getproplen(cpu, "ibm,segment-page-sizes");
207 res = OF_getencprop(cpu, "ibm,segment-page-sizes", arr,
256 phandle_t cpu, dev, root;
269 for (cpu = OF_child(dev); cpu != 0; cpu = OF_peer(cpu)) {
270 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
271 if (res > 0 && strcmp(buf, "cpu") == 0)
274 if (cpu == 0)
277 OF_getencprop(cpu, "timebase-frequency", &ticks, sizeof(ticks));
289 phandle_t cpu, dev;
310 for (cpu = OF_child(dev); cpu != 0; cpu = OF_peer(cpu)) {
311 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
312 if (res > 0 && strcmp(buf, "cpu") == 0) {
313 res = OF_getproplen(cpu, "ibm,ppc-interrupt-server#s");
317 OF_getencprop(cpu, "ibm,ppc-interrupt-server#s",
412 phandle_t cpu, dev, root;
426 for (cpu = OF_child(dev); cpu != 0; cpu = OF_peer(cpu)) {
427 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
428 if (res <= 0 || strcmp(buf, "cpu") != 0)
431 res = OF_getproplen(cpu, "ibm,ppc-interrupt-server#s");