Lines Matching refs:tclk

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