Lines Matching refs:r
52 int r; in hdmi_runtime_get() local
56 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
57 WARN_ON(r < 0); in hdmi_runtime_get()
58 if (r < 0) in hdmi_runtime_get()
59 return r; in hdmi_runtime_get()
66 int r; in hdmi_runtime_put() local
70 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
71 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put()
122 int r; in hdmi_init_regulator() local
135 r = regulator_set_voltage(reg, 1800000, 1800000); in hdmi_init_regulator()
136 if (r) { in hdmi_init_regulator()
139 return r; in hdmi_init_regulator()
150 int r; in hdmi_power_on_core() local
152 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
153 if (r) in hdmi_power_on_core()
154 return r; in hdmi_power_on_core()
156 r = hdmi_runtime_get(); in hdmi_power_on_core()
157 if (r) in hdmi_power_on_core()
170 return r; in hdmi_power_on_core()
183 int r; in hdmi_power_on_full() local
188 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full()
189 if (r) in hdmi_power_on_full()
190 return r; in hdmi_power_on_full()
203 r = dss_pll_enable(&hdmi.pll.pll); in hdmi_power_on_full()
204 if (r) { in hdmi_power_on_full()
209 r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo); in hdmi_power_on_full()
210 if (r) { in hdmi_power_on_full()
215 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
217 if (r) { in hdmi_power_on_full()
222 r = hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_LDOON); in hdmi_power_on_full()
223 if (r) in hdmi_power_on_full()
234 r = hdmi_wp_video_start(&hdmi.wp); in hdmi_power_on_full()
235 if (r) in hdmi_power_on_full()
238 r = dss_mgr_enable(mgr); in hdmi_power_on_full()
239 if (r) in hdmi_power_on_full()
330 int r; in read_edid() local
335 r = hdmi_runtime_get(); in read_edid()
336 BUG_ON(r); in read_edid()
342 r = hdmi5_read_edid(&hdmi.core, buf, len); in read_edid()
349 return r; in read_edid()
370 int r = 0; in hdmi_display_enable() local
378 r = -ENODEV; in hdmi_display_enable()
382 r = hdmi_power_on_full(dssdev); in hdmi_display_enable()
383 if (r) { in hdmi_display_enable()
389 r = hdmi5_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config, in hdmi_display_enable()
391 if (r) { in hdmi_display_enable()
392 DSSERR("Error restoring audio configuration: %d", r); in hdmi_display_enable()
409 return r; in hdmi_display_enable()
432 int r = 0; in hdmi_core_enable() local
438 r = hdmi_power_on_core(dssdev); in hdmi_core_enable()
439 if (r) { in hdmi_core_enable()
449 return r; in hdmi_core_enable()
467 int r; in hdmi_connect() local
469 r = hdmi_init_regulator(); in hdmi_connect()
470 if (r) in hdmi_connect()
471 return r; in hdmi_connect()
477 r = dss_mgr_connect(mgr, dssdev); in hdmi_connect()
478 if (r) in hdmi_connect()
479 return r; in hdmi_connect()
481 r = omapdss_output_set_device(dssdev, dst); in hdmi_connect()
482 if (r) { in hdmi_connect()
486 return r; in hdmi_connect()
510 int r; in hdmi_read_edid() local
515 r = hdmi_core_enable(dssdev); in hdmi_read_edid()
516 if (r) in hdmi_read_edid()
517 return r; in hdmi_read_edid()
520 r = read_edid(edid, len); in hdmi_read_edid()
525 return r; in hdmi_read_edid()
584 int r; in hdmi_probe_of() local
590 r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); in hdmi_probe_of()
591 if (r) in hdmi_probe_of()
599 return r; in hdmi_probe_of()
732 int r; in hdmi5_bind() local
742 r = hdmi_probe_of(pdev); in hdmi5_bind()
743 if (r) in hdmi5_bind()
744 return r; in hdmi5_bind()
747 r = hdmi_wp_init(pdev, &hdmi.wp); in hdmi5_bind()
748 if (r) in hdmi5_bind()
749 return r; in hdmi5_bind()
751 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp); in hdmi5_bind()
752 if (r) in hdmi5_bind()
753 return r; in hdmi5_bind()
755 r = hdmi_phy_init(pdev, &hdmi.phy); in hdmi5_bind()
756 if (r) in hdmi5_bind()
759 r = hdmi5_core_init(pdev, &hdmi.core); in hdmi5_bind()
760 if (r) in hdmi5_bind()
766 r = -ENODEV; in hdmi5_bind()
770 r = devm_request_threaded_irq(&pdev->dev, irq, in hdmi5_bind()
773 if (r) { in hdmi5_bind()
782 r = hdmi_audio_register(&pdev->dev); in hdmi5_bind()
783 if (r) { in hdmi5_bind()
784 DSSERR("Registering HDMI audio failed %d\n", r); in hdmi5_bind()
787 return r; in hdmi5_bind()
795 return r; in hdmi5_bind()
837 int r; in hdmi_runtime_resume() local
839 r = dispc_runtime_get(); in hdmi_runtime_resume()
840 if (r < 0) in hdmi_runtime_resume()
841 return r; in hdmi_runtime_resume()