Lines Matching refs:CR
39 #define CR(x) ((x) * 0x80 + 0x80) macro
80 writew(CTRL_PRESCALER256, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
88 val = readw(gpt_base + CR(CLKSRC)); in spear_clocksource_init()
91 writew(val, gpt_base + CR(CLKSRC)); in spear_clocksource_init()
113 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
115 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
123 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
126 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
130 val = readw(gpt_base + CR(CLKEVT)); in clockevent_set_mode()
132 writew(val, gpt_base + CR(CLKEVT)); in clockevent_set_mode()
149 u16 val = readw(gpt_base + CR(CLKEVT)); in clockevent_next_event()
152 writew(val & ~CTRL_ENABLE, gpt_base + CR(CLKEVT)); in clockevent_next_event()
157 writew(val, gpt_base + CR(CLKEVT)); in clockevent_next_event()
184 writew(CTRL_PRESCALER16, gpt_base + CR(CLKEVT)); in spear_clockevent_init()