Lines Matching refs:cpu
45 #include <machine/cpu.h>
80 static int chrp_smp_start_cpu(platform_t, struct pcpu *cpu);
300 if (res > 0 && strcmp(buf, "cpu") == 0)
355 get_cpu_reg(phandle_t cpu, cell_t *reg)
359 res = OF_getproplen(cpu, "reg");
362 OF_getencprop(cpu, "reg", reg, res);
368 phandle_t cpu, dev, chosen, pbsp;
397 /* Look for boot CPU in /chosen/cpu and /chosen/fdtbootcpu */
405 /* /chosen/cpu */
406 if (OF_getproplen(chosen, "cpu") == sizeof(ihandle_t)) {
407 OF_getprop(chosen, "cpu", &ibsp, sizeof(ibsp));
424 for (cpu = OF_child(dev); cpu != 0; cpu = OF_peer(cpu)) {
425 res = OF_getprop(cpu, "device_type", buf, sizeof(buf));
426 if (res > 0 && strcmp(buf, "cpu") == 0) {
427 res = OF_getproplen(cpu, "ibm,ppc-interrupt-server#s");
429 OF_getencprop(cpu, "ibm,ppc-interrupt-server#s",
432 get_cpu_reg(cpu, ®);
479 start_cpu = rtas_token_lookup("start-cpu");