Lines Matching refs:mda
819 static bool kvm_apic_broadcast(struct kvm_lapic *apic, u32 mda) in kvm_apic_broadcast() argument
821 return mda == (apic_x2apic_mode(apic) ? in kvm_apic_broadcast()
825 static bool kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_physical_addr() argument
827 if (kvm_apic_broadcast(apic, mda)) in kvm_apic_match_physical_addr()
839 if (apic_x2apic_mode(apic) || mda > 0xff) in kvm_apic_match_physical_addr()
840 return mda == kvm_x2apic_id(apic); in kvm_apic_match_physical_addr()
842 return mda == kvm_xapic_id(apic); in kvm_apic_match_physical_addr()
845 static bool kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_logical_addr() argument
849 if (kvm_apic_broadcast(apic, mda)) in kvm_apic_match_logical_addr()
855 return ((logical_id >> 16) == (mda >> 16)) in kvm_apic_match_logical_addr()
856 && (logical_id & mda & 0xffff) != 0; in kvm_apic_match_logical_addr()
862 return (logical_id & mda) != 0; in kvm_apic_match_logical_addr()
864 return ((logical_id >> 4) == (mda >> 4)) in kvm_apic_match_logical_addr()
865 && (logical_id & mda & 0xf) != 0; in kvm_apic_match_logical_addr()
903 u32 mda = kvm_apic_mda(vcpu, dest, source, target); in kvm_apic_match_dest() local
909 return kvm_apic_match_physical_addr(target, mda); in kvm_apic_match_dest()
911 return kvm_apic_match_logical_addr(target, mda); in kvm_apic_match_dest()