Lines Matching refs:timerp

36 	volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_UDELAY_BASE);  in __udelay()  local
47 timerp->tmr = DTIM_DTMR_RST_RST; in __udelay()
48 timerp->tcn = 0; in __udelay()
50 timerp->tmr = in __udelay()
54 start = now = timerp->tcn; in __udelay()
56 now = timerp->tcn; in __udelay()
62 volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); in dtimer_interrupt() local
66 timerp->ter = (DTIM_DTER_CAP | DTIM_DTER_REF); in dtimer_interrupt()
80 volatile dtmr_t *timerp = (dtmr_t *) (CONFIG_SYS_TMR_BASE); in timer_init() local
84 timerp->tcn = 0; in timer_init()
85 timerp->trr = 0; in timer_init()
88 timerp->tmr = DTIM_DTMR_RST_RST; in timer_init()
93 timerp->tcn = 0; in timer_init()
94 timerp->trr = 1000; /* Interrupt every ms */ in timer_init()
99 timerp->tmr = CONFIG_SYS_TIMER_PRESCALER | DTIM_DTMR_CLK_DIV1 | in timer_init()
121 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_UDELAY_BASE); in __udelay() local
132 timerp->pcsr = PIT_PCSR_OVW; in __udelay()
133 timerp->pmr = 0; in __udelay()
135 timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN; in __udelay()
137 timerp->pmr = tmp; in __udelay()
138 while (timerp->pcntr > 0) ; in __udelay()
144 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE); in timer_init() local
148 timerp->pcsr = PIT_PCSR_OVW; in timer_init()
149 timerp->pmr = lastinc = 0; in timer_init()
150 timerp->pcsr |= PIT_PCSR_PRE(CONFIG_SYS_PIT_PRESCALE) | PIT_PCSR_EN; in timer_init()
158 volatile pit_t *timerp = (pit_t *) (CONFIG_SYS_PIT_BASE); in get_timer() local
160 now = timerp->pcntr; in get_timer()