Searched refs:tmrptr (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/arch/mips/kernel/ |
H A D | cevt-txx9.c | 27 struct txx9_tmr_reg __iomem *tmrptr; member in struct:txx9_clocksource 34 return __raw_readl(&txx9_cs->tmrptr->trr); txx9_cs_read() 52 return __raw_readl(&txx9_clocksource.tmrptr->trr); txx9_read_sched_clock() 58 struct txx9_tmr_reg __iomem *tmrptr; txx9_clocksource_init() local 62 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); txx9_clocksource_init() 63 __raw_writel(TCR_BASE, &tmrptr->tcr); txx9_clocksource_init() 64 __raw_writel(0, &tmrptr->tisr); txx9_clocksource_init() 65 __raw_writel(TIMER_CCD, &tmrptr->ccdr); txx9_clocksource_init() 66 __raw_writel(TXx9_TMITMR_TZCE, &tmrptr->itmr); txx9_clocksource_init() 67 __raw_writel(1 << TXX9_CLOCKSOURCE_BITS, &tmrptr->cpra); txx9_clocksource_init() 68 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); txx9_clocksource_init() 69 txx9_clocksource.tmrptr = tmrptr; txx9_clocksource_init() 77 struct txx9_tmr_reg __iomem *tmrptr; member in struct:txx9_clock_event_device 80 static void txx9tmr_stop_and_clear(struct txx9_tmr_reg __iomem *tmrptr) txx9tmr_stop_and_clear() argument 83 __raw_writel(TCR_BASE, &tmrptr->tcr); txx9tmr_stop_and_clear() 85 __raw_writel(0, &tmrptr->tisr); txx9tmr_stop_and_clear() 93 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; txx9tmr_set_mode() local 95 txx9tmr_stop_and_clear(tmrptr); txx9tmr_set_mode() 99 &tmrptr->itmr); txx9tmr_set_mode() 103 &tmrptr->cpra); txx9tmr_set_mode() 104 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); txx9tmr_set_mode() 108 __raw_writel(0, &tmrptr->itmr); txx9tmr_set_mode() 111 __raw_writel(TXx9_TMITMR_TIIE, &tmrptr->itmr); txx9tmr_set_mode() 114 __raw_writel(TIMER_CCD, &tmrptr->ccdr); txx9tmr_set_mode() 115 __raw_writel(0, &tmrptr->itmr); txx9tmr_set_mode() 125 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; txx9tmr_set_next_event() local 127 txx9tmr_stop_and_clear(tmrptr); txx9tmr_set_next_event() 129 __raw_writel(delta, &tmrptr->cpra); txx9tmr_set_next_event() 130 __raw_writel(TCR_BASE | TXx9_TMTCR_TCE, &tmrptr->tcr); txx9tmr_set_next_event() 149 struct txx9_tmr_reg __iomem *tmrptr = txx9_cd->tmrptr; txx9tmr_interrupt() local 151 __raw_writel(0, &tmrptr->tisr); /* ack interrupt */ txx9tmr_interrupt() 167 struct txx9_tmr_reg __iomem *tmrptr; txx9_clockevent_init() local 169 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); txx9_clockevent_init() 170 txx9tmr_stop_and_clear(tmrptr); txx9_clockevent_init() 171 __raw_writel(TIMER_CCD, &tmrptr->ccdr); txx9_clockevent_init() 172 __raw_writel(0, &tmrptr->itmr); txx9_clockevent_init() 173 txx9_clock_event_device.tmrptr = tmrptr; txx9_clockevent_init() 189 struct txx9_tmr_reg __iomem *tmrptr; txx9_tmr_init() local 191 tmrptr = ioremap(baseaddr, sizeof(struct txx9_tmr_reg)); txx9_tmr_init() 193 __raw_writel(TXx9_TMTCR_CRE | TXx9_TMTCR_TCE, &tmrptr->tcr); txx9_tmr_init() 195 __raw_writel(TXx9_TMTCR_CRE, &tmrptr->tcr); txx9_tmr_init() 196 __raw_writel(0, &tmrptr->tisr); txx9_tmr_init() 197 __raw_writel(0xffffffff, &tmrptr->cpra); txx9_tmr_init() 198 __raw_writel(0, &tmrptr->itmr); txx9_tmr_init() 199 __raw_writel(0, &tmrptr->ccdr); txx9_tmr_init() 200 __raw_writel(0, &tmrptr->pgmr); txx9_tmr_init() 201 iounmap(tmrptr); txx9_tmr_init()
|
/linux-4.1.27/arch/mips/txx9/generic/ |
H A D | setup.c | 454 struct txx9_tmr_reg __iomem *tmrptr = txx9_wdt_now() local 457 __raw_writel(TXx9_TMWTMR_WDIS | TXx9_TMWTMR_TWC, &tmrptr->wtmr); txx9_wdt_now() 458 __raw_writel(0, &tmrptr->tcr); txx9_wdt_now() 460 __raw_writel(TXx9_TMWTMR_TWIE, &tmrptr->wtmr); txx9_wdt_now() 461 __raw_writel(1, &tmrptr->cpra); /* immediate */ txx9_wdt_now() 463 &tmrptr->tcr); txx9_wdt_now()
|
Completed in 177 milliseconds