Lines Matching defs:cpuref
70 static u_long chrp_timebase_freq(platform_t, struct cpuref *cpuref);
71 static int chrp_smp_first_cpu(platform_t, struct cpuref *cpuref);
72 static int chrp_smp_next_cpu(platform_t, struct cpuref *cpuref);
73 static int chrp_smp_get_bsp(platform_t, struct cpuref *cpuref);
277 chrp_timebase_freq(platform_t plat, struct cpuref *cpuref)
282 phandle = cpuref->cr_hwref;
293 chrp_smp_first_cpu(platform_t plat, struct cpuref *cpuref)
329 cpuref->cr_hwref = cpu;
336 cpuref->cr_cpuid = cpuid;
342 chrp_smp_next_cpu(platform_t plat, struct cpuref *cpuref)
349 res = OF_getproplen(cpuref->cr_hwref, "ibm,ppc-interrupt-server#s");
352 OF_getencprop(cpuref->cr_hwref, "ibm,ppc-interrupt-server#s",
355 if (interrupt_servers[i] == cpuref->cr_cpuid) {
356 cpuref->cr_cpuid = interrupt_servers[i+1];
363 cpu = OF_peer(cpuref->cr_hwref);
373 cpuref->cr_hwref = cpu;
380 cpuref->cr_cpuid = cpuid;
386 chrp_smp_get_bsp(platform_t plat, struct cpuref *cpuref)
403 cpuref->cr_hwref = bsp;
410 cpuref->cr_cpuid = cpuid;