Lines Matching refs:to
45 struct timer_of *to) in ls1x_pwmtimer_set_period() argument
47 writel(period, timer_of_base(to) + PWM_LRC); in ls1x_pwmtimer_set_period()
48 writel(period, timer_of_base(to) + PWM_HRC); in ls1x_pwmtimer_set_period()
51 static inline void ls1x_pwmtimer_clear(struct timer_of *to) in ls1x_pwmtimer_clear() argument
53 writel(0, timer_of_base(to) + PWM_CNTR); in ls1x_pwmtimer_clear()
56 static inline void ls1x_pwmtimer_start(struct timer_of *to) in ls1x_pwmtimer_start() argument
58 writel((INT_EN | PWM_OE | CNT_EN), timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_start()
61 static inline void ls1x_pwmtimer_stop(struct timer_of *to) in ls1x_pwmtimer_stop() argument
63 writel(0, timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_stop()
66 static inline void ls1x_pwmtimer_irq_ack(struct timer_of *to) in ls1x_pwmtimer_irq_ack() argument
70 val = readl(timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_irq_ack()
72 writel(val, timer_of_base(to) + PWM_CTRL); in ls1x_pwmtimer_irq_ack()
78 struct timer_of *to = to_timer_of(clkevt); in ls1x_clockevent_isr() local
80 ls1x_pwmtimer_irq_ack(to); in ls1x_clockevent_isr()
81 ls1x_pwmtimer_clear(to); in ls1x_clockevent_isr()
82 ls1x_pwmtimer_start(to); in ls1x_clockevent_isr()
91 struct timer_of *to = to_timer_of(clkevt); in ls1x_clockevent_set_state_periodic() local
94 ls1x_pwmtimer_set_period(timer_of_period(to), to); in ls1x_clockevent_set_state_periodic()
95 ls1x_pwmtimer_clear(to); in ls1x_clockevent_set_state_periodic()
96 ls1x_pwmtimer_start(to); in ls1x_clockevent_set_state_periodic()
123 struct timer_of *to = to_timer_of(clkevt); in ls1x_clockevent_set_next() local
126 ls1x_pwmtimer_set_period(evt, to); in ls1x_clockevent_set_next()
127 ls1x_pwmtimer_clear(to); in ls1x_clockevent_set_next()
128 ls1x_pwmtimer_start(to); in ls1x_clockevent_set_next()
218 struct timer_of *to = &ls1x_to; in ls1x_pwm_clocksource_init() local
221 ret = timer_of_init(np, to); in ls1x_pwm_clocksource_init()
225 clockevents_config_and_register(&to->clkevt, timer_of_rate(to), in ls1x_pwm_clocksource_init()
228 ls1x_clocksource.reg_base = timer_of_base(to); in ls1x_pwm_clocksource_init()
229 ls1x_clocksource.ticks_per_jiffy = timer_of_period(to); in ls1x_pwm_clocksource_init()
232 timer_of_rate(to)); in ls1x_pwm_clocksource_init()