Lines Matching refs:to

45 					    struct timer_of *to)
47 writel(period, timer_of_base(to) + PWM_LRC);
48 writel(period, timer_of_base(to) + PWM_HRC);
51 static inline void ls1x_pwmtimer_clear(struct timer_of *to)
53 writel(0, timer_of_base(to) + PWM_CNTR);
56 static inline void ls1x_pwmtimer_start(struct timer_of *to)
58 writel((INT_EN | PWM_OE | CNT_EN), timer_of_base(to) + PWM_CTRL);
61 static inline void ls1x_pwmtimer_stop(struct timer_of *to)
63 writel(0, timer_of_base(to) + PWM_CTRL);
66 static inline void ls1x_pwmtimer_irq_ack(struct timer_of *to)
70 val = readl(timer_of_base(to) + PWM_CTRL);
72 writel(val, timer_of_base(to) + PWM_CTRL);
78 struct timer_of *to = to_timer_of(clkevt);
80 ls1x_pwmtimer_irq_ack(to);
81 ls1x_pwmtimer_clear(to);
82 ls1x_pwmtimer_start(to);
91 struct timer_of *to = to_timer_of(clkevt);
94 ls1x_pwmtimer_set_period(timer_of_period(to), to);
95 ls1x_pwmtimer_clear(to);
96 ls1x_pwmtimer_start(to);
123 struct timer_of *to = to_timer_of(clkevt);
126 ls1x_pwmtimer_set_period(evt, to);
127 ls1x_pwmtimer_clear(to);
128 ls1x_pwmtimer_start(to);
155 * to just read by itself. So use jiffies to emulate a free
172 * there is a collision on the seqlock and our caller has to
175 * before latching the timer count to guarantee that although
186 * It's possible for count to appear to go the wrong way for this
192 * Previous attempts to handle these cases intelligently were buggy, so
218 struct timer_of *to = &ls1x_to;
221 ret = timer_of_init(np, to);
225 clockevents_config_and_register(&to->clkevt, timer_of_rate(to),
228 ls1x_clocksource.reg_base = timer_of_base(to);
229 ls1x_clocksource.ticks_per_jiffy = timer_of_period(to);
232 timer_of_rate(to));