Lines Matching refs:tc
46 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0, in smvp_vpe_init() argument
49 if (tc >= smp_max_threads || in smvp_vpe_init()
50 (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT))) in smvp_vpe_init()
54 if (tc != 0) { in smvp_vpe_init()
64 set_cpu_possible(tc, true); in smvp_vpe_init()
65 set_cpu_present(tc, true); in smvp_vpe_init()
66 __cpu_number_map[tc] = ++ncpu; in smvp_vpe_init()
67 __cpu_logical_map[ncpu] = tc; in smvp_vpe_init()
73 if (tc != 0) in smvp_vpe_init()
76 cpu_set_vpe_id(&cpu_data[ncpu], tc); in smvp_vpe_init()
81 static void __init smvp_tc_init(unsigned int tc, unsigned int mvpconf0) in smvp_tc_init() argument
85 if (!tc) in smvp_tc_init()
90 if (tc >= (((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)+1)) in smvp_tc_init()
93 write_tc_c0_tcbind(read_tc_c0_tcbind() | tc); in smvp_tc_init()
96 write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() | (tc << VPECONF0_XTC_SHIFT)); in smvp_tc_init()
186 unsigned int mvpconf0, ntc, tc, ncpu = 0; in vsmp_smp_setup() local
212 for (tc = 0; tc <= ntc; tc++) { in vsmp_smp_setup()
213 settc(tc); in vsmp_smp_setup()
215 smvp_tc_init(tc, mvpconf0); in vsmp_smp_setup()
216 ncpu = smvp_vpe_init(tc, mvpconf0, ncpu); in vsmp_smp_setup()