Lines Matching defs:timer_softc
77 static struct mv_timer_softc *timer_softc = NULL;
131 if (timer_softc != NULL)
135 timer_softc = sc;
146 mtx_init(&timer_softc->timer_mtx, "watchdog", NULL, MTX_DEF);
257 return (bus_space_read_4(timer_softc->timer_bst,
258 timer_softc->timer_bsh, CPU_TIMER_CONTROL));
265 bus_space_write_4(timer_softc->timer_bst,
266 timer_softc->timer_bsh, CPU_TIMER_CONTROL, val);
273 return (bus_space_read_4(timer_softc->timer_bst,
274 timer_softc->timer_bsh, CPU_TIMER0 + timer * 0x8));
281 bus_space_write_4(timer_softc->timer_bst,
282 timer_softc->timer_bsh, CPU_TIMER0 + timer * 0x8, val);
289 bus_space_write_4(timer_softc->timer_bst,
290 timer_softc->timer_bsh, CPU_TIMER0_REL + timer * 0x8, val);
368 mtx_lock(&timer_softc->timer_mtx);
387 mtx_unlock(&timer_softc->timer_mtx);