Lines Matching refs:pvi

45 	struct imx8mp_hdmi_pvi *pvi = to_imx8mp_hdmi_pvi(bridge);  in imx8mp_hdmi_pvi_bridge_attach()  local
47 return drm_bridge_attach(bridge->encoder, pvi->next_bridge, in imx8mp_hdmi_pvi_bridge_attach()
55 struct imx8mp_hdmi_pvi *pvi = to_imx8mp_hdmi_pvi(bridge); in imx8mp_hdmi_pvi_bridge_enable() local
66 if (WARN_ON(pm_runtime_resume_and_get(pvi->dev))) in imx8mp_hdmi_pvi_bridge_enable()
79 if (pvi->next_bridge->timings) in imx8mp_hdmi_pvi_bridge_enable()
80 bus_flags = pvi->next_bridge->timings->input_bus_flags; in imx8mp_hdmi_pvi_bridge_enable()
87 writel(val, pvi->regs + HTX_PVI_CTRL); in imx8mp_hdmi_pvi_bridge_enable()
93 struct imx8mp_hdmi_pvi *pvi = to_imx8mp_hdmi_pvi(bridge); in imx8mp_hdmi_pvi_bridge_disable() local
95 writel(0x0, pvi->regs + HTX_PVI_CTRL); in imx8mp_hdmi_pvi_bridge_disable()
97 pm_runtime_put(pvi->dev); in imx8mp_hdmi_pvi_bridge_disable()
108 struct imx8mp_hdmi_pvi *pvi = to_imx8mp_hdmi_pvi(bridge); in imx8mp_hdmi_pvi_bridge_get_input_bus_fmts() local
109 struct drm_bridge *next_bridge = pvi->next_bridge; in imx8mp_hdmi_pvi_bridge_get_input_bus_fmts()
139 struct imx8mp_hdmi_pvi *pvi; in imx8mp_hdmi_pvi_probe() local
141 pvi = devm_kzalloc(&pdev->dev, sizeof(*pvi), GFP_KERNEL); in imx8mp_hdmi_pvi_probe()
142 if (!pvi) in imx8mp_hdmi_pvi_probe()
145 platform_set_drvdata(pdev, pvi); in imx8mp_hdmi_pvi_probe()
146 pvi->dev = &pdev->dev; in imx8mp_hdmi_pvi_probe()
148 pvi->regs = devm_platform_ioremap_resource(pdev, 0); in imx8mp_hdmi_pvi_probe()
149 if (IS_ERR(pvi->regs)) in imx8mp_hdmi_pvi_probe()
150 return PTR_ERR(pvi->regs); in imx8mp_hdmi_pvi_probe()
157 pvi->next_bridge = of_drm_find_bridge(remote); in imx8mp_hdmi_pvi_probe()
160 if (!pvi->next_bridge) in imx8mp_hdmi_pvi_probe()
167 pvi->bridge.funcs = &imx_hdmi_pvi_bridge_funcs; in imx8mp_hdmi_pvi_probe()
168 pvi->bridge.of_node = pdev->dev.of_node; in imx8mp_hdmi_pvi_probe()
169 pvi->bridge.timings = pvi->next_bridge->timings; in imx8mp_hdmi_pvi_probe()
171 drm_bridge_add(&pvi->bridge); in imx8mp_hdmi_pvi_probe()
178 struct imx8mp_hdmi_pvi *pvi = platform_get_drvdata(pdev); in imx8mp_hdmi_pvi_remove() local
180 drm_bridge_remove(&pvi->bridge); in imx8mp_hdmi_pvi_remove()