Lines Matching refs:tpu_priv
25 struct tpu_priv { struct
33 static inline unsigned long read_tcnt32(struct tpu_priv *p) in read_tcnt32() argument
42 static int tpu_get_counter(struct tpu_priv *p, unsigned long long *val) in tpu_get_counter()
63 static inline struct tpu_priv *cs_to_priv(struct clocksource *cs) in cs_to_priv()
65 return container_of(cs, struct tpu_priv, cs); in cs_to_priv()
70 struct tpu_priv *p = cs_to_priv(cs); in tpu_clocksource_read()
84 struct tpu_priv *p = cs_to_priv(cs); in tpu_clocksource_enable()
99 struct tpu_priv *p = cs_to_priv(cs); in tpu_clocksource_disable()
108 static struct tpu_priv tpu_priv = { variable
146 tpu_priv.mapbase1 = base[CH_L]; in h8300_tpu_init()
147 tpu_priv.mapbase2 = base[CH_H]; in h8300_tpu_init()
149 return clocksource_register_hz(&tpu_priv.cs, clk_get_rate(clk) / 64); in h8300_tpu_init()