Lines Matching refs:kvm_pit

54 static void pit_set_gate(struct kvm_pit *pit, int channel, u32 val)  in pit_set_gate()
77 static int pit_get_gate(struct kvm_pit *pit, int channel) in pit_get_gate()
82 static s64 __kpit_elapsed(struct kvm_pit *pit) in __kpit_elapsed()
106 static s64 kpit_elapsed(struct kvm_pit *pit, struct kvm_kpit_channel_state *c, in kpit_elapsed()
115 static int pit_get_count(struct kvm_pit *pit, int channel) in pit_get_count()
142 static int pit_get_out(struct kvm_pit *pit, int channel) in pit_get_out()
174 static void pit_latch_count(struct kvm_pit *pit, int channel) in pit_latch_count()
184 static void pit_latch_status(struct kvm_pit *pit, int channel) in pit_latch_status()
198 static inline struct kvm_pit *pit_state_to_pit(struct kvm_kpit_state *ps) in pit_state_to_pit()
200 return container_of(ps, struct kvm_pit, pit_state); in pit_state_to_pit()
207 struct kvm_pit *pit = pit_state_to_pit(ps); in kvm_pit_ack_irq()
220 struct kvm_pit *pit = vcpu->kvm->arch.vpit; in __kvm_migrate_pit_timer()
234 static void destroy_pit_timer(struct kvm_pit *pit) in destroy_pit_timer()
242 struct kvm_pit *pit = container_of(work, struct kvm_pit, expired); in pit_do_work()
271 struct kvm_pit *pt = pit_state_to_pit(ps); in pit_timer_fn()
285 static inline void kvm_pit_reset_reinject(struct kvm_pit *pit) in kvm_pit_reset_reinject()
291 void kvm_pit_set_reinject(struct kvm_pit *pit, bool reinject) in kvm_pit_set_reinject()
324 static void create_pit_timer(struct kvm_pit *pit, u32 val, int is_period) in create_pit_timer()
367 static void pit_load_count(struct kvm_pit *pit, int channel, u32 val) in pit_load_count()
405 void kvm_pit_load_count(struct kvm_pit *pit, int channel, u32 val, in kvm_pit_load_count()
424 static inline struct kvm_pit *dev_to_pit(struct kvm_io_device *dev) in dev_to_pit()
426 return container_of(dev, struct kvm_pit, dev); in dev_to_pit()
429 static inline struct kvm_pit *speaker_to_pit(struct kvm_io_device *dev) in speaker_to_pit()
431 return container_of(dev, struct kvm_pit, speaker_dev); in speaker_to_pit()
444 struct kvm_pit *pit = dev_to_pit(this); in pit_ioport_write()
519 struct kvm_pit *pit = dev_to_pit(this); in pit_ioport_read()
589 struct kvm_pit *pit = speaker_to_pit(this); in speaker_ioport_write()
606 struct kvm_pit *pit = speaker_to_pit(this); in speaker_ioport_read()
626 static void kvm_pit_reset(struct kvm_pit *pit) in kvm_pit_reset()
644 struct kvm_pit *pit = container_of(kimn, struct kvm_pit, mask_notifier); in pit_mask_notifer()
660 struct kvm_pit *kvm_create_pit(struct kvm *kvm, u32 flags) in kvm_create_pit()
662 struct kvm_pit *pit; in kvm_create_pit()
668 pit = kzalloc(sizeof(struct kvm_pit), GFP_KERNEL_ACCOUNT); in kvm_create_pit()
736 struct kvm_pit *pit = kvm->arch.vpit; in kvm_free_pit()