Lines Matching refs:CR
36 #define CR(x) ((x) * 0x80 + 0x80) macro
75 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
83 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
86 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
95 u16 val = readw(gpt_base + CR(CLKEVT)); in timer_shutdown()
99 writew(val, gpt_base + CR(CLKEVT)); in timer_shutdown()
116 val = readw(gpt_base + CR(CLKEVT)); in spear_set_oneshot()
118 writew(val, gpt_base + CR(CLKEVT)); in spear_set_oneshot()
135 val = readw(gpt_base + CR(CLKEVT)); in spear_set_periodic()
138 writew(val, gpt_base + CR(CLKEVT)); in spear_set_periodic()
157 u16 val = readw(gpt_base + CR(CLKEVT)); in clockevent_next_event()
160 writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT)); in clockevent_next_event()
165 writew(val, gpt_base + CR(CLKEVT)); in clockevent_next_event()
186 writew(CTRL_PRESCALER16, gpt_base + CR(CLKEVT)); in spear_clockevent_init()