Lines Matching refs:timer
56 const Timer *timer; member
74 const Timer timer[] = { variable
111 ptrdiff_t diff = t - timer; in timer_index()
113 g_assert(diff >= 0 && diff < ARRAY_SIZE(timer)); in timer_index()
121 return td->tim->irq_base + timer_index(td->timer); in tim_timer_irq()
139 tim_write(td, td->timer->tcsr_offset, value); in tim_write_tcsr()
144 return tim_read(td, td->timer->tcsr_offset); in tim_read_tcsr()
149 tim_write(td, td->timer->ticr_offset, value); in tim_write_ticr()
154 return tim_read(td, td->timer->ticr_offset); in tim_read_ticr()
159 return tim_read(td, td->timer->tdr_offset); in tim_read_tdr()
171 return BIT(timer_index(td->timer)); in tim_timer_bit()
181 for (j = 0; j < ARRAY_SIZE(timer); j++) { in tim_reset()
182 writel(timer_block[i].base_addr + timer[j].tcsr_offset, in tim_reset()
518 timer_index(td->timer), name); in tim_add_test()
527 TestData testdata[ARRAY_SIZE(timer_block) * ARRAY_SIZE(timer)]; in main()
535 for (j = 0; j < ARRAY_SIZE(timer); j++) { in main()
536 TestData *td = &testdata[i * ARRAY_SIZE(timer) + j]; in main()
538 td->timer = &timer[j]; in main()