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 clk_data->num = CLK_NUM; in sun8i_tcon_top_bind()
145 tcon_top->clk_data = clk_data; in sun8i_tcon_top_bind()
194 clk_data->hws[CLK_TCON_TOP_TV0] = in sun8i_tcon_top_bind()
200 clk_data->hws[CLK_TCON_TOP_TV1] = in sun8i_tcon_top_bind()
206 clk_data->hws[CLK_TCON_TOP_DSI] = in sun8i_tcon_top_bind()
212 if (IS_ERR(clk_data->hws[i])) { in sun8i_tcon_top_bind()
213 ret = PTR_ERR(clk_data->hws[i]); in sun8i_tcon_top_bind()
218 clk_data); in sun8i_tcon_top_bind()
228 if (!IS_ERR_OR_NULL(clk_data->hws[i])) in sun8i_tcon_top_bind()
229 clk_hw_unregister_gate(clk_data->hws[i]); in sun8i_tcon_top_bind()
241 struct clk_hw_onecell_data *clk_data = tcon_top->clk_data; in sun8i_tcon_top_unbind() local
246 if (clk_data->hws[i]) in sun8i_tcon_top_unbind()
247 clk_hw_unregister_gate(clk_data->hws[i]); in sun8i_tcon_top_unbind()