Lines Matching refs:r

51 	int r;  in hdmi_runtime_get()  local
55 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
56 WARN_ON(r < 0); in hdmi_runtime_get()
57 if (r < 0) in hdmi_runtime_get()
58 return r; in hdmi_runtime_get()
65 int r; in hdmi_runtime_put() local
69 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
70 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put()
121 int r; in hdmi_init_regulator() local
134 r = regulator_set_voltage(reg, 1800000, 1800000); in hdmi_init_regulator()
135 if (r) { in hdmi_init_regulator()
138 return r; in hdmi_init_regulator()
149 int r; in hdmi_power_on_core() local
151 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
152 if (r) in hdmi_power_on_core()
153 return r; in hdmi_power_on_core()
155 r = hdmi_runtime_get(); in hdmi_power_on_core()
156 if (r) in hdmi_power_on_core()
169 return r; in hdmi_power_on_core()
182 int r; in hdmi_power_on_full() local
187 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full()
188 if (r) in hdmi_power_on_full()
189 return r; in hdmi_power_on_full()
202 r = dss_pll_enable(&hdmi.pll.pll); in hdmi_power_on_full()
203 if (r) { in hdmi_power_on_full()
208 r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo); in hdmi_power_on_full()
209 if (r) { in hdmi_power_on_full()
214 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
216 if (r) { in hdmi_power_on_full()
221 r = hdmi_wp_set_phy_pwr(&hdmi.wp, HDMI_PHYPWRCMD_LDOON); in hdmi_power_on_full()
222 if (r) in hdmi_power_on_full()
233 r = hdmi_wp_video_start(&hdmi.wp); in hdmi_power_on_full()
234 if (r) in hdmi_power_on_full()
237 r = dss_mgr_enable(mgr); in hdmi_power_on_full()
238 if (r) in hdmi_power_on_full()
329 int r; in read_edid() local
334 r = hdmi_runtime_get(); in read_edid()
335 BUG_ON(r); in read_edid()
341 r = hdmi5_read_edid(&hdmi.core, buf, len); in read_edid()
348 return r; in read_edid()
354 int r = 0; in hdmi_display_enable() local
362 r = -ENODEV; in hdmi_display_enable()
366 r = hdmi_power_on_full(dssdev); in hdmi_display_enable()
367 if (r) { in hdmi_display_enable()
379 return r; in hdmi_display_enable()
400 int r = 0; in hdmi_core_enable() local
406 r = hdmi_power_on_core(dssdev); in hdmi_core_enable()
407 if (r) { in hdmi_core_enable()
417 return r; in hdmi_core_enable()
435 int r; in hdmi_connect() local
437 r = hdmi_init_regulator(); in hdmi_connect()
438 if (r) in hdmi_connect()
439 return r; in hdmi_connect()
445 r = dss_mgr_connect(mgr, dssdev); in hdmi_connect()
446 if (r) in hdmi_connect()
447 return r; in hdmi_connect()
449 r = omapdss_output_set_device(dssdev, dst); in hdmi_connect()
450 if (r) { in hdmi_connect()
454 return r; in hdmi_connect()
478 int r; in hdmi_read_edid() local
483 r = hdmi_core_enable(dssdev); in hdmi_read_edid()
484 if (r) in hdmi_read_edid()
485 return r; in hdmi_read_edid()
488 r = read_edid(edid, len); in hdmi_read_edid()
493 return r; in hdmi_read_edid()
552 int r; in hdmi_probe_of() local
558 r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); in hdmi_probe_of()
559 if (r) in hdmi_probe_of()
567 return r; in hdmi_probe_of()
686 int r; in omapdss_hdmihw_probe() local
695 r = hdmi_probe_of(pdev); in omapdss_hdmihw_probe()
696 if (r) in omapdss_hdmihw_probe()
697 return r; in omapdss_hdmihw_probe()
700 r = hdmi_wp_init(pdev, &hdmi.wp); in omapdss_hdmihw_probe()
701 if (r) in omapdss_hdmihw_probe()
702 return r; in omapdss_hdmihw_probe()
704 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp); in omapdss_hdmihw_probe()
705 if (r) in omapdss_hdmihw_probe()
706 return r; in omapdss_hdmihw_probe()
708 r = hdmi_phy_init(pdev, &hdmi.phy); in omapdss_hdmihw_probe()
709 if (r) in omapdss_hdmihw_probe()
712 r = hdmi5_core_init(pdev, &hdmi.core); in omapdss_hdmihw_probe()
713 if (r) in omapdss_hdmihw_probe()
719 r = -ENODEV; in omapdss_hdmihw_probe()
723 r = devm_request_threaded_irq(&pdev->dev, irq, in omapdss_hdmihw_probe()
726 if (r) { in omapdss_hdmihw_probe()
735 r = hdmi_audio_register(&pdev->dev); in omapdss_hdmihw_probe()
736 if (r) { in omapdss_hdmihw_probe()
737 DSSERR("Registering HDMI audio failed %d\n", r); in omapdss_hdmihw_probe()
740 return r; in omapdss_hdmihw_probe()
748 return r; in omapdss_hdmihw_probe()
774 int r; in hdmi_runtime_resume() local
776 r = dispc_runtime_get(); in hdmi_runtime_resume()
777 if (r < 0) in hdmi_runtime_resume()
778 return r; in hdmi_runtime_resume()