Lines Matching refs:qshift
541 static int xive_native_validate_queue_size(u32 qshift) in xive_native_validate_queue_size() argument
547 switch (qshift) { in xive_native_validate_queue_size()
604 kvm_eq.qshift, kvm_eq.qaddr, kvm_eq.qtoggle, kvm_eq.qindex); in kvmppc_xive_native_set_queue_config()
607 if (!kvm_eq.qshift) { in kvmppc_xive_native_set_queue_config()
634 rc = xive_native_validate_queue_size(kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
636 pr_err("invalid queue size %d\n", kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
640 if (kvm_eq.qaddr & ((1ull << kvm_eq.qshift) - 1)) { in kvmppc_xive_native_set_queue_config()
642 1ull << kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
650 if (1ull << kvm_eq.qshift > page_size) { in kvmppc_xive_native_set_queue_config()
671 q->guest_qshift = kvm_eq.qshift; in kvmppc_xive_native_set_queue_config()
679 (__be32 *) qaddr, kvm_eq.qshift, true); in kvmppc_xive_native_set_queue_config()
719 u64 qshift; in kvmppc_xive_native_get_queue_config() local
752 rc = xive_native_get_queue_info(xc->vp_id, priority, &qaddr, &qshift, in kvmppc_xive_native_get_queue_config()
761 kvm_eq.qshift = q->guest_qshift; in kvmppc_xive_native_get_queue_config()
771 kvm_eq.qshift, kvm_eq.qaddr, kvm_eq.qtoggle, kvm_eq.qindex); in kvmppc_xive_native_get_queue_config()