/freebsd/sys/powerpc/ps3/ |
H A D | platform_ps3.c | 64 static u_long ps3_timebase_freq(platform_t, struct cpuref *cpuref); 66 static int ps3_smp_first_cpu(platform_t, struct cpuref *cpuref); 67 static int ps3_smp_next_cpu(platform_t, struct cpuref *cpuref); 68 static int ps3_smp_get_bsp(platform_t, struct cpuref *cpuref); 175 ps3_timebase_freq(platform_t plat, struct cpuref *cpuref) in ps3_timebase_freq() argument 190 ps3_smp_first_cpu(platform_t plat, struct cpuref *cpuref) in ps3_smp_first_cpu() argument 193 cpuref->cr_cpuid = 0; in ps3_smp_first_cpu() 194 cpuref->cr_hwref = ps3_boot_pir; in ps3_smp_first_cpu() 200 ps3_smp_next_cpu(platform_t plat, struct cpuref *cpuref) in ps3_smp_next_cpu() argument 203 if (cpuref->cr_cpuid >= 1) in ps3_smp_next_cpu() [all …]
|
/freebsd/sys/powerpc/powermac/ |
H A D | platform_powermac.c | 67 static u_long powermac_timebase_freq(platform_t, struct cpuref *cpuref); 68 static int powermac_smp_first_cpu(platform_t, struct cpuref *cpuref); 69 static int powermac_smp_next_cpu(platform_t, struct cpuref *cpuref); 70 static int powermac_smp_get_bsp(platform_t, struct cpuref *cpuref); 226 powermac_timebase_freq(platform_t plat, struct cpuref *cpuref) in powermac_timebase_freq() argument 231 phandle = cpuref->cr_hwref; in powermac_timebase_freq() 242 powermac_smp_fill_cpuref(struct cpuref *cpuref, phandle_t cpu) in powermac_smp_fill_cpuref() argument 247 cpuref->cr_hwref = cpu; in powermac_smp_fill_cpuref() 258 cpuref->cr_cpuid = cpuid & 0xff; in powermac_smp_fill_cpuref() 263 powermac_smp_first_cpu(platform_t plat, struct cpuref *cpuref) in powermac_smp_first_cpu() argument [all …]
|
/freebsd/sys/powerpc/powernv/ |
H A D | platform_powernv.c | 68 static u_long powernv_timebase_freq(platform_t, struct cpuref *cpuref); 69 static int powernv_smp_first_cpu(platform_t, struct cpuref *cpuref); 70 static int powernv_smp_next_cpu(platform_t, struct cpuref *cpuref); 71 static int powernv_smp_get_bsp(platform_t, struct cpuref *cpuref); 111 static struct cpuref platform_cpuref[MAXCPU]; 288 powernv_timebase_freq(platform_t plat, struct cpuref *cpure in powernv_timebase_freq() 282 powernv_timebase_freq(platform_t plat,struct cpuref * cpuref) powernv_timebase_freq() argument 383 powernv_smp_first_cpu(platform_t plat,struct cpuref * cpuref) powernv_smp_first_cpu() argument 396 powernv_smp_next_cpu(platform_t plat,struct cpuref * cpuref) powernv_smp_next_cpu() argument 415 powernv_smp_get_bsp(platform_t plat,struct cpuref * cpuref) powernv_smp_get_bsp() argument [all...] |
/freebsd/sys/powerpc/mpc85xx/ |
H A D | platform_mpc85xx.c | 98 static u_long mpc85xx_timebase_freq(platform_t, struct cpuref *cpuref); 99 static int mpc85xx_smp_first_cpu(platform_t, struct cpuref *cpuref); 100 static int mpc85xx_smp_next_cpu(platform_t, struct cpuref *cpuref); 101 static int mpc85xx_smp_get_bsp(platform_t, struct cpuref *cpuref); 222 mpc85xx_timebase_freq(platform_t plat, struct cpuref *cpuref) in mpc85xx_timebase_freq() argument 289 mpc85xx_smp_first_cpu(platform_t plat, struct cpuref *cpuref) in mpc85xx_smp_first_cpu() argument 293 cpuref->cr_cpuid = cpu; in mpc85xx_smp_first_cpu() 294 cpuref->cr_hwref = cpuref->cr_cpuid; in mpc85xx_smp_first_cpu() 296 printf("powerpc_smp_first_cpu: cpuid %d\n", cpuref->cr_cpuid); in mpc85xx_smp_first_cpu() 303 mpc85xx_smp_next_cpu(platform_t plat, struct cpuref *cpuref) in mpc85xx_smp_next_cpu() argument [all …]
|
/freebsd/sys/powerpc/pseries/ |
H A D | platform_chrp.c | 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 [all …]
|
/freebsd/sys/powerpc/include/ |
H A D | platform.h | 60 u_long platform_timebase_freq(struct cpuref *); 62 int platform_smp_first_cpu(struct cpuref *); 63 int platform_smp_next_cpu(struct cpuref *); 64 int platform_smp_get_bsp(struct cpuref *);
|
H A D | smp.h | 50 struct cpuref { struct
|
/freebsd/sys/powerpc/powerpc/ |
H A D | platform_if.m | 60 struct cpuref *cpuref) 62 cpuref->cr_hwref = -1; 63 cpuref->cr_cpuid = 0; 67 struct cpuref *_cpuref) 171 struct cpuref *_cpu; 177 * @brief Fill the first CPU's cpuref 183 struct cpuref *_cpuref; 187 * @brief Fill the next CPU's cpuref 193 struct cpuref *_cpuref; 203 struct cpuref *_cpuref;
|
H A D | mp_machdep.c | 117 struct cpuref cpuref; in cpu_mp_setmaxid() local 122 error = platform_smp_first_cpu(&cpuref); in cpu_mp_setmaxid() 125 mp_maxid = max(cpuref.cr_cpuid, mp_maxid); in cpu_mp_setmaxid() 126 error = platform_smp_next_cpu(&cpuref); in cpu_mp_setmaxid() 146 struct cpuref bsp, cpu; in cpu_mp_start()
|
H A D | platform.c | 254 platform_timebase_freq(struct cpuref *cpu) in platform_timebase_freq() 269 platform_smp_first_cpu(struct cpuref *cpu) in platform_smp_first_cpu() 275 platform_smp_next_cpu(struct cpuref *cpu) in platform_smp_next_cpu() 281 platform_smp_get_bsp(struct cpuref *cpu) in platform_smp_get_bsp()
|
H A D | clock.c | 178 struct cpuref cpu; in decr_init()
|
H A D | machdep.c | 264 struct cpuref bsp; in powerpc_init()
|
/freebsd/sys/powerpc/booke/ |
H A D | platform_bare.c | 49 static u_long bare_timebase_freq(platform_t, struct cpuref *cpuref); 90 bare_timebase_freq(platform_t plat, struct cpuref *cpuref) in bare_timebase_freq() argument
|
/freebsd/sys/dev/ofw/ |
H A D | ofw_cpu.c | 287 struct cpuref cpuref; in ofw_cpu_attach() local 296 for (rv = platform_smp_first_cpu(&cpuref); rv == 0; in ofw_cpu_attach() 297 rv = platform_smp_next_cpu(&cpuref)) { in ofw_cpu_attach() 298 if (cpuref.cr_hwref == servers[i]) { in ofw_cpu_attach() 300 pcpu_find(cpuref.cr_cpuid); in ofw_cpu_attach()
|