Lines Matching defs:sh_tmu_channel
38 struct sh_tmu_channel {
63 struct sh_tmu_channel *channels;
84 static inline unsigned long sh_tmu_read(struct sh_tmu_channel *ch, int reg_nr)
105 static inline void sh_tmu_write(struct sh_tmu_channel *ch, int reg_nr,
127 static void sh_tmu_start_stop_ch(struct sh_tmu_channel *ch, int start)
144 static int __sh_tmu_enable(struct sh_tmu_channel *ch)
172 static int sh_tmu_enable(struct sh_tmu_channel *ch)
183 static void __sh_tmu_disable(struct sh_tmu_channel *ch)
195 static void sh_tmu_disable(struct sh_tmu_channel *ch)
209 static void sh_tmu_set_next(struct sh_tmu_channel *ch, unsigned long delta,
235 struct sh_tmu_channel *ch = dev_id;
248 static struct sh_tmu_channel *cs_to_sh_tmu(struct clocksource *cs)
250 return container_of(cs, struct sh_tmu_channel, cs);
255 struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
262 struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
277 struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
288 struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
301 struct sh_tmu_channel *ch = cs_to_sh_tmu(cs);
312 static int sh_tmu_register_clocksource(struct sh_tmu_channel *ch,
334 static struct sh_tmu_channel *ced_to_sh_tmu(struct clock_event_device *ced)
336 return container_of(ced, struct sh_tmu_channel, ced);
339 static void sh_tmu_clock_event_start(struct sh_tmu_channel *ch, int periodic)
351 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
361 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
386 struct sh_tmu_channel *ch = ced_to_sh_tmu(ced);
405 static void sh_tmu_register_clockevent(struct sh_tmu_channel *ch,
438 static int sh_tmu_register(struct sh_tmu_channel *ch, const char *name,
452 static int sh_tmu_channel_setup(struct sh_tmu_channel *ch, unsigned int index,