Lines Matching defs:sh_cmt_channel

91 struct sh_cmt_channel {
124 struct sh_cmt_channel *channels;
242 static inline u32 sh_cmt_read_cmstr(struct sh_cmt_channel *ch)
250 static inline void sh_cmt_write_cmstr(struct sh_cmt_channel *ch, u32 value)
265 static inline u32 sh_cmt_read_cmcsr(struct sh_cmt_channel *ch)
270 static inline void sh_cmt_write_cmcsr(struct sh_cmt_channel *ch, u32 value)
280 static inline u32 sh_cmt_read_cmcnt(struct sh_cmt_channel *ch)
285 static inline int sh_cmt_write_cmcnt(struct sh_cmt_channel *ch, u32 value)
304 static inline void sh_cmt_write_cmcor(struct sh_cmt_channel *ch, u32 value)
314 static u32 sh_cmt_get_counter(struct sh_cmt_channel *ch, u32 *has_wrapped)
335 static void sh_cmt_start_stop_ch(struct sh_cmt_channel *ch, int start)
353 static int sh_cmt_enable(struct sh_cmt_channel *ch)
403 static void sh_cmt_disable(struct sh_cmt_channel *ch)
425 static void sh_cmt_clock_event_program_verify(struct sh_cmt_channel *ch,
511 static void __sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
521 static void sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
532 struct sh_cmt_channel *ch = dev_id;
578 static int sh_cmt_start(struct sh_cmt_channel *ch, unsigned long flag)
602 static void sh_cmt_stop(struct sh_cmt_channel *ch, unsigned long flag)
622 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs)
624 return container_of(cs, struct sh_cmt_channel, cs);
629 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
654 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
669 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
679 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
690 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
699 static int sh_cmt_register_clocksource(struct sh_cmt_channel *ch,
721 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced)
723 return container_of(ced, struct sh_cmt_channel, ced);
726 static void sh_cmt_clock_event_start(struct sh_cmt_channel *ch, int periodic)
738 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
747 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
772 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
785 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
793 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
799 static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch,
846 static int sh_cmt_register(struct sh_cmt_channel *ch, const char *name,
866 static int sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index,