Lines Matching refs:r
48 int r; in hdmi_runtime_get() local
52 r = pm_runtime_get_sync(&hdmi.pdev->dev); in hdmi_runtime_get()
53 WARN_ON(r < 0); in hdmi_runtime_get()
54 if (r < 0) in hdmi_runtime_get()
55 return r; in hdmi_runtime_get()
62 int r; in hdmi_runtime_put() local
66 r = pm_runtime_put_sync(&hdmi.pdev->dev); in hdmi_runtime_put()
67 WARN_ON(r < 0 && r != -ENOSYS); in hdmi_runtime_put()
103 int r; in hdmi_init_regulator() local
118 r = regulator_set_voltage(reg, 1800000, 1800000); in hdmi_init_regulator()
119 if (r) { in hdmi_init_regulator()
122 return r; in hdmi_init_regulator()
133 int r; in hdmi_power_on_core() local
135 r = regulator_enable(hdmi.vdda_reg); in hdmi_power_on_core()
136 if (r) in hdmi_power_on_core()
137 return r; in hdmi_power_on_core()
139 r = hdmi_runtime_get(); in hdmi_power_on_core()
140 if (r) in hdmi_power_on_core()
153 return r; in hdmi_power_on_core()
166 int r; in hdmi_power_on_full() local
172 r = hdmi_power_on_core(dssdev); in hdmi_power_on_full()
173 if (r) in hdmi_power_on_full()
174 return r; in hdmi_power_on_full()
186 r = dss_pll_enable(&hdmi.pll.pll); in hdmi_power_on_full()
187 if (r) { in hdmi_power_on_full()
192 r = dss_pll_set_config(&hdmi.pll.pll, &hdmi_cinfo); in hdmi_power_on_full()
193 if (r) { in hdmi_power_on_full()
198 r = hdmi_phy_configure(&hdmi.phy, hdmi_cinfo.clkdco, in hdmi_power_on_full()
200 if (r) { in hdmi_power_on_full()
205 r = hdmi_wp_set_phy_pwr(wp, HDMI_PHYPWRCMD_LDOON); in hdmi_power_on_full()
206 if (r) in hdmi_power_on_full()
217 r = hdmi_wp_video_start(&hdmi.wp); in hdmi_power_on_full()
218 if (r) in hdmi_power_on_full()
221 r = dss_mgr_enable(mgr); in hdmi_power_on_full()
222 if (r) in hdmi_power_on_full()
309 int r; in read_edid() local
313 r = hdmi_runtime_get(); in read_edid()
314 BUG_ON(r); in read_edid()
316 r = hdmi4_read_edid(&hdmi.core, buf, len); in read_edid()
321 return r; in read_edid()
340 int r = 0; in hdmi_display_enable() local
348 r = -ENODEV; in hdmi_display_enable()
352 r = hdmi_power_on_full(dssdev); in hdmi_display_enable()
353 if (r) { in hdmi_display_enable()
359 r = hdmi4_audio_config(&hdmi.core, &hdmi.wp, &hdmi.audio_config, in hdmi_display_enable()
361 if (r) { in hdmi_display_enable()
362 DSSERR("Error restoring audio configuration: %d", r); in hdmi_display_enable()
379 return r; in hdmi_display_enable()
402 int r = 0; in hdmi_core_enable() local
408 r = hdmi_power_on_core(dssdev); in hdmi_core_enable()
409 if (r) { in hdmi_core_enable()
419 return r; in hdmi_core_enable()
437 int r; in hdmi_connect() local
439 r = hdmi_init_regulator(); in hdmi_connect()
440 if (r) in hdmi_connect()
441 return r; in hdmi_connect()
447 r = dss_mgr_connect(mgr, dssdev); in hdmi_connect()
448 if (r) in hdmi_connect()
449 return r; in hdmi_connect()
451 r = omapdss_output_set_device(dssdev, dst); in hdmi_connect()
452 if (r) { in hdmi_connect()
456 return r; in hdmi_connect()
480 int r; in hdmi_read_edid() local
485 r = hdmi_core_enable(dssdev); in hdmi_read_edid()
486 if (r) in hdmi_read_edid()
487 return r; in hdmi_read_edid()
490 r = read_edid(edid, len); in hdmi_read_edid()
495 return r; in hdmi_read_edid()
554 int r; in hdmi_probe_of() local
560 r = hdmi_parse_lanes_of(pdev, ep, &hdmi.phy); in hdmi_probe_of()
561 if (r) in hdmi_probe_of()
569 return r; in hdmi_probe_of()
696 int r; in hdmi4_bind() local
706 r = hdmi_probe_of(pdev); in hdmi4_bind()
707 if (r) in hdmi4_bind()
708 return r; in hdmi4_bind()
711 r = hdmi_wp_init(pdev, &hdmi.wp); in hdmi4_bind()
712 if (r) in hdmi4_bind()
713 return r; in hdmi4_bind()
715 r = hdmi_pll_init(pdev, &hdmi.pll, &hdmi.wp); in hdmi4_bind()
716 if (r) in hdmi4_bind()
717 return r; in hdmi4_bind()
719 r = hdmi_phy_init(pdev, &hdmi.phy); in hdmi4_bind()
720 if (r) in hdmi4_bind()
723 r = hdmi4_core_init(pdev, &hdmi.core); in hdmi4_bind()
724 if (r) in hdmi4_bind()
730 r = -ENODEV; in hdmi4_bind()
734 r = devm_request_threaded_irq(&pdev->dev, irq, in hdmi4_bind()
737 if (r) { in hdmi4_bind()
746 r = hdmi_audio_register(&pdev->dev); in hdmi4_bind()
747 if (r) { in hdmi4_bind()
751 return r; in hdmi4_bind()
759 return r; in hdmi4_bind()
801 int r; in hdmi_runtime_resume() local
803 r = dispc_runtime_get(); in hdmi_runtime_resume()
804 if (r < 0) in hdmi_runtime_resume()
805 return r; in hdmi_runtime_resume()