Lines Matching refs:pcsr
49 uint16_t pcsr; member
56 if ((s->pcsr & (PCSR_PIE | PCSR_PIF)) == (PCSR_PIE | PCSR_PIF)) in m5208_timer_update()
72 s->pcsr &= ~PCSR_PIF; in m5208_timer_write()
76 if (((s->pcsr ^ value) & ~PCSR_PIE) == 0) { in m5208_timer_write()
77 s->pcsr = value; in m5208_timer_write()
83 if (s->pcsr & PCSR_EN) in m5208_timer_write()
86 s->pcsr = value; in m5208_timer_write()
88 prescale = 1 << ((s->pcsr & PCSR_PRE_MASK) >> PCSR_PRE_SHIFT); in m5208_timer_write()
90 if (s->pcsr & PCSR_RLD) in m5208_timer_write()
96 if (s->pcsr & PCSR_EN) in m5208_timer_write()
103 s->pcsr &= ~PCSR_PIF; in m5208_timer_write()
104 if ((s->pcsr & PCSR_RLD) == 0) { in m5208_timer_write()
105 if (s->pcsr & PCSR_OVW) in m5208_timer_write()
108 ptimer_set_limit(s->timer, value, s->pcsr & PCSR_OVW); in m5208_timer_write()
125 s->pcsr |= PCSR_PIF; in m5208_timer_trigger()
135 return s->pcsr; in m5208_timer_read()