Lines Matching refs:clk_data
128 struct clk_hw_onecell_data *clk_data; in sun8i_tcon_top_bind() local
140 clk_data = devm_kzalloc(dev, struct_size(clk_data, hws, CLK_NUM), in sun8i_tcon_top_bind()
142 if (!clk_data) in sun8i_tcon_top_bind()
144 tcon_top->clk_data = clk_data; in sun8i_tcon_top_bind()
193 clk_data->hws[CLK_TCON_TOP_TV0] = in sun8i_tcon_top_bind()
199 clk_data->hws[CLK_TCON_TOP_TV1] = in sun8i_tcon_top_bind()
205 clk_data->hws[CLK_TCON_TOP_DSI] = in sun8i_tcon_top_bind()
211 if (IS_ERR(clk_data->hws[i])) { in sun8i_tcon_top_bind()
212 ret = PTR_ERR(clk_data->hws[i]); in sun8i_tcon_top_bind()
216 clk_data->num = CLK_NUM; in sun8i_tcon_top_bind()
219 clk_data); in sun8i_tcon_top_bind()
229 if (!IS_ERR_OR_NULL(clk_data->hws[i])) in sun8i_tcon_top_bind()
230 clk_hw_unregister_gate(clk_data->hws[i]); in sun8i_tcon_top_bind()
242 struct clk_hw_onecell_data *clk_data = tcon_top->clk_data; in sun8i_tcon_top_unbind() local
247 if (clk_data->hws[i]) in sun8i_tcon_top_unbind()
248 clk_hw_unregister_gate(clk_data->hws[i]); in sun8i_tcon_top_unbind()