Lines Matching refs:r
47 int r; in hdmi_runtime_get() local
51 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
52 WARN_ON(r < 0); in hdmi_runtime_get()
53 if (r < 0) in hdmi_runtime_get()
54 return r; in hdmi_runtime_get()
61 int r; in hdmi_runtime_put() local
65 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
66 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put()
102 int r; in hdmi_init_regulator() local
117 r = regulator_set_voltage(reg, 1800000, 1800000); in hdmi_init_regulator()
118 if (r) { in hdmi_init_regulator()
121 return r; in hdmi_init_regulator()
132 int r; in hdmi_power_on_core() local
134 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
135 if (r) in hdmi_power_on_core()
136 return r; in hdmi_power_on_core()
138 r = hdmi_runtime_get(); in hdmi_power_on_core()
139 if (r) in hdmi_power_on_core()
152 return r; in hdmi_power_on_core()
165 int r; in hdmi_power_on_full() local
171 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full()
172 if (r) in hdmi_power_on_full()
173 return r; in hdmi_power_on_full()
185 r = dss_pll_enable(&hdmi.pll.pll); in hdmi_power_on_full()
186 if (r) { in hdmi_power_on_full()
191 r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo); in hdmi_power_on_full()
192 if (r) { in hdmi_power_on_full()
197 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
199 if (r) { in hdmi_power_on_full()
204 r = hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_power_on_full()
205 if (r) in hdmi_power_on_full()
216 r = hdmi_wp_video_start(&hdmi.wp); in hdmi_power_on_full()
217 if (r) in hdmi_power_on_full()
220 r = dss_mgr_enable(mgr); in hdmi_power_on_full()
221 if (r) in hdmi_power_on_full()
308 int r; in read_edid() local
312 r = hdmi_runtime_get(); in read_edid()
313 BUG_ON(r); in read_edid()
315 r = hdmi4_read_edid(&hdmi.core, buf, len); in read_edid()
320 return r; in read_edid()
326 int r = 0; in hdmi_display_enable() local
334 r = -ENODEV; in hdmi_display_enable()
338 r = hdmi_power_on_full(dssdev); in hdmi_display_enable()
339 if (r) { in hdmi_display_enable()
351 return r; in hdmi_display_enable()
372 int r = 0; in hdmi_core_enable() local
378 r = hdmi_power_on_core(dssdev); in hdmi_core_enable()
379 if (r) { in hdmi_core_enable()
389 return r; in hdmi_core_enable()
407 int r; in hdmi_connect() local
409 r = hdmi_init_regulator(); in hdmi_connect()
410 if (r) in hdmi_connect()
411 return r; in hdmi_connect()
417 r = dss_mgr_connect(mgr, dssdev); in hdmi_connect()
418 if (r) in hdmi_connect()
419 return r; in hdmi_connect()
421 r = omapdss_output_set_device(dssdev, dst); in hdmi_connect()
422 if (r) { in hdmi_connect()
426 return r; in hdmi_connect()
450 int r; in hdmi_read_edid() local
455 r = hdmi_core_enable(dssdev); in hdmi_read_edid()
456 if (r) in hdmi_read_edid()
457 return r; in hdmi_read_edid()
460 r = read_edid(edid, len); in hdmi_read_edid()
465 return r; in hdmi_read_edid()
524 int r; in hdmi_probe_of() local
530 r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); in hdmi_probe_of()
531 if (r) in hdmi_probe_of()
539 return r; in hdmi_probe_of()
651 int r; in omapdss_hdmihw_probe() local
660 r = hdmi_probe_of(pdev); in omapdss_hdmihw_probe()
661 if (r) in omapdss_hdmihw_probe()
662 return r; in omapdss_hdmihw_probe()
665 r = hdmi_wp_init(pdev, &hdmi.wp); in omapdss_hdmihw_probe()
666 if (r) in omapdss_hdmihw_probe()
667 return r; in omapdss_hdmihw_probe()
669 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp); in omapdss_hdmihw_probe()
670 if (r) in omapdss_hdmihw_probe()
671 return r; in omapdss_hdmihw_probe()
673 r = hdmi_phy_init(pdev, &hdmi.phy); in omapdss_hdmihw_probe()
674 if (r) in omapdss_hdmihw_probe()
677 r = hdmi4_core_init(pdev, &hdmi.core); in omapdss_hdmihw_probe()
678 if (r) in omapdss_hdmihw_probe()
684 r = -ENODEV; in omapdss_hdmihw_probe()
688 r = devm_request_threaded_irq(&pdev->dev, irq, in omapdss_hdmihw_probe()
691 if (r) { in omapdss_hdmihw_probe()
700 r = hdmi_audio_register(&pdev->dev); in omapdss_hdmihw_probe()
701 if (r) { in omapdss_hdmihw_probe()
705 return r; in omapdss_hdmihw_probe()
713 return r; in omapdss_hdmihw_probe()
739 int r; in hdmi_runtime_resume() local
741 r = dispc_runtime_get(); in hdmi_runtime_resume()
742 if (r < 0) in hdmi_runtime_resume()
743 return r; in hdmi_runtime_resume()