Lines Matching defs:tc
58 static unsigned int __init smvp_vpe_init(unsigned int tc, unsigned int mvpconf0,
61 if (tc > ((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT))
65 if (tc != 0) {
75 set_cpu_possible(tc, true);
76 __cpu_number_map[tc] = ++ncpu;
77 __cpu_logical_map[ncpu] = tc;
83 if (tc != 0)
89 static void __init smvp_tc_init(unsigned int tc, unsigned int mvpconf0)
93 if (!tc)
98 if (tc >= (((mvpconf0 & MVPCONF0_PVPE) >> MVPCONF0_PVPE_SHIFT)+1))
101 write_tc_c0_tcbind(read_tc_c0_tcbind() | tc);
104 write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() | (tc << VPECONF0_XTC_SHIFT));
161 /* 1:1 mapping of vpe and tc... */
231 /* enable the tc this vpe/cpu will be running */
261 unsigned int mvpconf0, ntc, tc, ncpu = 0;
288 for (tc = 0; tc <= ntc; tc++) {
289 settc(tc);
291 smvp_tc_init(tc, mvpconf0);
292 ncpu = smvp_vpe_init(tc, mvpconf0, ncpu);