sh_cmt_channel
struct sh_cmt_channel *channels;
static inline u32 sh_cmt_read_cmstr(struct sh_cmt_channel *ch)
static inline void sh_cmt_write_cmstr(struct sh_cmt_channel *ch, u32 value)
static inline u32 sh_cmt_read_cmcsr(struct sh_cmt_channel *ch)
static inline void sh_cmt_write_cmcsr(struct sh_cmt_channel *ch, u32 value)
static inline u32 sh_cmt_read_cmcnt(struct sh_cmt_channel *ch)
static inline int sh_cmt_write_cmcnt(struct sh_cmt_channel *ch, u32 value)
static inline void sh_cmt_write_cmcor(struct sh_cmt_channel *ch, u32 value)
static u32 sh_cmt_get_counter(struct sh_cmt_channel *ch, u32 *has_wrapped)
static void sh_cmt_start_stop_ch(struct sh_cmt_channel *ch, int start)
static int sh_cmt_enable(struct sh_cmt_channel *ch)
static void sh_cmt_disable(struct sh_cmt_channel *ch)
static void sh_cmt_clock_event_program_verify(struct sh_cmt_channel *ch,
static void __sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
static void sh_cmt_set_next(struct sh_cmt_channel *ch, unsigned long delta)
struct sh_cmt_channel *ch = dev_id;
static int sh_cmt_start_clocksource(struct sh_cmt_channel *ch)
static void sh_cmt_stop_clocksource(struct sh_cmt_channel *ch)
static int sh_cmt_start_clockevent(struct sh_cmt_channel *ch)
static void sh_cmt_stop_clockevent(struct sh_cmt_channel *ch)
static struct sh_cmt_channel *cs_to_sh_cmt(struct clocksource *cs)
return container_of(cs, struct sh_cmt_channel, cs);
struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
struct sh_cmt_channel *ch = cs_to_sh_cmt(cs);
static int sh_cmt_register_clocksource(struct sh_cmt_channel *ch,
static struct sh_cmt_channel *ced_to_sh_cmt(struct clock_event_device *ced)
return container_of(ced, struct sh_cmt_channel, ced);
static void sh_cmt_clock_event_start(struct sh_cmt_channel *ch, int periodic)
struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
struct sh_cmt_channel *ch = ced_to_sh_cmt(ced);
static int sh_cmt_register_clockevent(struct sh_cmt_channel *ch,
static int sh_cmt_register(struct sh_cmt_channel *ch, const char *name,
static int sh_cmt_setup_channel(struct sh_cmt_channel *ch, unsigned int index,