Lines Matching refs:cnt_ctl
147 !(timer_ctx->cnt_ctl & ARCH_TIMER_CTRL_IT_MASK) && in kvm_timer_irq_can_fire()
148 (timer_ctx->cnt_ctl & ARCH_TIMER_CTRL_ENABLE); in kvm_timer_irq_can_fire()
236 u32 cnt_ctl = 0; in kvm_timer_should_fire() local
240 cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL); in kvm_timer_should_fire()
243 cnt_ctl = read_sysreg_el0(SYS_CNTP_CTL); in kvm_timer_should_fire()
247 cnt_ctl = 0; in kvm_timer_should_fire()
251 return (cnt_ctl & ARCH_TIMER_CTRL_ENABLE) && in kvm_timer_should_fire()
252 (cnt_ctl & ARCH_TIMER_CTRL_IT_STAT) && in kvm_timer_should_fire()
253 !(cnt_ctl & ARCH_TIMER_CTRL_IT_MASK); in kvm_timer_should_fire()
353 ctx->cnt_ctl = read_sysreg_el0(SYS_CNTV_CTL); in timer_save_state()
362 ctx->cnt_ctl = read_sysreg_el0(SYS_CNTP_CTL); in timer_save_state()
434 write_sysreg_el0(ctx->cnt_ctl, SYS_CNTV_CTL); in timer_restore_state()
439 write_sysreg_el0(ctx->cnt_ctl, SYS_CNTP_CTL); in timer_restore_state()
651 vcpu_vtimer(vcpu)->cnt_ctl = 0; in kvm_timer_vcpu_reset()
652 vcpu_ptimer(vcpu)->cnt_ctl = 0; in kvm_timer_vcpu_reset()
769 return timer->cnt_ctl | ARCH_TIMER_CTRL_IT_STAT; in read_timer_ctl()
771 return timer->cnt_ctl; in read_timer_ctl()
857 timer->cnt_ctl = val & ~ARCH_TIMER_CTRL_IT_STAT; in kvm_arm_timer_write()