Lines Matching refs:id
69 int id; member
115 trace_grlib_gptimer_disabled(timer->id, timer->config); in grlib_gptimer_enable()
122 trace_grlib_gptimer_enable(timer->id, timer->counter); in grlib_gptimer_enable()
133 trace_grlib_gptimer_restart(timer->id, timer->reload); in grlib_gptimer_restart()
166 trace_grlib_gptimer_hit(timer->id); in grlib_gptimer_hit()
186 int id; in grlib_gptimer_read() local
210 id = (addr - TIMER_BASE) / TIMER_BASE; in grlib_gptimer_read()
212 if (id >= 0 && id < unit->nr_timers) { in grlib_gptimer_read()
217 value = ptimer_get_count(unit->timers[id].ptimer); in grlib_gptimer_read()
218 trace_grlib_gptimer_readl(id, addr, value); in grlib_gptimer_read()
222 value = unit->timers[id].reload; in grlib_gptimer_read()
223 trace_grlib_gptimer_readl(id, addr, value); in grlib_gptimer_read()
227 trace_grlib_gptimer_readl(id, addr, unit->timers[id].config); in grlib_gptimer_read()
228 return unit->timers[id].config; in grlib_gptimer_read()
245 int id; in grlib_gptimer_write() local
274 id = (addr - TIMER_BASE) / TIMER_BASE; in grlib_gptimer_write()
276 if (id >= 0 && id < unit->nr_timers) { in grlib_gptimer_write()
281 trace_grlib_gptimer_writel(id, addr, value); in grlib_gptimer_write()
282 grlib_gptimer_tx_begin(&unit->timers[id]); in grlib_gptimer_write()
283 unit->timers[id].counter = value; in grlib_gptimer_write()
284 grlib_gptimer_enable(&unit->timers[id]); in grlib_gptimer_write()
285 grlib_gptimer_tx_commit(&unit->timers[id]); in grlib_gptimer_write()
289 trace_grlib_gptimer_writel(id, addr, value); in grlib_gptimer_write()
290 unit->timers[id].reload = value; in grlib_gptimer_write()
294 trace_grlib_gptimer_writel(id, addr, value); in grlib_gptimer_write()
301 value |= unit->timers[id].config & GPTIMER_INT_PENDING; in grlib_gptimer_write()
304 unit->timers[id].config = value; in grlib_gptimer_write()
309 grlib_gptimer_tx_begin(&unit->timers[id]); in grlib_gptimer_write()
311 grlib_gptimer_restart(&unit->timers[id]); in grlib_gptimer_write()
313 grlib_gptimer_enable(&unit->timers[id]); in grlib_gptimer_write()
319 unit->timers[id].config = value; in grlib_gptimer_write()
320 grlib_gptimer_tx_commit(&unit->timers[id]); in grlib_gptimer_write()
389 timer->id = i; in grlib_gptimer_realize()