Home
last modified time | relevance | path

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

/drivers/clocksource/
Dtime-pistachio.c95 static void pistachio_clksrc_set_mode(struct clocksource *cs, int timeridx, in pistachio_clksrc_set_mode() argument
101 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode()
107 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode()
110 static void pistachio_clksrc_enable(struct clocksource *cs, int timeridx) in pistachio_clksrc_enable() argument
115 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_enable()
116 gpt_writel(pcs->base, RELOAD_VALUE, TIMER_RELOAD_VALUE, timeridx); in pistachio_clksrc_enable()
117 pistachio_clksrc_set_mode(cs, timeridx, true); in pistachio_clksrc_enable()
120 static void pistachio_clksrc_disable(struct clocksource *cs, int timeridx) in pistachio_clksrc_disable() argument
123 pistachio_clksrc_set_mode(cs, timeridx, false); in pistachio_clksrc_disable()