Lines Matching refs:phys_timer

102     struct vtimer *t = &v->arch.phys_timer;  in vcpu_vtimer_init()
137 kill_timer(&v->arch.phys_timer.timer); in vcpu_timer_destroy()
162 migrate_timer(&v->arch.phys_timer.timer, v->processor); in virt_timer_restore()
179 *r = v->arch.phys_timer.ctl; in vtimer_cntp_ctl()
185 ctl |= v->arch.phys_timer.ctl & CNTx_CTL_PENDING; in vtimer_cntp_ctl()
186 v->arch.phys_timer.ctl = ctl; in vtimer_cntp_ctl()
188 if ( v->arch.phys_timer.ctl & CNTx_CTL_ENABLE ) in vtimer_cntp_ctl()
190 set_timer(&v->arch.phys_timer.timer, in vtimer_cntp_ctl()
191 v->arch.phys_timer.cval + v->domain->arch.phys_timer_base.offset); in vtimer_cntp_ctl()
194 stop_timer(&v->arch.phys_timer.timer); in vtimer_cntp_ctl()
212 *r = (uint32_t)(ns_to_ticks(v->arch.phys_timer.cval - now) & 0xffffffffull); in vtimer_cntp_tval()
216 v->arch.phys_timer.cval = now + ticks_to_ns(*r); in vtimer_cntp_tval()
217 if ( v->arch.phys_timer.ctl & CNTx_CTL_ENABLE ) in vtimer_cntp_tval()
219 v->arch.phys_timer.ctl &= ~CNTx_CTL_PENDING; in vtimer_cntp_tval()
220 set_timer(&v->arch.phys_timer.timer, in vtimer_cntp_tval()
221 v->arch.phys_timer.cval + in vtimer_cntp_tval()
238 *r = ns_to_ticks(v->arch.phys_timer.cval); in vtimer_cntp_cval()
242 v->arch.phys_timer.cval = ticks_to_ns(*r); in vtimer_cntp_cval()
243 if ( v->arch.phys_timer.ctl & CNTx_CTL_ENABLE ) in vtimer_cntp_cval()
245 v->arch.phys_timer.ctl &= ~CNTx_CTL_PENDING; in vtimer_cntp_cval()
246 set_timer(&v->arch.phys_timer.timer, in vtimer_cntp_cval()
247 v->arch.phys_timer.cval + in vtimer_cntp_cval()