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