Lines Matching refs:thr

879 	int thr;  in kvmppc_doorbell_pending()  local
893 thr = vcpu->vcpu_id - vc->first_vcpuid; in kvmppc_doorbell_pending()
894 return !!(vc->dpdes & (1 << thr)); in kvmppc_doorbell_pending()
1501 int thr, cpu, pcpu, nthreads; in kvmppc_read_dpdes() local
1508 for (thr = 0; thr < nthreads; ++thr, ++cpu) { in kvmppc_read_dpdes()
1521 dpdes |= 1 << thr; in kvmppc_read_dpdes()
1534 u32 inst, rb, thr; in kvmppc_emulate_doorbell_instr() local
1546 thr = vcpu->vcpu_id & (kvm->arch.emul_smt_mode - 1); in kvmppc_emulate_doorbell_instr()
1555 tvcpu = kvmppc_find_vcpu(kvm, vcpu->vcpu_id - thr + arg); in kvmppc_emulate_doorbell_instr()
1573 arg = thr; in kvmppc_emulate_doorbell_instr()
3421 int thr; in on_primary_thread() local
3427 thr = 0; in on_primary_thread()
3428 while (++thr < threads_per_subcore) in on_primary_thread()
3429 if (cpu_online(cpu + thr)) in on_primary_thread()
3433 for (thr = 1; thr < threads_per_subcore; ++thr) { in on_primary_thread()
3434 if (kvmppc_grab_hwthread(cpu + thr)) { in on_primary_thread()
3437 kvmppc_release_hwthread(cpu + thr); in on_primary_thread()
3438 } while (--thr > 0); in on_primary_thread()
3813 int pcpu, thr; in kvmppc_run_core() local
3934 for (thr = 0; thr < controlled_threads; ++thr) { in kvmppc_run_core()
3935 struct paca_struct *paca = paca_ptrs[pcpu + thr]; in kvmppc_run_core()
3979 thr = is_power8 ? subcore_thread_map[sub] : sub; in kvmppc_run_core()
3981 active |= 1 << thr; in kvmppc_run_core()
3983 pvc->pcpu = pcpu + thr; in kvmppc_run_core()
3998 active |= 1 << (thr + vcpu->arch.ptid); in kvmppc_run_core()
4021 for (thr = 1; thr < threads_per_subcore; ++thr) in kvmppc_run_core()
4022 if (!(active & (1 << thr))) in kvmppc_run_core()
4023 kvmppc_ipi_thread(pcpu + thr); in kvmppc_run_core()