Lines Matching refs:timers
89 struct lm32timer *timers = hw_data (me);
103 timer_reg = base - timers->base;
108 timers->status = value;
111 timers->control = value;
112 if (timers->control & 0x4)
119 timers->period = value;
133 struct lm32timer *timers = hw_data (me);
140 timer_reg = base - timers->base;
145 value = timers->status;
148 value = timers->control;
151 value = timers->period;
154 value = timers->snapshot;
174 attach_lm32timer_regs (struct hw *me, struct lm32timer *timers)
188 timers->base = attach_address;
190 timers->limit = attach_address + (attach_size - 1);
198 struct lm32timer *timers;
201 timers = HW_ZALLOC (me, struct lm32timer);
202 set_hw_data (me, timers);
208 attach_lm32timer_regs (me, timers);
210 /* Initialize the timers. */
211 timers->status = 0;
212 timers->control = 0;
213 timers->period = 0;
214 timers->snapshot = 0;