Lines Matching refs:CR
39 #define CR(x) ((x) * 0x80 + 0x80) macro
78 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
86 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
89 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
98 u16 val = readw(gpt_base + CR(CLKEVT)); in timer_shutdown()
102 writew(val, gpt_base + CR(CLKEVT)); in timer_shutdown()
119 val = readw(gpt_base + CR(CLKEVT)); in spear_set_oneshot()
121 writew(val, gpt_base + CR(CLKEVT)); in spear_set_oneshot()
138 val = readw(gpt_base + CR(CLKEVT)); in spear_set_periodic()
141 writew(val, gpt_base + CR(CLKEVT)); in spear_set_periodic()
160 u16 val = readw(gpt_base + CR(CLKEVT)); in clockevent_next_event()
163 writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT)); in clockevent_next_event()
168 writew(val, gpt_base + CR(CLKEVT)); in clockevent_next_event()
195 writew(CTRL_PRESCALER16, gpt_base + CR(CLKEVT)); in spear_clockevent_init()