Lines Matching refs:cpuref
72 static u_long chrp_timebase_freq(platform_t, struct cpuref *cpuref);
73 static int chrp_smp_first_cpu(platform_t, struct cpuref *cpuref);
74 static int chrp_smp_next_cpu(platform_t, struct cpuref *cpuref);
75 static int chrp_smp_get_bsp(platform_t, struct cpuref *cpuref);
89 static struct cpuref platform_cpuref[MAXCPU];
317 chrp_timebase_freq(platform_t plat, struct cpuref *cpuref) in chrp_timebase_freq() argument
345 chrp_smp_first_cpu(platform_t plat, struct cpuref *cpuref) in chrp_smp_first_cpu() argument
351 cpuref->cr_cpuid = 0; in chrp_smp_first_cpu()
352 cpuref->cr_hwref = platform_cpuref[0].cr_hwref; in chrp_smp_first_cpu()
358 chrp_smp_next_cpu(platform_t plat, struct cpuref *cpuref) in chrp_smp_next_cpu() argument
365 id = cpuref->cr_cpuid + 1; in chrp_smp_next_cpu()
369 cpuref->cr_cpuid = platform_cpuref[id].cr_cpuid; in chrp_smp_next_cpu()
370 cpuref->cr_hwref = platform_cpuref[id].cr_hwref; in chrp_smp_next_cpu()
376 chrp_smp_get_bsp(platform_t plat, struct cpuref *cpuref) in chrp_smp_get_bsp() argument
379 cpuref->cr_cpuid = platform_cpuref[0].cr_cpuid; in chrp_smp_get_bsp()
380 cpuref->cr_hwref = platform_cpuref[0].cr_hwref; in chrp_smp_get_bsp()
402 static struct cpuref tmp_cpuref[MAXCPU]; in chrp_cpuref_init()