Lines Matching refs:fields
119 e->fields.dest_id, in __rtc_irq_eoi_tracking_restore_one()
120 kvm_lapic_irq_dest_mode(!!e->fields.dest_mode))) in __rtc_irq_eoi_tracking_restore_one()
123 new_val = kvm_apic_pending_eoi(vcpu, e->fields.vector); in __rtc_irq_eoi_tracking_restore_one()
131 dest_map->vectors[vcpu->vcpu_id] = e->fields.vector; in __rtc_irq_eoi_tracking_restore_one()
193 entry->fields.dest_id, in ioapic_lazy_update_eoi()
194 entry->fields.dest_mode) || in ioapic_lazy_update_eoi()
195 kvm_apic_pending_eoi(vcpu, entry->fields.vector)) in ioapic_lazy_update_eoi()
202 rtc_irq_eoi(ioapic, vcpu, entry->fields.vector); in ioapic_lazy_update_eoi()
216 edge = (entry.fields.trig_mode == IOAPIC_EDGE_TRIG); in ioapic_set_irq()
295 if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG || in kvm_ioapic_scan_entry()
298 u16 dm = kvm_lapic_irq_dest_mode(!!e->fields.dest_mode); in kvm_ioapic_scan_entry()
301 e->fields.dest_id, dm) || in kvm_ioapic_scan_entry()
302 kvm_apic_pending_eoi(vcpu, e->fields.vector)) in kvm_ioapic_scan_entry()
303 __set_bit(e->fields.vector, in kvm_ioapic_scan_entry()
344 mask_before = e->fields.mask; in ioapic_write_indirect()
346 old_remote_irr = e->fields.remote_irr; in ioapic_write_indirect()
347 old_delivery_status = e->fields.delivery_status; in ioapic_write_indirect()
348 old_dest_id = e->fields.dest_id; in ioapic_write_indirect()
349 old_dest_mode = e->fields.dest_mode; in ioapic_write_indirect()
357 e->fields.remote_irr = old_remote_irr; in ioapic_write_indirect()
358 e->fields.delivery_status = old_delivery_status; in ioapic_write_indirect()
366 if (e->fields.trig_mode == IOAPIC_EDGE_TRIG) in ioapic_write_indirect()
367 e->fields.remote_irr = 0; in ioapic_write_indirect()
369 mask_after = e->fields.mask; in ioapic_write_indirect()
372 if (e->fields.trig_mode == IOAPIC_LEVEL_TRIG in ioapic_write_indirect()
375 if (e->fields.delivery_mode == APIC_DM_FIXED) { in ioapic_write_indirect()
378 irq.vector = e->fields.vector; in ioapic_write_indirect()
379 irq.delivery_mode = e->fields.delivery_mode << 8; in ioapic_write_indirect()
381 kvm_lapic_irq_dest_mode(!!e->fields.dest_mode); in ioapic_write_indirect()
383 irq.trig_mode = e->fields.trig_mode; in ioapic_write_indirect()
385 irq.dest_id = e->fields.dest_id; in ioapic_write_indirect()
390 if (old_dest_mode != e->fields.dest_mode || in ioapic_write_indirect()
391 old_dest_id != e->fields.dest_id) { in ioapic_write_indirect()
400 !!e->fields.dest_mode); in ioapic_write_indirect()
419 if (entry->fields.mask || in ioapic_service()
420 (entry->fields.trig_mode == IOAPIC_LEVEL_TRIG && in ioapic_service()
421 entry->fields.remote_irr)) in ioapic_service()
424 irqe.dest_id = entry->fields.dest_id; in ioapic_service()
425 irqe.vector = entry->fields.vector; in ioapic_service()
426 irqe.dest_mode = kvm_lapic_irq_dest_mode(!!entry->fields.dest_mode); in ioapic_service()
427 irqe.trig_mode = entry->fields.trig_mode; in ioapic_service()
428 irqe.delivery_mode = entry->fields.delivery_mode << 8; in ioapic_service()
451 entry->fields.remote_irr = 1; in ioapic_service()
492 if (ent->fields.trig_mode != IOAPIC_LEVEL_TRIG) in kvm_ioapic_eoi_inject_work()
495 if (ioapic->irr & (1 << i) && !ent->fields.remote_irr) in kvm_ioapic_eoi_inject_work()
526 ASSERT(ent->fields.trig_mode == IOAPIC_LEVEL_TRIG); in kvm_ioapic_update_eoi_one()
527 ent->fields.remote_irr = 0; in kvm_ioapic_update_eoi_one()
528 if (!ent->fields.mask && (ioapic->irr & (1 << pin))) { in kvm_ioapic_update_eoi_one()
560 if (ent->fields.vector != vector) in kvm_ioapic_update_eoi()
670 ioapic->redirtbl[i].fields.mask = 1; in kvm_ioapic_reset()