Home
last modified time | relevance | path

Searched refs:timer_softc (Results 1 – 6 of 6) sorted by relevance

/NextBSD/sys/arm/xscale/pxa/
HDpxa_timer.c63 static struct pxa_timer_softc *timer_softc = NULL; variable
108 if (timer_softc != NULL) in pxa_timer_attach()
120 timer_softc = sc; in pxa_timer_attach()
209 if (timer_softc == NULL) { in DELAY()
225 return (bus_space_read_4(timer_softc->pt_bst, in pxa_timer_get_osmr()
226 timer_softc->pt_bsh, which * 0x4)); in pxa_timer_get_osmr()
233 bus_space_write_4(timer_softc->pt_bst, in pxa_timer_set_osmr()
234 timer_softc->pt_bsh, which * 0x4, val); in pxa_timer_set_osmr()
241 return (bus_space_read_4(timer_softc->pt_bst, in pxa_timer_get_oscr()
242 timer_softc->pt_bsh, OST_CR)); in pxa_timer_get_oscr()
[all …]
/NextBSD/sys/arm/mv/
HDtimer.c77 static struct mv_timer_softc *timer_softc = NULL; variable
131 if (timer_softc != NULL) in mv_timer_attach()
135 timer_softc = sc; in mv_timer_attach()
146 mtx_init(&timer_softc->timer_mtx, "watchdog", NULL, MTX_DEF); in mv_timer_attach()
257 return (bus_space_read_4(timer_softc->timer_bst, in mv_get_timer_control()
258 timer_softc->timer_bsh, CPU_TIMER_CONTROL)); in mv_get_timer_control()
265 bus_space_write_4(timer_softc->timer_bst, in mv_set_timer_control()
266 timer_softc->timer_bsh, CPU_TIMER_CONTROL, val); in mv_set_timer_control()
273 return (bus_space_read_4(timer_softc->timer_bst, in mv_get_timer()
274 timer_softc->timer_bsh, CPU_TIMER0 + timer * 0x8)); in mv_get_timer()
[all …]
/NextBSD/sys/arm/at91/
HDat91_st.c55 } *timer_softc; variable
61 if (timer_softc == NULL) { in RD4()
67 return (bus_read_4(timer_softc->sc_mem_res, off)); in RD4()
74 if (timer_softc == NULL) { in WR4()
80 bus_write_4(timer_softc->sc_mem_res, off, val); in WR4()
166 struct at91_st_softc *sc = timer_softc; in at91_st_deactivate()
188 struct at91_st_softc *sc = timer_softc; in at91_st_activate()
220 timer_softc = device_get_softc(dev); in at91_st_attach()
225 timer_softc->sc_wet = EVENTHANDLER_REGISTER(watchdog_list, in at91_st_attach()
231 at91_st_initclocks(dev, timer_softc); in at91_st_attach()
/NextBSD/sys/arm/cavium/cns11xx/
HDtimer.c82 static struct ec_timer_softc *timer_softc = NULL; variable
87 bus_space_write_4(timer_softc->timer_bst, in write_4()
88 timer_softc->timer_bsh, addr, val); in write_4()
96 return bus_space_read_4(timer_softc->timer_bst, in read_4()
97 timer_softc->timer_bsh, addr); in read_4()
332 if (timer_softc != NULL) in ec_timer_attach()
337 timer_softc = sc; in ec_timer_attach()
/NextBSD/sys/arm/lpc/
HDlpc_timer.c70 static struct lpc_timer_softc *timer_softc = NULL; variable
132 if (timer_softc) in lpc_timer_attach()
135 timer_softc = sc; in lpc_timer_attach()
279 return timer1_read_4(timer_softc, LPC_TIMER_TC); in lpc_get_timecount()
/NextBSD/sys/arm/xscale/i80321/
HDi80321_timer.c75 } timer_softc; variable
120 timer_softc.dev = dev; in i80321_timer_attach()
362 device_t dev = timer_softc.dev; in cpu_initclocks()