Lines Matching refs:tccr
69 if (tmr->tccr[ch] == 0) { in update_events()
72 if (FIELD_EX8(tmr->tccr[ch], TCCR, CSS) == 0) { in update_events()
77 if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) == CSS_CASCADING) { in update_events()
101 next_time *= clkdiv[FIELD_EX8(tmr->tccr[ch], TCCR, CKS)]; in update_events()
110 int divrate = clkdiv[FIELD_EX8(tmr->tccr[ch], TCCR, CKS)]; in elapsed_time()
135 switch (FIELD_EX8(tmr->tccr[1], TCCR, CSS)) { in read_tcnt()
152 switch (FIELD_EX8(tmr->tccr[0], TCCR, CSS)) { in read_tcnt()
183 uint8_t tccr = 0; in read_tccr() local
184 tccr = FIELD_DP8(tccr, TCCR, TMRIS, in read_tccr()
186 tccr = FIELD_DP8(tccr, TCCR, CSS, in read_tccr()
188 tccr = FIELD_DP8(tccr, TCCR, CKS, in read_tccr()
190 return tccr; in read_tccr()
250 return read_tccr(tmr->tccr[ch]); in tmr_read()
252 return read_tccr(tmr->tccr[0]) << 8 | read_tccr(tmr->tccr[1]); in tmr_read()
305 tmr_write_count(tmr, ch, size, tmr->tccr, val); in tmr_write()
348 FIELD_EX8(tmr->tccr[1], TCCR, CSS) == CSS_CASCADING) { in issue_event()
380 if (FIELD_EX8(tmr->tccr[0], TCCR, CSS) != CSS_CASCADING) { in timer_events()
422 tmr->tccr[0] = tmr->tccr[1] = 0x00; in rtmr_reset()
456 VMSTATE_UINT8_ARRAY(tccr, RTMRState, TMR_CH),