• Home
  • Raw
  • Download

Lines Matching refs:timer

48 				struct arch_timer_context *timer,
52 struct arch_timer_context *timer,
267 struct arch_timer_cpu *timer; in kvm_bg_timer_expire() local
271 timer = container_of(hrt, struct arch_timer_cpu, bg_timer); in kvm_bg_timer_expire()
272 vcpu = container_of(timer, struct kvm_vcpu, arch.timer_cpu); in kvm_bg_timer_expire()
429 struct arch_timer_cpu *timer = vcpu_timer(ctx->vcpu); in timer_save_state() local
433 if (!timer->enabled) in timer_save_state()
478 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_blocking() local
496 soft_timer_start(&timer->bg_timer, kvm_timer_earliest_exp(vcpu)); in kvm_timer_blocking()
501 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_unblocking() local
503 soft_timer_cancel(&timer->bg_timer); in kvm_timer_unblocking()
508 struct arch_timer_cpu *timer = vcpu_timer(ctx->vcpu); in timer_restore_state() local
512 if (!timer->enabled) in timer_restore_state()
605 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_vcpu_load() local
608 if (unlikely(!timer->enabled)) in kvm_timer_vcpu_load()
652 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_vcpu_put() local
656 if (unlikely(!timer->enabled)) in kvm_timer_vcpu_put()
710 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_sync_user() local
712 if (unlikely(!timer->enabled)) in kvm_timer_sync_user()
721 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_vcpu_reset() local
735 if (timer->enabled) { in kvm_timer_vcpu_reset()
776 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_vcpu_init() local
787 hrtimer_init(&timer->bg_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD); in kvm_timer_vcpu_init()
788 timer->bg_timer.function = kvm_bg_timer_expire; in kvm_timer_vcpu_init()
813 struct arch_timer_context *timer; in kvm_arm_timer_set_reg() local
817 timer = vcpu_vtimer(vcpu); in kvm_arm_timer_set_reg()
818 kvm_arm_timer_write(vcpu, timer, TIMER_REG_CTL, value); in kvm_arm_timer_set_reg()
821 timer = vcpu_vtimer(vcpu); in kvm_arm_timer_set_reg()
825 timer = vcpu_vtimer(vcpu); in kvm_arm_timer_set_reg()
826 kvm_arm_timer_write(vcpu, timer, TIMER_REG_CVAL, value); in kvm_arm_timer_set_reg()
829 timer = vcpu_ptimer(vcpu); in kvm_arm_timer_set_reg()
830 kvm_arm_timer_write(vcpu, timer, TIMER_REG_CTL, value); in kvm_arm_timer_set_reg()
833 timer = vcpu_ptimer(vcpu); in kvm_arm_timer_set_reg()
834 kvm_arm_timer_write(vcpu, timer, TIMER_REG_CVAL, value); in kvm_arm_timer_set_reg()
844 static u64 read_timer_ctl(struct arch_timer_context *timer) in read_timer_ctl() argument
852 u32 ctl = timer_get_ctl(timer); in read_timer_ctl()
854 if (!kvm_timer_compute_delta(timer)) in read_timer_ctl()
886 struct arch_timer_context *timer, in kvm_arm_timer_read() argument
893 val = timer_get_cval(timer) - kvm_phys_timer_read() + timer_get_offset(timer); in kvm_arm_timer_read()
898 val = read_timer_ctl(timer); in kvm_arm_timer_read()
902 val = timer_get_cval(timer); in kvm_arm_timer_read()
906 val = kvm_phys_timer_read() - timer_get_offset(timer); in kvm_arm_timer_read()
934 struct arch_timer_context *timer, in kvm_arm_timer_write() argument
940 timer_set_cval(timer, kvm_phys_timer_read() - timer_get_offset(timer) + (s32)val); in kvm_arm_timer_write()
944 timer_set_ctl(timer, val & ~ARCH_TIMER_CTRL_IT_STAT); in kvm_arm_timer_write()
948 timer_set_cval(timer, val); in kvm_arm_timer_write()
1190 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_vcpu_terminate() local
1192 soft_timer_cancel(&timer->bg_timer); in kvm_timer_vcpu_terminate()
1222 struct arch_timer_context *timer; in kvm_arch_timer_get_input_level() local
1225 timer = vcpu_vtimer(vcpu); in kvm_arch_timer_get_input_level()
1227 timer = vcpu_ptimer(vcpu); in kvm_arch_timer_get_input_level()
1231 return kvm_timer_should_fire(timer); in kvm_arch_timer_get_input_level()
1236 struct arch_timer_cpu *timer = vcpu_timer(vcpu); in kvm_timer_enable() local
1240 if (timer->enabled) in kvm_timer_enable()
1276 timer->enabled = 1; in kvm_timer_enable()
1349 struct arch_timer_context *timer; in kvm_arm_timer_get_attr() local
1354 timer = vcpu_vtimer(vcpu); in kvm_arm_timer_get_attr()
1357 timer = vcpu_ptimer(vcpu); in kvm_arm_timer_get_attr()
1363 irq = timer->irq.irq; in kvm_arm_timer_get_attr()