Lines Matching refs:compo
46 void sti_compositor_debugfs_init(struct sti_compositor *compo, in sti_compositor_debugfs_init() argument
52 if (compo->vid[i]) in sti_compositor_debugfs_init()
53 vid_debugfs_init(compo->vid[i], minor); in sti_compositor_debugfs_init()
56 if (compo->mixer[i]) in sti_compositor_debugfs_init()
57 sti_mixer_debugfs_init(compo->mixer[i], minor); in sti_compositor_debugfs_init()
64 struct sti_compositor *compo = dev_get_drvdata(dev); in sti_compositor_bind() local
70 struct sti_compositor_subdev_descriptor *desc = compo->data.subdev_desc; in sti_compositor_bind()
71 unsigned int array_size = compo->data.nb_subdev; in sti_compositor_bind()
73 dev_priv->compo = compo; in sti_compositor_bind()
79 compo->vid[vid_id++] = in sti_compositor_bind()
80 sti_vid_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
81 compo->regs + desc[i].offset); in sti_compositor_bind()
85 compo->mixer[mixer_id++] = in sti_compositor_bind()
86 sti_mixer_create(compo->dev, drm_dev, desc[i].id, in sti_compositor_bind()
87 compo->regs + desc[i].offset); in sti_compositor_bind()
113 cursor = sti_cursor_create(drm_dev, compo->dev, in sti_compositor_bind()
115 compo->regs + desc[i].offset, in sti_compositor_bind()
123 primary = sti_gdp_create(drm_dev, compo->dev, in sti_compositor_bind()
125 compo->regs + desc[i].offset, in sti_compositor_bind()
140 sti_crtc_init(drm_dev, compo->mixer[crtc_id], in sti_compositor_bind()
179 struct sti_compositor *compo; in sti_compositor_probe() local
183 compo = devm_kzalloc(dev, sizeof(*compo), GFP_KERNEL); in sti_compositor_probe()
184 if (!compo) { in sti_compositor_probe()
188 compo->dev = dev; in sti_compositor_probe()
190 compo->vtg_vblank_nb[i].notifier_call = sti_crtc_vblank_cb; in sti_compositor_probe()
195 memcpy(&compo->data, of_match_node(compositor_of_match, np)->data, in sti_compositor_probe()
204 compo->regs = devm_ioremap(dev, res->start, resource_size(res)); in sti_compositor_probe()
205 if (compo->regs == NULL) { in sti_compositor_probe()
211 compo->clk_compo_main = devm_clk_get(dev, "compo_main"); in sti_compositor_probe()
212 if (IS_ERR(compo->clk_compo_main)) { in sti_compositor_probe()
214 return PTR_ERR(compo->clk_compo_main); in sti_compositor_probe()
217 compo->clk_compo_aux = devm_clk_get(dev, "compo_aux"); in sti_compositor_probe()
218 if (IS_ERR(compo->clk_compo_aux)) { in sti_compositor_probe()
220 return PTR_ERR(compo->clk_compo_aux); in sti_compositor_probe()
223 compo->clk_pix_main = devm_clk_get(dev, "pix_main"); in sti_compositor_probe()
224 if (IS_ERR(compo->clk_pix_main)) { in sti_compositor_probe()
226 return PTR_ERR(compo->clk_pix_main); in sti_compositor_probe()
229 compo->clk_pix_aux = devm_clk_get(dev, "pix_aux"); in sti_compositor_probe()
230 if (IS_ERR(compo->clk_pix_aux)) { in sti_compositor_probe()
232 return PTR_ERR(compo->clk_pix_aux); in sti_compositor_probe()
236 compo->rst_main = devm_reset_control_get_shared(dev, "compo-main"); in sti_compositor_probe()
238 if (!IS_ERR(compo->rst_main)) in sti_compositor_probe()
239 reset_control_deassert(compo->rst_main); in sti_compositor_probe()
241 compo->rst_aux = devm_reset_control_get_shared(dev, "compo-aux"); in sti_compositor_probe()
243 if (!IS_ERR(compo->rst_aux)) in sti_compositor_probe()
244 reset_control_deassert(compo->rst_aux); in sti_compositor_probe()
248 compo->vtg[STI_MIXER_MAIN] = of_vtg_find(vtg_np); in sti_compositor_probe()
253 compo->vtg[STI_MIXER_AUX] = of_vtg_find(vtg_np); in sti_compositor_probe()
256 platform_set_drvdata(pdev, compo); in sti_compositor_probe()