Lines Matching refs:leon3_gptimer_idx
40 static unsigned long leon3_gptimer_idx; /* Timer Index (0..6) within Timer Core */ variable
267 rld = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].rld); in leon_cycles_offset()
268 val = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].val); in leon_cycles_offset()
269 ctrl = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl); in leon_cycles_offset()
271 val = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].val); in leon_cycles_offset()
375 leon3_gptimer_idx = ampopts & 0x7; in leon_init_timers()
388 ctrl = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl); in leon_init_timers()
389 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, in leon_init_timers()
391 ctrl = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl); in leon_init_timers()
398 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].val, 0); in leon_init_timers()
399 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].rld, in leon_init_timers()
402 &leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, 0); in leon_init_timers()
444 leon3_gptimer_irq += leon3_gptimer_idx; in leon_init_timers()
462 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, in leon_init_timers()
478 ctrl = LEON3_BYPASS_LOAD_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl); in leon_clear_clock_irq()
479 LEON3_BYPASS_STORE_PA(&leon3_gptimer_regs->e[leon3_gptimer_idx].ctrl, in leon_clear_clock_irq()