Lines Matching refs:tmrptr

26 	struct txx9_tmr_reg __iomem *tmrptr;  member
33 return __raw_readl(&txx9_cs->tmrptr->trr); in txx9_cs_read()
52 struct txx9_tmr_reg __iomem *tmrptr; in txx9_clocksource_init() local
56 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); in txx9_clocksource_init()
57 __raw_writel(TCR_BASE, &tmrptr->tcr); in txx9_clocksource_init()
58 __raw_writel(0, &tmrptr->tisr); in txx9_clocksource_init()
59 __raw_writel(TIMER_CCD, &tmrptr->ccdr); in txx9_clocksource_init()
60 __raw_writel(TXx9_TMITMR_TZCE, &tmrptr->itmr); in txx9_clocksource_init()
61 __raw_writel(1 << TXX9_CLOCKSOURCE_BITS, &tmrptr->cpra); in txx9_clocksource_init()
62 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9_clocksource_init()
63 txx9_clocksource.tmrptr = tmrptr; in txx9_clocksource_init()
68 struct txx9_tmr_reg __iomem *tmrptr; member
71 static void txx9tmr_stop_and_clear(struct txx9_tmr_reg __iomem *tmrptr) in txx9tmr_stop_and_clear() argument
74 __raw_writel(TCR_BASE, &tmrptr->tcr); in txx9tmr_stop_and_clear()
76 __raw_writel(0, &tmrptr->tisr); in txx9tmr_stop_and_clear()
84 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; in txx9tmr_set_mode() local
86 txx9tmr_stop_and_clear(tmrptr); in txx9tmr_set_mode()
90 &tmrptr->itmr); in txx9tmr_set_mode()
94 &tmrptr->cpra); in txx9tmr_set_mode()
95 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9tmr_set_mode()
99 __raw_writel(0, &tmrptr->itmr); in txx9tmr_set_mode()
102 __raw_writel(TXx9_TMITMR_TIIE, &tmrptr->itmr); in txx9tmr_set_mode()
105 __raw_writel(TIMER_CCD, &tmrptr->ccdr); in txx9tmr_set_mode()
106 __raw_writel(0, &tmrptr->itmr); in txx9tmr_set_mode()
116 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; in txx9tmr_set_next_event() local
118 txx9tmr_stop_and_clear(tmrptr); in txx9tmr_set_next_event()
120 __raw_writel(delta, &tmrptr->cpra); in txx9tmr_set_next_event()
121 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9tmr_set_next_event()
140 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; in txx9tmr_interrupt() local
142 __raw_writel(0, &tmrptr->tisr); /* ack interrupt */ in txx9tmr_interrupt()
158 struct txx9_tmr_reg __iomem *tmrptr; in txx9_clockevent_init() local
160 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); in txx9_clockevent_init()
161 txx9tmr_stop_and_clear(tmrptr); in txx9_clockevent_init()
162 __raw_writel(TIMER_CCD, &tmrptr->ccdr); in txx9_clockevent_init()
163 __raw_writel(0, &tmrptr->itmr); in txx9_clockevent_init()
164 txx9_clock_event_device.tmrptr = tmrptr; in txx9_clockevent_init()
180 struct txx9_tmr_reg __iomem *tmrptr; in txx9_tmr_init() local
182 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); in txx9_tmr_init()
184 __raw_writel(TXx9_TMTCR_CRE | TXx9_TMTCR_TCE, &tmrptr->tcr); in txx9_tmr_init()
186 __raw_writel(TXx9_TMTCR_CRE, &tmrptr->tcr); in txx9_tmr_init()
187 __raw_writel(0, &tmrptr->tisr); in txx9_tmr_init()
188 __raw_writel(0xffffffff, &tmrptr->cpra); in txx9_tmr_init()
189 __raw_writel(0, &tmrptr->itmr); in txx9_tmr_init()
190 __raw_writel(0, &tmrptr->ccdr); in txx9_tmr_init()
191 __raw_writel(0, &tmrptr->pgmr); in txx9_tmr_init()
192 iounmap(tmrptr); in txx9_tmr_init()