Lines Matching defs:vtimer_cpu

92 	if (hypctx->vtimer_cpu.virt_timer.cntx_cval_el0 < cntpct_el0)
96 cntv_ctl = hypctx->vtimer_cpu.virt_timer.cntx_ctl_el0;
178 struct vtimer_cpu *vtimer_cpu;
180 vtimer_cpu = &hypctx->vtimer_cpu;
187 vtimer_cpu->phys_timer.cntx_ctl_el0 = CNTP_CTL_IMASK & ~CNTP_CTL_ENABLE;
189 mtx_init(&vtimer_cpu->phys_timer.mtx, "vtimer phys callout mutex", NULL,
191 callout_init_mtx(&vtimer_cpu->phys_timer.callout,
192 &vtimer_cpu->phys_timer.mtx, 0);
193 vtimer_cpu->phys_timer.irqid = GT_PHYS_NS_IRQ;
195 mtx_init(&vtimer_cpu->virt_timer.mtx, "vtimer virt callout mutex", NULL,
197 callout_init_mtx(&vtimer_cpu->virt_timer.callout,
198 &vtimer_cpu->virt_timer.mtx, 0);
199 vtimer_cpu->virt_timer.irqid = GT_VIRT_IRQ;
205 struct vtimer_cpu *vtimer_cpu;
207 vtimer_cpu = &hypctx->vtimer_cpu;
208 callout_drain(&vtimer_cpu->phys_timer.callout);
209 callout_drain(&vtimer_cpu->virt_timer.callout);
210 mtx_destroy(&vtimer_cpu->phys_timer.mtx);
211 mtx_destroy(&vtimer_cpu->virt_timer.mtx);
240 timer = &hypctx->vtimer_cpu.virt_timer;
263 hypctx->vtimer_cpu.phys_timer.irqid, true);
273 hypctx->vtimer_cpu.virt_timer.irqid, true);
285 timer = &hypctx->vtimer_cpu.phys_timer;
287 timer = &hypctx->vtimer_cpu.virt_timer;
309 struct vtimer_cpu *vtimer_cpu;
312 vtimer_cpu = &hypctx->vtimer_cpu;
313 timer = &vtimer_cpu->phys_timer;
341 struct vtimer_cpu *vtimer_cpu;
346 vtimer_cpu = &hypctx->vtimer_cpu;
349 if (vtimer_cpu->phys_timer.cntx_cval_el0 < cntpct_el0)
351 *rval = vtimer_cpu->phys_timer.cntx_ctl_el0 | CNTP_CTL_ISTATUS;
353 *rval = vtimer_cpu->phys_timer.cntx_ctl_el0 & ~CNTP_CTL_ISTATUS;
362 struct vtimer_cpu *vtimer_cpu;
367 vtimer_cpu = &hypctx->vtimer_cpu;
370 ctl_el0 = vtimer_cpu->phys_timer.cntx_ctl_el0;
377 vtimer_cpu->phys_timer.cntx_ctl_el0 = wval;
407 struct vtimer_cpu *vtimer_cpu;
410 vtimer_cpu = &hypctx->vtimer_cpu;
412 *rval = vtimer_cpu->phys_timer.cntx_cval_el0;
421 struct vtimer_cpu *vtimer_cpu;
424 vtimer_cpu = &hypctx->vtimer_cpu;
426 vtimer_cpu->phys_timer.cntx_cval_el0 = wval;
429 if (timer_enabled(vtimer_cpu->phys_timer.cntx_ctl_el0)) {
441 struct vtimer_cpu *vtimer_cpu;
446 vtimer_cpu = &hypctx->vtimer_cpu;
448 if (!(vtimer_cpu->phys_timer.cntx_ctl_el0 & CNTP_CTL_ENABLE)) {
459 *rval = vtimer_cpu->phys_timer.cntx_cval_el0 - cntpct_el0;
470 struct vtimer_cpu *vtimer_cpu;
475 vtimer_cpu = &hypctx->vtimer_cpu;
478 vtimer_cpu->phys_timer.cntx_cval_el0 = (int32_t)wval + cntpct_el0;
481 if (timer_enabled(vtimer_cpu->phys_timer.cntx_ctl_el0)) {