• Home
  • Raw
  • Download

Lines Matching refs:pit_state

56 	struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel];  in pit_set_gate()
79 return pit->pit_state.channels[channel].gate; in pit_get_gate()
86 struct kvm_kpit_state *ps = &pit->pit_state; in __kpit_elapsed()
117 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_get_count()
144 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_get_out()
176 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_latch_count()
186 struct kvm_kpit_channel_state *c = &pit->pit_state.channels[channel]; in pit_latch_status()
200 return container_of(ps, struct kvm_pit, pit_state); in pit_state_to_pit()
226 timer = &pit->pit_state.timer; in __kvm_migrate_pit_timer()
227 mutex_lock(&pit->pit_state.lock); in __kvm_migrate_pit_timer()
230 mutex_unlock(&pit->pit_state.lock); in __kvm_migrate_pit_timer()
235 hrtimer_cancel(&pit->pit_state.timer); in destroy_pit_timer()
245 struct kvm_kpit_state *ps = &pit->pit_state; in pit_do_work()
286 atomic_set(&pit->pit_state.pending, 0); in kvm_pit_reset_reinject()
287 atomic_set(&pit->pit_state.irq_ack, 1); in kvm_pit_reset_reinject()
292 struct kvm_kpit_state *ps = &pit->pit_state; in kvm_pit_set_reinject()
313 struct kvm_kpit_state *ps = &pit->pit_state; in create_pit_timer()
356 struct kvm_kpit_state *ps = &pit->pit_state; in pit_load_count()
397 WARN_ON_ONCE(!mutex_is_locked(&pit->pit_state.lock)); in kvm_pit_load_count()
402 saved_mode = pit->pit_state.channels[0].mode; in kvm_pit_load_count()
403 pit->pit_state.channels[0].mode = 0xff; /* disable timer */ in kvm_pit_load_count()
405 pit->pit_state.channels[0].mode = saved_mode; in kvm_pit_load_count()
432 struct kvm_kpit_state *pit_state = &pit->pit_state; in pit_ioport_write() local
442 mutex_lock(&pit_state->lock); in pit_ioport_write()
453 s = &pit_state->channels[channel]; in pit_ioport_write()
463 s = &pit_state->channels[channel]; in pit_ioport_write()
479 s = &pit_state->channels[addr]; in pit_ioport_write()
499 mutex_unlock(&pit_state->lock); in pit_ioport_write()
508 struct kvm_kpit_state *pit_state = &pit->pit_state; in pit_ioport_read() local
518 s = &pit_state->channels[addr]; in pit_ioport_read()
520 mutex_lock(&pit_state->lock); in pit_ioport_read()
569 mutex_unlock(&pit_state->lock); in pit_ioport_read()
578 struct kvm_kpit_state *pit_state = &pit->pit_state; in speaker_ioport_write() local
583 mutex_lock(&pit_state->lock); in speaker_ioport_write()
584 pit_state->speaker_data_on = (val >> 1) & 1; in speaker_ioport_write()
586 mutex_unlock(&pit_state->lock); in speaker_ioport_write()
595 struct kvm_kpit_state *pit_state = &pit->pit_state; in speaker_ioport_read() local
604 mutex_lock(&pit_state->lock); in speaker_ioport_read()
605 ret = ((pit_state->speaker_data_on << 1) | pit_get_gate(pit, 2) | in speaker_ioport_read()
610 mutex_unlock(&pit_state->lock); in speaker_ioport_read()
619 pit->pit_state.flags = 0; in kvm_pit_reset()
621 c = &pit->pit_state.channels[i]; in kvm_pit_reset()
651 struct kvm_kpit_state *pit_state; in kvm_create_pit() local
664 mutex_init(&pit->pit_state.lock); in kvm_create_pit()
678 pit_state = &pit->pit_state; in kvm_create_pit()
679 hrtimer_init(&pit_state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in kvm_create_pit()
680 pit_state->timer.function = pit_timer_fn; in kvm_create_pit()
682 pit_state->irq_ack_notifier.gsi = 0; in kvm_create_pit()
683 pit_state->irq_ack_notifier.irq_acked = kvm_pit_ack_irq; in kvm_create_pit()
732 hrtimer_cancel(&pit->pit_state.timer); in kvm_free_pit()