Lines Matching defs:apic
76 static inline void kvm_lapic_set_reg(struct kvm_lapic *apic, int reg_off, u32 val) in kvm_lapic_set_reg()
87 static __always_inline u64 kvm_lapic_get_reg64(struct kvm_lapic *apic, int reg) in kvm_lapic_get_reg64()
98 static __always_inline void kvm_lapic_set_reg64(struct kvm_lapic *apic, in kvm_lapic_set_reg64()
111 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_pending_eoi() local
130 static inline int apic_enabled(struct kvm_lapic *apic) in apic_enabled()
142 static inline u32 kvm_x2apic_id(struct kvm_lapic *apic) in kvm_x2apic_id()
221 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_recalculate_phys_map() local
296 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_recalculate_logical_map() local
485 static inline void apic_set_spiv(struct kvm_lapic *apic, u32 val) in apic_set_spiv()
506 static inline void kvm_apic_set_xapic_id(struct kvm_lapic *apic, u8 id) in kvm_apic_set_xapic_id()
512 static inline void kvm_apic_set_ldr(struct kvm_lapic *apic, u32 id) in kvm_apic_set_ldr()
518 static inline void kvm_apic_set_dfr(struct kvm_lapic *apic, u32 val) in kvm_apic_set_dfr()
524 static inline void kvm_apic_set_x2apic_id(struct kvm_lapic *apic, u32 id) in kvm_apic_set_x2apic_id()
535 static inline int apic_lvt_enabled(struct kvm_lapic *apic, int lvt_type) in apic_lvt_enabled()
540 static inline int apic_lvtt_oneshot(struct kvm_lapic *apic) in apic_lvtt_oneshot()
545 static inline int apic_lvtt_period(struct kvm_lapic *apic) in apic_lvtt_period()
550 static inline int apic_lvtt_tscdeadline(struct kvm_lapic *apic) in apic_lvtt_tscdeadline()
560 static inline bool kvm_lapic_lvt_supported(struct kvm_lapic *apic, int lvt_index) in kvm_lapic_lvt_supported()
572 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_version() local
596 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_after_set_mcg_cap() local
689 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_update_irr() local
698 static inline int apic_search_irr(struct kvm_lapic *apic) in apic_search_irr()
703 static inline int apic_find_highest_irr(struct kvm_lapic *apic) in apic_find_highest_irr()
720 static inline void apic_clear_irr(int vec, struct kvm_lapic *apic) in apic_clear_irr()
741 static inline void apic_set_isr(int vec, struct kvm_lapic *apic) in apic_set_isr()
765 static inline int apic_find_highest_isr(struct kvm_lapic *apic) in apic_find_highest_isr()
784 static inline void apic_clear_isr(int vec, struct kvm_lapic *apic) in apic_clear_isr()
823 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_irq() local
929 static int apic_has_interrupt_for_ppr(struct kvm_lapic *apic, u32 ppr) in apic_has_interrupt_for_ppr()
941 static bool __apic_update_ppr(struct kvm_lapic *apic, u32 *new_ppr) in __apic_update_ppr()
963 static void apic_update_ppr(struct kvm_lapic *apic) in apic_update_ppr()
978 static void apic_set_tpr(struct kvm_lapic *apic, u32 tpr) in apic_set_tpr()
984 static bool kvm_apic_broadcast(struct kvm_lapic *apic, u32 mda) in kvm_apic_broadcast()
990 static bool kvm_apic_match_physical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_physical_addr()
1010 static bool kvm_apic_match_logical_addr(struct kvm_lapic *apic, u32 mda) in kvm_apic_match_logical_addr()
1288 static int __apic_accept_irq(struct kvm_lapic *apic, int delivery_mode, in __apic_accept_irq()
1434 static bool kvm_ioapic_handles_vector(struct kvm_lapic *apic, int vector) in kvm_ioapic_handles_vector()
1439 static void kvm_ioapic_send_eoi(struct kvm_lapic *apic, int vector) in kvm_ioapic_send_eoi()
1462 static int apic_set_eoi(struct kvm_lapic *apic) in apic_set_eoi()
1493 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_eoi_accelerated() local
1502 void kvm_apic_send_ipi(struct kvm_lapic *apic, u32 icr_low, u32 icr_high) in kvm_apic_send_ipi()
1527 static u32 apic_get_tmcct(struct kvm_lapic *apic) in apic_get_tmcct()
1548 static void __report_tpr_access(struct kvm_lapic *apic, bool write) in __report_tpr_access()
1558 static inline void report_tpr_access(struct kvm_lapic *apic, bool write) in report_tpr_access()
1564 static u32 __apic_read(struct kvm_lapic *apic, unsigned int offset) in __apic_read()
1605 u64 kvm_lapic_readable_reg_mask(struct kvm_lapic *apic) in kvm_lapic_readable_reg_mask()
1643 static int kvm_lapic_reg_read(struct kvm_lapic *apic, u32 offset, int len, in kvm_lapic_reg_read()
1680 static int apic_mmio_in_range(struct kvm_lapic *apic, gpa_t addr) in apic_mmio_in_range()
1689 struct kvm_lapic *apic = to_lapic(this); in apic_mmio_read() local
1709 static void update_divide_count(struct kvm_lapic *apic) in update_divide_count()
1719 static void limit_periodic_timer_frequency(struct kvm_lapic *apic) in limit_periodic_timer_frequency()
1742 static void cancel_apic_timer(struct kvm_lapic *apic) in cancel_apic_timer()
1752 static void apic_update_lvtt(struct kvm_lapic *apic) in apic_update_lvtt()
1777 struct kvm_lapic *apic = vcpu->arch.apic; in lapic_timer_int_injected() local
1816 struct kvm_lapic *apic = vcpu->arch.apic; in adjust_lapic_timer_advance() local
1844 struct kvm_lapic *apic = vcpu->arch.apic; in __kvm_wait_lapic_expire() local
1877 static void kvm_apic_inject_pending_timer_irqs(struct kvm_lapic *apic) in kvm_apic_inject_pending_timer_irqs()
1890 static void apic_timer_expired(struct kvm_lapic *apic, bool from_timer_fn) in apic_timer_expired()
1928 static void start_sw_tscdeadline(struct kvm_lapic *apic) in start_sw_tscdeadline()
1961 static inline u64 tmict_to_ns(struct kvm_lapic *apic, u32 tmict) in tmict_to_ns()
1966 static void update_target_expiration(struct kvm_lapic *apic, uint32_t old_divisor) in update_target_expiration()
1990 static bool set_target_expiration(struct kvm_lapic *apic, u32 count_reg) in set_target_expiration()
2040 static void advance_periodic_target_expiration(struct kvm_lapic *apic) in advance_periodic_target_expiration()
2061 static void start_sw_period(struct kvm_lapic *apic) in start_sw_period()
2089 static void cancel_hv_timer(struct kvm_lapic *apic) in cancel_hv_timer()
2097 static bool start_hv_timer(struct kvm_lapic *apic) in start_hv_timer()
2139 static void start_sw_timer(struct kvm_lapic *apic) in start_sw_timer()
2156 static void restart_apic_timer(struct kvm_lapic *apic) in restart_apic_timer()
2171 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_expired_hv_timer() local
2197 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_switch_to_sw_timer() local
2208 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_restart_hv_timer() local
2214 static void __start_apic_timer(struct kvm_lapic *apic, u32 count_reg) in __start_apic_timer()
2225 static void start_apic_timer(struct kvm_lapic *apic) in start_apic_timer()
2230 static void apic_manage_nmi_watchdog(struct kvm_lapic *apic, u32 lvt0_val) in apic_manage_nmi_watchdog()
2253 static int kvm_lapic_reg_write(struct kvm_lapic *apic, u32 reg, u32 val) in kvm_lapic_reg_write()
2407 struct kvm_lapic *apic = to_lapic(this); in apic_mmio_write() local
2446 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_write_nodecode() local
2468 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_free_lapic() local
2494 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_get_lapic_tscdeadline_msr() local
2504 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_set_lapic_tscdeadline_msr() local
2531 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_set_base() local
2578 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_update_apicv() local
2669 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_reset() local
2745 static bool lapic_is_periodic(struct kvm_lapic *apic) in lapic_is_periodic()
2752 struct kvm_lapic *apic = vcpu->arch.apic; in apic_has_pending_timer() local
2760 int kvm_apic_local_deliver(struct kvm_lapic *apic, int lvt_type) in kvm_apic_local_deliver()
2781 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_nmi_wd_deliver() local
2795 struct kvm_lapic *apic = container_of(ktimer, struct kvm_lapic, lapic_timer); in apic_timer_fn() local
2809 struct kvm_lapic *apic; in kvm_create_lapic() local
2858 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_has_interrupt() local
2883 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_inject_apic_timer_irqs() local
2894 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_get_apic_interrupt() local
2983 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_set_state() local
3047 struct kvm_lapic *apic) in apic_sync_pv_eoi_from_guest()
3093 struct kvm_lapic *apic) in apic_sync_pv_eoi_to_guest()
3116 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_lapic_sync_to_vapic() local
3152 int kvm_x2apic_icr_write(struct kvm_lapic *apic, u64 data) in kvm_x2apic_icr_write()
3162 static int kvm_lapic_msr_read(struct kvm_lapic *apic, u32 reg, u64 *data) in kvm_lapic_msr_read()
3179 static int kvm_lapic_msr_write(struct kvm_lapic *apic, u32 reg, u64 data) in kvm_lapic_msr_write()
3198 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_x2apic_msr_write() local
3209 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_x2apic_msr_read() local
3262 struct kvm_lapic *apic = vcpu->arch.apic; in kvm_apic_accept_events() local