Lines Matching refs:tclk
36 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
40 spin_lock_irqsave(&tclk->lock, flags);
41 reg = readl(tclk->reg);
43 writel(reg, tclk->reg);
44 spin_unlock_irqrestore(&tclk->lock, flags);
49 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
53 spin_lock_irqsave(&tclk->lock, flags);
54 reg = readl(tclk->reg);
56 writel(reg, tclk->reg);
57 spin_unlock_irqrestore(&tclk->lock, flags);
64 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
67 reg = readl(tclk->reg);
73 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
76 reg = readl(tclk->reg) >> TCON_CH1_SCLK2_MUX_SHIFT;
84 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
88 spin_lock_irqsave(&tclk->lock, flags);
89 reg = readl(tclk->reg);
92 writel(reg, tclk->reg);
93 spin_unlock_irqrestore(&tclk->lock, flags);
173 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
176 reg = readl(tclk->reg);
189 struct tcon_ch1_clk *tclk = hw_to_tclk(hw);
197 spin_lock_irqsave(&tclk->lock, flags);
198 reg = readl(tclk->reg);
205 writel(reg, tclk->reg);
206 spin_unlock_irqrestore(&tclk->lock, flags);
229 struct tcon_ch1_clk *tclk;
249 tclk = kzalloc(sizeof(*tclk), GFP_KERNEL);
250 if (!tclk)
259 tclk->reg = reg;
260 tclk->hw.init = &init;
261 spin_lock_init(&tclk->lock);
263 clk = clk_register(NULL, &tclk->hw);
280 kfree(tclk);