Lines Matching defs:sh_mtu2_channel
32 struct sh_mtu2_channel {
49 struct sh_mtu2_channel *channels;
156 static inline unsigned long sh_mtu2_read(struct sh_mtu2_channel *ch, int reg_nr)
171 static inline void sh_mtu2_write(struct sh_mtu2_channel *ch, int reg_nr,
187 static void sh_mtu2_start_stop_ch(struct sh_mtu2_channel *ch, int start)
204 static int sh_mtu2_enable(struct sh_mtu2_channel *ch)
245 static void sh_mtu2_disable(struct sh_mtu2_channel *ch)
259 struct sh_mtu2_channel *ch = dev_id;
270 static struct sh_mtu2_channel *ced_to_sh_mtu2(struct clock_event_device *ced)
272 return container_of(ced, struct sh_mtu2_channel, ced);
277 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
287 struct sh_mtu2_channel *ch = ced_to_sh_mtu2(ced);
308 static void sh_mtu2_register_clockevent(struct sh_mtu2_channel *ch,
327 static int sh_mtu2_register(struct sh_mtu2_channel *ch, const char *name)
339 static int sh_mtu2_setup_channel(struct sh_mtu2_channel *ch, unsigned int index,