Lines Matching refs:mda
721 static bool kvm_apic_broadcast(struct kvm_lapic *apic, u32 mda) in kvm_apic_broadcast() argument
723 return mda == (apic_x2apic_mode(apic) ? in kvm_apic_broadcast()
727 static bool kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_physical_addr() argument
729 if (kvm_apic_broadcast(apic, mda)) in kvm_apic_match_physical_addr()
733 return mda == kvm_x2apic_id(apic); in kvm_apic_match_physical_addr()
741 if (kvm_x2apic_id(apic) > 0xff && mda == kvm_x2apic_id(apic)) in kvm_apic_match_physical_addr()
744 return mda == kvm_xapic_id(apic); in kvm_apic_match_physical_addr()
747 static bool kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_logical_addr() argument
751 if (kvm_apic_broadcast(apic, mda)) in kvm_apic_match_logical_addr()
757 return ((logical_id >> 16) == (mda >> 16)) in kvm_apic_match_logical_addr()
758 && (logical_id & mda & 0xffff) != 0; in kvm_apic_match_logical_addr()
764 return (logical_id & mda) != 0; in kvm_apic_match_logical_addr()
766 return ((logical_id >> 4) == (mda >> 4)) in kvm_apic_match_logical_addr()
767 && (logical_id & mda & 0xf) != 0; in kvm_apic_match_logical_addr()
805 u32 mda = kvm_apic_mda(vcpu, dest, source, target); in kvm_apic_match_dest() local
811 return kvm_apic_match_physical_addr(target, mda); in kvm_apic_match_dest()
813 return kvm_apic_match_logical_addr(target, mda); in kvm_apic_match_dest()