Lines Matching refs:thr
734 int thr;
746 thr = vcpu->vcpu_id - vc->first_vcpuid;
747 return !!(vc->dpdes & (1 << thr));
1198 int thr, cpu, pcpu, nthreads;
1205 for (thr = 0; thr < nthreads; ++thr, ++cpu) {
1218 dpdes |= 1 << thr;
1231 u32 inst, rb, thr;
1241 thr = vcpu->vcpu_id & (kvm->arch.emul_smt_mode - 1);
1250 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg);
1268 arg = thr;
2707 int thr;
2713 thr = 0;
2714 while (++thr < threads_per_subcore)
2715 if (cpu_online(cpu + thr))
2719 for (thr = 1; thr < threads_per_subcore; ++thr) {
2720 if (kvmppc_grab_hwthread(cpu + thr)) {
2723 kvmppc_release_hwthread(cpu + thr);
2724 } while (--thr > 0);
3100 int pcpu, thr;
3245 for (thr = 0; thr < controlled_threads; ++thr) {
3246 struct paca_struct *paca = paca_ptrs[pcpu + thr];
3248 paca->kvm_hstate.tid = thr;
3291 thr = is_power8 ? subcore_thread_map[sub] : sub;
3293 active |= 1 << thr;
3295 pvc->pcpu = pcpu + thr;
3302 active |= 1 << (thr + vcpu->arch.ptid);
3327 for (thr = 1; thr < threads_per_subcore; ++thr)
3328 if (!(active & (1 << thr)))
3329 kvmppc_ipi_thread(pcpu + thr);
3388 for (thr = 1; thr < controlled_threads; ++thr) {
3389 struct paca_struct *paca = paca_ptrs[pcpu + thr];