Lines Matching refs:cip
3401 static void init_core_info(struct core_info *cip, struct kvmppc_vcore *vc) in init_core_info() argument
3403 memset(cip, 0, sizeof(*cip)); in init_core_info()
3404 cip->n_subcores = 1; in init_core_info()
3405 cip->max_subcore_threads = vc->num_threads; in init_core_info()
3406 cip->total_threads = vc->num_threads; in init_core_info()
3407 cip->subcore_threads[0] = vc->num_threads; in init_core_info()
3408 cip->vc[0] = vc; in init_core_info()
3444 static bool can_dynamic_split(struct kvmppc_vcore *vc, struct core_info *cip) in can_dynamic_split() argument
3453 if (one_vm_per_core && vc->kvm != cip->vc[0]->kvm) in can_dynamic_split()
3456 if (n_threads < cip->max_subcore_threads) in can_dynamic_split()
3457 n_threads = cip->max_subcore_threads; in can_dynamic_split()
3458 if (!subcore_config_ok(cip->n_subcores + 1, n_threads)) in can_dynamic_split()
3460 cip->max_subcore_threads = n_threads; in can_dynamic_split()
3462 sub = cip->n_subcores; in can_dynamic_split()
3463 ++cip->n_subcores; in can_dynamic_split()
3464 cip->total_threads += vc->num_threads; in can_dynamic_split()
3465 cip->subcore_threads[sub] = vc->num_threads; in can_dynamic_split()
3466 cip->vc[sub] = vc; in can_dynamic_split()
3477 static bool can_piggyback(struct kvmppc_vcore *pvc, struct core_info *cip, in can_piggyback() argument
3480 if (cip->total_threads + pvc->num_threads > target_threads) in can_piggyback()
3483 return can_dynamic_split(pvc, cip); in can_piggyback()
3505 static void collect_piggybacks(struct core_info *cip, int target_threads) in collect_piggybacks() argument
3524 if (!can_piggyback(pvc, cip, target_threads)) { in collect_piggybacks()
3530 if (cip->total_threads >= target_threads) in collect_piggybacks()
3536 static bool recheck_signals_and_mmu(struct core_info *cip) in recheck_signals_and_mmu() argument
3542 for (sub = 0; sub < cip->n_subcores; ++sub) { in recheck_signals_and_mmu()
3543 vc = cip->vc[sub]; in recheck_signals_and_mmu()