Lines Matching refs:qshift
539 static int xive_native_validate_queue_size(u32 qshift) in xive_native_validate_queue_size() argument
545 switch (qshift) { in xive_native_validate_queue_size()
602 kvm_eq.qshift, kvm_eq.qaddr, kvm_eq.qtoggle, kvm_eq.qindex); in kvmppc_xive_native_set_queue_config()
605 if (!kvm_eq.qshift) { in kvmppc_xive_native_set_queue_config()
632 rc = xive_native_validate_queue_size(kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
634 pr_err("invalid queue size %d\n", kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
638 if (kvm_eq.qaddr & ((1ull << kvm_eq.qshift) - 1)) { in kvmppc_xive_native_set_queue_config()
640 1ull << kvm_eq.qshift); in kvmppc_xive_native_set_queue_config()
648 if (1ull << kvm_eq.qshift > page_size) { in kvmppc_xive_native_set_queue_config()
669 q->guest_qshift = kvm_eq.qshift; in kvmppc_xive_native_set_queue_config()
677 (__be32 *) qaddr, kvm_eq.qshift, true); in kvmppc_xive_native_set_queue_config()
717 u64 qshift; in kvmppc_xive_native_get_queue_config() local
750 rc = xive_native_get_queue_info(xc->vp_id, priority, &qaddr, &qshift, in kvmppc_xive_native_get_queue_config()
759 kvm_eq.qshift = q->guest_qshift; in kvmppc_xive_native_get_queue_config()
769 kvm_eq.qshift, kvm_eq.qaddr, kvm_eq.qtoggle, kvm_eq.qindex); in kvmppc_xive_native_get_queue_config()