Lines Matching defs:apic
23 #include "hw/i386/apic.h"
31 #include "hw/i386/apic-msidef.h"
43 #define TYPE_APIC "apic"
57 /* round up the max apic id to next multiple of words */
210 #define foreach_apic(apic, deliver_bitmask, code) \
218 apic = local_apics[__i * 32 + __j];\
219 if (apic) {\
516 static bool apic_match_dest(APICCommonState *apic, uint32_t dest)
518 if (is_x2apic_mode(&apic->parent_obj)) {
519 return apic->initial_apic_id == dest;
521 return apic->id == (uint8_t)dest;
527 APICCommonState *apic = NULL;
531 apic = local_apics[i];
532 if (apic && apic_match_dest(apic, dest)) {
566 APICCommonState *apic;
596 apic = local_apics[i];
597 if (apic) {
599 if (apic->apicbase & MSR_IA32_APICBASE_EXTD) {
600 if ((dest >> 16) == (apic->extended_log_dest >> 16) &&
601 (dest & apic->extended_log_dest & 0xffff)) {
609 if (apic->dest_mode == APIC_DESTMODE_LOGICAL_FLAT) {
610 if (dest & apic->log_dest) {
613 } else if (apic->dest_mode == APIC_DESTMODE_LOGICAL_CLUSTER) {
627 (dest & 0xf0) == (apic->log_dest & 0xf0)) {
628 if (dest & apic->log_dest & 0x0f) {
1144 memory_region_init_io(&s->io_memory, OBJECT(s), &apic_io_ops, s, "apic-msi",
1148 * apic-msi's apic_mem_write can call into ioapic_eoi_broadcast, which can
1149 * write back to apic-msi. As such mark the apic-msi region re-entrancy
1158 * apic, so we need to call it here and set it to 1 which is the max cpus