Lines Matching refs:thr

825 	int thr;  in kvmppc_doorbell_pending()  local
839 thr = vcpu->vcpu_id - vc->first_vcpuid; in kvmppc_doorbell_pending()
840 return !!(vc->dpdes & (1 << thr)); in kvmppc_doorbell_pending()
1442 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1449 for (thr = 0; thr < nthreads; ++thr, ++cpu) { in kvmppc_read_dpdes()
1462 dpdes |= 1 << thr; in kvmppc_read_dpdes()
1475 u32 inst, rb, thr; in kvmppc_emulate_doorbell_instr() local
1485 thr = vcpu->vcpu_id & (kvm->arch.emul_smt_mode - 1); in kvmppc_emulate_doorbell_instr()
1494 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg); in kvmppc_emulate_doorbell_instr()
1512 arg = thr; in kvmppc_emulate_doorbell_instr()
3302 int thr; in on_primary_thread() local
3308 thr = 0; in on_primary_thread()
3309 while (++thr < threads_per_subcore) in on_primary_thread()
3310 if (cpu_online(cpu + thr)) in on_primary_thread()
3314 for (thr = 1; thr < threads_per_subcore; ++thr) { in on_primary_thread()
3315 if (kvmppc_grab_hwthread(cpu + thr)) { in on_primary_thread()
3318 kvmppc_release_hwthread(cpu + thr); in on_primary_thread()
3319 } while (--thr > 0); in on_primary_thread()
3694 int pcpu, thr; in kvmppc_run_core() local
3815 for (thr = 0; thr < controlled_threads; ++thr) { in kvmppc_run_core()
3816 struct paca_struct *paca = paca_ptrs[pcpu + thr]; in kvmppc_run_core()
3860 thr = is_power8 ? subcore_thread_map[sub] : sub; in kvmppc_run_core()
3862 active |= 1 << thr; in kvmppc_run_core()
3864 pvc->pcpu = pcpu + thr; in kvmppc_run_core()
3879 active |= 1 << (thr + vcpu->arch.ptid); in kvmppc_run_core()
3902 for (thr = 1; thr < threads_per_subcore; ++thr) in kvmppc_run_core()
3903 if (!(active & (1 << thr))) in kvmppc_run_core()
3904 kvmppc_ipi_thread(pcpu + thr); in kvmppc_run_core()