Lines Matching defs:sh_cmt_channel

90 struct sh_cmt_channel {
123 struct sh_cmt_channel *channels;
241 static inline u32 sh_cmt_read_cmstr(struct sh_cmt_channel *ch)
249 static inline void sh_cmt_write_cmstr(struct sh_cmt_channel *ch, u32 value)
264 static inline u32 sh_cmt_read_cmcsr(struct sh_cmt_channel *ch)
269 static inline void sh_cmt_write_cmcsr(struct sh_cmt_channel *ch, u32 value)
279 static inline u32 sh_cmt_read_cmcnt(struct sh_cmt_channel *ch)
284 static inline int sh_cmt_write_cmcnt(struct sh_cmt_channel *ch, u32 value)
303 static inline void sh_cmt_write_cmcor(struct sh_cmt_channel *ch, u32 value)
313 static u32 sh_cmt_get_counter(struct sh_cmt_channel *ch, u32 *has_wrapped)
334 static void sh_cmt_start_stop_ch(struct sh_cmt_channel *ch, int start)
352 static int sh_cmt_enable(struct sh_cmt_channel *ch)
402 static void sh_cmt_disable(struct sh_cmt_channel *ch)
423 static void sh_cmt_clock_event_program_verify(struct sh_cmt_channel *ch,
509 static void __sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
519 static void sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
530 struct sh_cmt_channel *ch = dev_id;
576 static int sh_cmt_start(struct sh_cmt_channel *ch, unsigned long flag)
606 static void sh_cmt_stop(struct sh_cmt_channel *ch, unsigned long flag)
632 static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs)
634 return container_of(cs, struct sh_cmt_channel, cs);
639 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
664 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
679 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
689 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
700 struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
709 static int sh_cmt_register_clocksource(struct sh_cmt_channel *ch,
731 static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced)
733 return container_of(ced, struct sh_cmt_channel, ced);
736 static void sh_cmt_clock_event_start(struct sh_cmt_channel *ch, int periodic)
748 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
757 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
782 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
795 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
803 struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
809 static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch,
856 static int sh_cmt_register(struct sh_cmt_channel *ch, const char *name,
876 static int sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index,