Lines Matching refs:timerp
35 volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_UDELAY_BASE); in __udelay() local
46 timerp->tmr = DTIM_DTMR_RST_RST; in __udelay()
47 timerp->tcn = 0; in __udelay()
49 timerp->tmr = in __udelay()
53 start = now = timerp->tcn; in __udelay()
55 now = timerp->tcn; in __udelay()
61 volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); in dtimer_interrupt() local
65 timerp->ter = (DTIM_DTER_CAP | DTIM_DTER_REF); in dtimer_interrupt()
79 volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); in timer_init() local
83 timerp->tcn = 0; in timer_init()
84 timerp->trr = 0; in timer_init()
87 timerp->tmr = DTIM_DTMR_RST_RST; in timer_init()
92 timerp->tcn = 0; in timer_init()
93 timerp->trr = 1000; /* Interrupt every ms */ in timer_init()
98 timerp->tmr = CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | in timer_init()
120 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_UDELAY_BASE); in __udelay() local
131 timerp->pcsr = PIT_PCSR_OVW; in __udelay()
132 timerp->pmr = 0; in __udelay()
134 timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN; in __udelay()
136 timerp->pmr = tmp; in __udelay()
137 while (timerp->pcntr > 0) ; in __udelay()
143 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE); in timer_init() local
147 timerp->pcsr = PIT_PCSR_OVW; in timer_init()
148 timerp->pmr = lastinc = 0; in timer_init()
149 timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN; in timer_init()
157 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE); in get_timer() local
159 now = timerp->pcntr; in get_timer()