History

drm/msm: rename hdmi symbols

Global symbols in the kernel should be prefixed by the name of the subsystem and/or driver to avoid conflicts when all code is built-in. In this case, function names like 'hdmi_register' or 'hdmi_set_mode' are way too generic for an MSM specific DRM driver, so I'm renaming them all to msm_hdmi_* here. I also rename a lot of the 'static' symbols along with the global names for consistency, even though those are relatively harmless; they might only be slightly confusing when they show up in backtraces.

Arnd Bergmann committed 10 years ago

Commit fcda50c1 parent 7977f4417 files · +264 −264Browse files

Unified · Split

17 files
  1. drivers/gpu/drm/msm/hdmi/hdmi.c +49 −49
  2. drivers/gpu/drm/msm/hdmi/hdmi.h +30 −30
  3. drivers/gpu/drm/msm/hdmi/hdmi_audio.c +5 −5
  4. drivers/gpu/drm/msm/hdmi/hdmi_bridge.c +28 −28
  5. drivers/gpu/drm/msm/hdmi/hdmi_connector.c +17 −17
  6. drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c +83 −83
  7. drivers/gpu/drm/msm/hdmi/hdmi_i2c.c +10 −10
  8. drivers/gpu/drm/msm/hdmi/hdmi_phy.c +29 −29
  9. drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c +1 −1
  10. drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c +2 −2
  11. drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c +1 −1
  12. drivers/gpu/drm/msm/hdmi/hdmi_phy_8x74.c +1 −1
  13. drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c +1 −1
  14. drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c +1 −1
  15. drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c +1 −1
  16. drivers/gpu/drm/msm/msm_drv.c +2 −2
  17. drivers/gpu/drm/msm/msm_drv.h +3 −3
drivers/gpu/drm/msm/hdmi/hdmi.c+49−49
@@ -21,7 +21,7 @@ · 20 unmodified lines
2121
2222 #include "hdmi.h"
2323
24−void hdmi_set_mode(struct hdmi *hdmi, bool power_on)
24+void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on)
2525 {
2626 uint32_t ctrl = 0;
2727 unsigned long flags;
@@ -46,26 +46,26 @@ void hdmi_set_mode(struct hdmi *hdmi, bool power_on) · 18 unmodified lines
4646 power_on ? "Enable" : "Disable", ctrl);
4747 }
4848
49−static irqreturn_t hdmi_irq(int irq, void *dev_id)
49+static irqreturn_t msm_hdmi_irq(int irq, void *dev_id)
5050 {
5151 struct hdmi *hdmi = dev_id;
5252
5353 /* Process HPD: */
54− hdmi_connector_irq(hdmi->connector);
54+ msm_hdmi_connector_irq(hdmi->connector);
5555
5656 /* Process DDC: */
57− hdmi_i2c_irq(hdmi->i2c);
57+ msm_hdmi_i2c_irq(hdmi->i2c);
5858
5959 /* Process HDCP: */
6060 if (hdmi->hdcp_ctrl)
61− hdmi_hdcp_irq(hdmi->hdcp_ctrl);
61+ msm_hdmi_hdcp_irq(hdmi->hdcp_ctrl);
6262
6363 /* TODO audio.. */
6464
6565 return IRQ_HANDLED;
6666 }
6767
68−static void hdmi_destroy(struct hdmi *hdmi)
68+static void msm_hdmi_destroy(struct hdmi *hdmi)
6969 {
7070 /*
7171 * at this point, hpd has been disabled,
@@ -75,7 +75,7 @@ static void hdmi_destroy(struct hdmi *hdmi) · 3 unmodified lines
7575 flush_workqueue(hdmi->workq);
7676 destroy_workqueue(hdmi->workq);
7777 }
78− hdmi_hdcp_destroy(hdmi);
78+ msm_hdmi_hdcp_destroy(hdmi);
7979
8080 if (hdmi->phy_dev) {
8181 put_device(hdmi->phy_dev);
@@ -84,12 +84,12 @@ static void hdmi_destroy(struct hdmi *hdmi) · 2 unmodified lines
8484 }
8585
8686 if (hdmi->i2c)
87− hdmi_i2c_destroy(hdmi->i2c);
87+ msm_hdmi_i2c_destroy(hdmi->i2c);
8888
8989 platform_set_drvdata(hdmi->pdev, NULL);
9090 }
9191
92−static int hdmi_get_phy(struct hdmi *hdmi)
92+static int msm_hdmi_get_phy(struct hdmi *hdmi)
9393 {
9494 struct platform_device *pdev = hdmi->pdev;
9595 struct platform_device *phy_pdev;
@@ -121,7 +121,7 @@ static int hdmi_get_phy(struct hdmi *hdmi) · 25 unmodified lines
121121 * we are to EPROBE_DEFER we want to do it here, rather than later
122122 * at modeset_init() time
123123 */
124−static struct hdmi *hdmi_init(struct platform_device *pdev)
124+static struct hdmi *msm_hdmi_init(struct platform_device *pdev)
125125 {
126126 struct hdmi_platform_config *config = pdev->dev.platform_data;
127127 struct hdmi *hdmi = NULL;
@@ -240,7 +240,7 @@ static struct hdmi *hdmi_init(struct platform_device *pdev) · 112 unmodified lines
240240
241241 hdmi->workq = alloc_ordered_workqueue("msm_hdmi", 0);
242242
243− hdmi->i2c = hdmi_i2c_init(hdmi);
243+ hdmi->i2c = msm_hdmi_i2c_init(hdmi);
244244 if (IS_ERR(hdmi->i2c)) {
245245 ret = PTR_ERR(hdmi->i2c);
246246 dev_err(&pdev->dev, "failed to get i2c: %d\n", ret);
@@ -248,13 +248,13 @@ static struct hdmi *hdmi_init(struct platform_device *pdev) · 1 unmodified line
248248 goto fail;
249249 }
250250
251− ret = hdmi_get_phy(hdmi);
251+ ret = msm_hdmi_get_phy(hdmi);
252252 if (ret) {
253253 dev_err(&pdev->dev, "failed to get phy\n");
254254 goto fail;
255255 }
256256
257− hdmi->hdcp_ctrl = hdmi_hdcp_init(hdmi);
257+ hdmi->hdcp_ctrl = msm_hdmi_hdcp_init(hdmi);
258258 if (IS_ERR(hdmi->hdcp_ctrl)) {
259259 dev_warn(&pdev->dev, "failed to init hdcp: disabled\n");
260260 hdmi->hdcp_ctrl = NULL;
@@ -264,7 +264,7 @@ static struct hdmi *hdmi_init(struct platform_device *pdev) · 3 unmodified lines
264264
265265 fail:
266266 if (hdmi)
267− hdmi_destroy(hdmi);
267+ msm_hdmi_destroy(hdmi);
268268
269269 return ERR_PTR(ret);
270270 }
@@ -274,10 +274,10 @@ fail: · 3 unmodified lines
274274 * driver (not hdmi sub-device's probe/bind!)
275275 *
276276 * Any resource (regulator/clk/etc) which could be missing at boot
277− * should be handled in hdmi_init() so that failure happens from
277+ * should be handled in msm_hdmi_init() so that failure happens from
278278 * hdmi sub-device's probe.
279279 */
280−int hdmi_modeset_init(struct hdmi *hdmi,
280+int msm_hdmi_modeset_init(struct hdmi *hdmi,
281281 struct drm_device *dev, struct drm_encoder *encoder)
282282 {
283283 struct msm_drm_private *priv = dev->dev_private;
@@ -289,7 +289,7 @@ int hdmi_modeset_init(struct hdmi *hdmi, · 5 unmodified lines
289289
290290 hdmi_audio_infoframe_init(&hdmi->audio.infoframe);
291291
292− hdmi->bridge = hdmi_bridge_init(hdmi);
292+ hdmi->bridge = msm_hdmi_bridge_init(hdmi);
293293 if (IS_ERR(hdmi->bridge)) {
294294 ret = PTR_ERR(hdmi->bridge);
295295 dev_err(dev->dev, "failed to create HDMI bridge: %d\n", ret);
@@ -297,7 +297,7 @@ int hdmi_modeset_init(struct hdmi *hdmi, · 1 unmodified line
297297 goto fail;
298298 }
299299
300− hdmi->connector = hdmi_connector_init(hdmi);
300+ hdmi->connector = msm_hdmi_connector_init(hdmi);
301301 if (IS_ERR(hdmi->connector)) {
302302 ret = PTR_ERR(hdmi->connector);
303303 dev_err(dev->dev, "failed to create HDMI connector: %d\n", ret);
@@ -313,7 +313,7 @@ int hdmi_modeset_init(struct hdmi *hdmi, · 9 unmodified lines
313313 }
314314
315315 ret = devm_request_irq(&pdev->dev, hdmi->irq,
316− hdmi_irq, IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
316+ msm_hdmi_irq, IRQF_TRIGGER_HIGH | IRQF_ONESHOT,
317317 "hdmi_isr", hdmi);
318318 if (ret < 0) {
319319 dev_err(dev->dev, "failed to request IRQ%u: %d\n",
@@ -333,7 +333,7 @@ int hdmi_modeset_init(struct hdmi *hdmi, · 13 unmodified lines
333333 fail:
334334 /* bridge is normally destroyed by drm: */
335335 if (hdmi->bridge) {
336− hdmi_bridge_destroy(hdmi->bridge);
336+ msm_hdmi_bridge_destroy(hdmi->bridge);
337337 hdmi->bridge = NULL;
338338 }
339339 if (hdmi->connector) {
@@ -410,7 +410,7 @@ static const struct { · 70 unmodified lines
410410 const bool output;
411411 const int value;
412412 const char *label;
413−} hdmi_gpio_pdata[] = {
413+} msm_hdmi_gpio_pdata[] = {
414414 { "qcom,hdmi-tx-ddc-clk", true, 1, "HDMI_DDC_CLK" },
415415 { "qcom,hdmi-tx-ddc-data", true, 1, "HDMI_DDC_DATA" },
416416 { "qcom,hdmi-tx-hpd", false, 1, "HDMI_HPD" },
@@ -419,7 +419,7 @@ static const struct { · 2 unmodified lines
419419 { "qcom,hdmi-tx-mux-lpm", true, 1, "HDMI_MUX_LPM" },
420420 };
421421
422−static int get_gpio(struct device_node *of_node, const char *name)
422+static int msm_hdmi_get_gpio(struct device_node *of_node, const char *name)
423423 {
424424 int gpio = of_get_named_gpio(of_node, name, 0);
425425 if (gpio < 0) {
@@ -434,7 +434,7 @@ static int get_gpio(struct device_node *of_node, const char *name) · 8 unmodified lines
434434 return gpio;
435435 }
436436
437−static int hdmi_bind(struct device *dev, struct device *master, void *data)
437+static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
438438 {
439439 struct drm_device *drm = dev_get_drvdata(master);
440440 struct msm_drm_private *priv = drm->dev_private;
@@ -454,16 +454,16 @@ static int hdmi_bind(struct device *dev, struct device *master, void *data) · 13 unmodified lines
454454 hdmi_cfg->qfprom_mmio_name = "qfprom_physical";
455455
456456 for (i = 0; i < HDMI_MAX_NUM_GPIO; i++) {
457− hdmi_cfg->gpios[i].num = get_gpio(of_node,
458− hdmi_gpio_pdata[i].name);
459− hdmi_cfg->gpios[i].output = hdmi_gpio_pdata[i].output;
460− hdmi_cfg->gpios[i].value = hdmi_gpio_pdata[i].value;
461− hdmi_cfg->gpios[i].label = hdmi_gpio_pdata[i].label;
457+ hdmi_cfg->gpios[i].num = msm_hdmi_get_gpio(of_node,
458+ msm_hdmi_gpio_pdata[i].name);
459+ hdmi_cfg->gpios[i].output = msm_hdmi_gpio_pdata[i].output;
460+ hdmi_cfg->gpios[i].value = msm_hdmi_gpio_pdata[i].value;
461+ hdmi_cfg->gpios[i].label = msm_hdmi_gpio_pdata[i].label;
462462 }
463463
464464 dev->platform_data = hdmi_cfg;
465465
466− hdmi = hdmi_init(to_platform_device(dev));
466+ hdmi = msm_hdmi_init(to_platform_device(dev));
467467 if (IS_ERR(hdmi))
468468 return PTR_ERR(hdmi);
469469 priv->hdmi = hdmi;
@@ -471,34 +471,34 @@ static int hdmi_bind(struct device *dev, struct device *master, void *data) · 1 unmodified line
471471 return 0;
472472 }
473473
474−static void hdmi_unbind(struct device *dev, struct device *master,
474+static void msm_hdmi_unbind(struct device *dev, struct device *master,
475475 void *data)
476476 {
477477 struct drm_device *drm = dev_get_drvdata(master);
478478 struct msm_drm_private *priv = drm->dev_private;
479479 if (priv->hdmi) {
480− hdmi_destroy(priv->hdmi);
480+ msm_hdmi_destroy(priv->hdmi);
481481 priv->hdmi = NULL;
482482 }
483483 }
484484
485−static const struct component_ops hdmi_ops = {
486− .bind = hdmi_bind,
487− .unbind = hdmi_unbind,
485+static const struct component_ops msm_hdmi_ops = {
486+ .bind = msm_hdmi_bind,
487+ .unbind = msm_hdmi_unbind,
488488 };
489489
490−static int hdmi_dev_probe(struct platform_device *pdev)
490+static int msm_hdmi_dev_probe(struct platform_device *pdev)
491491 {
492− return component_add(&pdev->dev, &hdmi_ops);
492+ return component_add(&pdev->dev, &msm_hdmi_ops);
493493 }
494494
495−static int hdmi_dev_remove(struct platform_device *pdev)
495+static int msm_hdmi_dev_remove(struct platform_device *pdev)
496496 {
497− component_del(&pdev->dev, &hdmi_ops);
497+ component_del(&pdev->dev, &msm_hdmi_ops);
498498 return 0;
499499 }
500500
501−static const struct of_device_id dt_match[] = {
501+static const struct of_device_id msm_hdmi_dt_match[] = {
502502 { .compatible = "qcom,hdmi-tx-8996", .data = &hdmi_tx_8996_config },
503503 { .compatible = "qcom,hdmi-tx-8994", .data = &hdmi_tx_8994_config },
504504 { .compatible = "qcom,hdmi-tx-8084", .data = &hdmi_tx_8084_config },
@@ -508,23 +508,23 @@ static const struct of_device_id dt_match[] = { · 3 unmodified lines
508508 {}
509509 };
510510
511−static struct platform_driver hdmi_driver = {
512− .probe = hdmi_dev_probe,
513− .remove = hdmi_dev_remove,
511+static struct platform_driver msm_hdmi_driver = {
512+ .probe = msm_hdmi_dev_probe,
513+ .remove = msm_hdmi_dev_remove,
514514 .driver = {
515515 .name = "hdmi_msm",
516− .of_match_table = dt_match,
516+ .of_match_table = msm_hdmi_dt_match,
517517 },
518518 };
519519
520−void __init hdmi_register(void)
520+void __init msm_hdmi_register(void)
521521 {
522− hdmi_phy_driver_register();
523− platform_driver_register(&hdmi_driver);
522+ msm_hdmi_phy_driver_register();
523+ platform_driver_register(&msm_hdmi_driver);
524524 }
525525
526−void __exit hdmi_unregister(void)
526+void __exit msm_hdmi_unregister(void)
527527 {
528− platform_driver_unregister(&hdmi_driver);
529− hdmi_phy_driver_unregister();
528+ platform_driver_unregister(&msm_hdmi_driver);
529+ msm_hdmi_phy_driver_unregister();
530530 }
drivers/gpu/drm/msm/hdmi/hdmi.h+30−30
@@ -122,7 +122,7 @@ struct hdmi_platform_config { · 121 unmodified lines
122122 struct hdmi_gpio_data gpios[HDMI_MAX_NUM_GPIO];
123123 };
124124
125−void hdmi_set_mode(struct hdmi *hdmi, bool power_on);
125+void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on);
126126
127127 static inline void hdmi_write(struct hdmi *hdmi, u32 reg, u32 data)
128128 {
@@ -161,10 +161,10 @@ struct hdmi_phy_cfg { · 32 unmodified lines
161161 int num_clks;
162162 };
163163
164−extern const struct hdmi_phy_cfg hdmi_phy_8x60_cfg;
165−extern const struct hdmi_phy_cfg hdmi_phy_8960_cfg;
166−extern const struct hdmi_phy_cfg hdmi_phy_8x74_cfg;
167−extern const struct hdmi_phy_cfg hdmi_phy_8996_cfg;
164+extern const struct hdmi_phy_cfg msm_hdmi_phy_8x60_cfg;
165+extern const struct hdmi_phy_cfg msm_hdmi_phy_8960_cfg;
166+extern const struct hdmi_phy_cfg msm_hdmi_phy_8x74_cfg;
167+extern const struct hdmi_phy_cfg msm_hdmi_phy_8996_cfg;
168168
169169 struct hdmi_phy {
170170 struct platform_device *pdev;
@@ -185,23 +185,23 @@ static inline u32 hdmi_phy_read(struct hdmi_phy *phy, u32 reg) · 14 unmodified lines
185185 return msm_readl(phy->mmio + reg);
186186 }
187187
188−int hdmi_phy_resource_enable(struct hdmi_phy *phy);
189−void hdmi_phy_resource_disable(struct hdmi_phy *phy);
190−void hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
191−void hdmi_phy_powerdown(struct hdmi_phy *phy);
192−void __init hdmi_phy_driver_register(void);
193−void __exit hdmi_phy_driver_unregister(void);
188+int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy);
189+void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy);
190+void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock);
191+void msm_hdmi_phy_powerdown(struct hdmi_phy *phy);
192+void __init msm_hdmi_phy_driver_register(void);
193+void __exit msm_hdmi_phy_driver_unregister(void);
194194
195195 #ifdef CONFIG_COMMON_CLK
196−int hdmi_pll_8960_init(struct platform_device *pdev);
197−int hdmi_pll_8996_init(struct platform_device *pdev);
196+int msm_hdmi_pll_8960_init(struct platform_device *pdev);
197+int msm_hdmi_pll_8996_init(struct platform_device *pdev);
198198 #else
199−int hdmi_pll_8960_init(struct platform_device *pdev);
199+static inline int msm_hdmi_pll_8960_init(struct platform_device *pdev);
200200 {
201201 return -ENODEV;
202202 }
203203
204−int hdmi_pll_8996_init(struct platform_device *pdev)
204+static inline int msm_hdmi_pll_8996_init(struct platform_device *pdev)
205205 {
206206 return -ENODEV;
207207 }
@@ -211,42 +211,42 @@ int hdmi_pll_8996_init(struct platform_device *pdev) · 3 unmodified lines
211211 * audio:
212212 */
213213
214−int hdmi_audio_update(struct hdmi *hdmi);
215−int hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
214+int msm_hdmi_audio_update(struct hdmi *hdmi);
215+int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
216216 uint32_t num_of_channels, uint32_t channel_allocation,
217217 uint32_t level_shift, bool down_mix);
218−void hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate);
218+void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate);
219219
220220
221221 /*
222222 * hdmi bridge:
223223 */
224224
225−struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi);
226−void hdmi_bridge_destroy(struct drm_bridge *bridge);
225+struct drm_bridge *msm_hdmi_bridge_init(struct hdmi *hdmi);
226+void msm_hdmi_bridge_destroy(struct drm_bridge *bridge);
227227
228228 /*
229229 * hdmi connector:
230230 */
231231
232−void hdmi_connector_irq(struct drm_connector *connector);
233−struct drm_connector *hdmi_connector_init(struct hdmi *hdmi);
232+void msm_hdmi_connector_irq(struct drm_connector *connector);
233+struct drm_connector *msm_hdmi_connector_init(struct hdmi *hdmi);
234234
235235 /*
236236 * i2c adapter for ddc:
237237 */
238238
239−void hdmi_i2c_irq(struct i2c_adapter *i2c);
240−void hdmi_i2c_destroy(struct i2c_adapter *i2c);
241−struct i2c_adapter *hdmi_i2c_init(struct hdmi *hdmi);
239+void msm_hdmi_i2c_irq(struct i2c_adapter *i2c);
240+void msm_hdmi_i2c_destroy(struct i2c_adapter *i2c);
241+struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi);
242242
243243 /*
244244 * hdcp
245245 */
246−struct hdmi_hdcp_ctrl *hdmi_hdcp_init(struct hdmi *hdmi);
247−void hdmi_hdcp_destroy(struct hdmi *hdmi);
248−void hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl);
249−void hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl);
250−void hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl);
246+struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi);
247+void msm_hdmi_hdcp_destroy(struct hdmi *hdmi);
248+void msm_hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl);
249+void msm_hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl);
250+void msm_hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl);
251251
252252 #endif /* __HDMI_CONNECTOR_H__ */
drivers/gpu/drm/msm/hdmi/hdmi_audio.c+5−5
@@ -89,7 +89,7 @@ static const struct hdmi_msm_audio_arcs *get_arcs(unsigned long int pixclock) · 88 unmodified lines
8989 return NULL;
9090 }
9191
92−int hdmi_audio_update(struct hdmi *hdmi)
92+int msm_hdmi_audio_update(struct hdmi *hdmi)
9393 {
9494 struct hdmi_audio *audio = &hdmi->audio;
9595 struct hdmi_audio_infoframe *info = &audio->infoframe;
@@ -232,7 +232,7 @@ int hdmi_audio_update(struct hdmi *hdmi) · 136 unmodified lines
232232 return 0;
233233 }
234234
235−int hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
235+int msm_hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled,
236236 uint32_t num_of_channels, uint32_t channel_allocation,
237237 uint32_t level_shift, bool down_mix)
238238 {
@@ -252,10 +252,10 @@ int hdmi_audio_info_setup(struct hdmi *hdmi, bool enabled, · 13 unmodified lines
252252 audio->infoframe.level_shift_value = level_shift;
253253 audio->infoframe.downmix_inhibit = down_mix;
254254
255− return hdmi_audio_update(hdmi);
255+ return msm_hdmi_audio_update(hdmi);
256256 }
257257
258−void hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate)
258+void msm_hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate)
259259 {
260260 struct hdmi_audio *audio;
261261
@@ -268,5 +268,5 @@ void hdmi_audio_set_sample_rate(struct hdmi *hdmi, int rate) · 6 unmodified lines
268268 return;
269269
270270 audio->rate = rate;
271− hdmi_audio_update(hdmi);
271+ msm_hdmi_audio_update(hdmi);
272272 }
drivers/gpu/drm/msm/hdmi/hdmi_bridge.c+28−28
@@ -23,11 +23,11 @@ struct hdmi_bridge { · 22 unmodified lines
2323 };
2424 #define to_hdmi_bridge(x) container_of(x, struct hdmi_bridge, base)
2525
26−void hdmi_bridge_destroy(struct drm_bridge *bridge)
26+void msm_hdmi_bridge_destroy(struct drm_bridge *bridge)
2727 {
2828 }
2929
30−static void power_on(struct drm_bridge *bridge)
30+static void msm_hdmi_power_on(struct drm_bridge *bridge)
3131 {
3232 struct drm_device *dev = bridge->dev;
3333 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge);
@@ -86,7 +86,7 @@ static void power_off(struct drm_bridge *bridge) · 52 unmodified lines
8686 }
8787 }
8888
89−static void hdmi_bridge_pre_enable(struct drm_bridge *bridge)
89+static void msm_hdmi_bridge_pre_enable(struct drm_bridge *bridge)
9090 {
9191 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge);
9292 struct hdmi *hdmi = hdmi_bridge->hdmi;
@@ -95,51 +95,51 @@ static void hdmi_bridge_pre_enable(struct drm_bridge *bridge) · 2 unmodified lines
9595 DBG("power up");
9696
9797 if (!hdmi->power_on) {
98− hdmi_phy_resource_enable(phy);
99− power_on(bridge);
98+ msm_hdmi_phy_resource_enable(phy);
99+ msm_hdmi_power_on(bridge);
100100 hdmi->power_on = true;
101− hdmi_audio_update(hdmi);
101+ msm_hdmi_audio_update(hdmi);
102102 }
103103
104− hdmi_phy_powerup(phy, hdmi->pixclock);
104+ msm_hdmi_phy_powerup(phy, hdmi->pixclock);
105105
106− hdmi_set_mode(hdmi, true);
106+ msm_hdmi_set_mode(hdmi, true);
107107
108108 if (hdmi->hdcp_ctrl)
109− hdmi_hdcp_on(hdmi->hdcp_ctrl);
109+ msm_hdmi_hdcp_on(hdmi->hdcp_ctrl);
110110 }
111111
112−static void hdmi_bridge_enable(struct drm_bridge *bridge)
112+static void msm_hdmi_bridge_enable(struct drm_bridge *bridge)
113113 {
114114 }
115115
116−static void hdmi_bridge_disable(struct drm_bridge *bridge)
116+static void msm_hdmi_bridge_disable(struct drm_bridge *bridge)
117117 {
118118 }
119119
120−static void hdmi_bridge_post_disable(struct drm_bridge *bridge)
120+static void msm_hdmi_bridge_post_disable(struct drm_bridge *bridge)
121121 {
122122 struct hdmi_bridge *hdmi_bridge = to_hdmi_bridge(bridge);
123123 struct hdmi *hdmi = hdmi_bridge->hdmi;
124124 struct hdmi_phy *phy = hdmi->phy;
125125
126126 if (hdmi->hdcp_ctrl)
127− hdmi_hdcp_off(hdmi->hdcp_ctrl);
127+ msm_hdmi_hdcp_off(hdmi->hdcp_ctrl);
128128
129129 DBG("power down");
130− hdmi_set_mode(hdmi, false);
130+ msm_hdmi_set_mode(hdmi, false);
131131
132− hdmi_phy_powerdown(phy);
132+ msm_hdmi_phy_powerdown(phy);
133133
134134 if (hdmi->power_on) {
135135 power_off(bridge);
136136 hdmi->power_on = false;
137− hdmi_audio_update(hdmi);
138− hdmi_phy_resource_disable(phy);
137+ msm_hdmi_audio_update(hdmi);
138+ msm_hdmi_phy_resource_disable(phy);
139139 }
140140 }
141141
142−static void hdmi_bridge_mode_set(struct drm_bridge *bridge,
142+static void msm_hdmi_bridge_mode_set(struct drm_bridge *bridge,
143143 struct drm_display_mode *mode,
144144 struct drm_display_mode *adjusted_mode)
145145 {
@@ -196,20 +196,20 @@ static void hdmi_bridge_mode_set(struct drm_bridge *bridge, · 50 unmodified lines
196196 DBG("frame_ctrl=%08x", frame_ctrl);
197197 hdmi_write(hdmi, REG_HDMI_FRAME_CTRL, frame_ctrl);
198198
199− hdmi_audio_update(hdmi);
199+ msm_hdmi_audio_update(hdmi);
200200 }
201201
202−static const struct drm_bridge_funcs hdmi_bridge_funcs = {
203− .pre_enable = hdmi_bridge_pre_enable,
204− .enable = hdmi_bridge_enable,
205− .disable = hdmi_bridge_disable,
206− .post_disable = hdmi_bridge_post_disable,
207− .mode_set = hdmi_bridge_mode_set,
202+static const struct drm_bridge_funcs msm_hdmi_bridge_funcs = {
203+ .pre_enable = msm_hdmi_bridge_pre_enable,
204+ .enable = msm_hdmi_bridge_enable,
205+ .disable = msm_hdmi_bridge_disable,
206+ .post_disable = msm_hdmi_bridge_post_disable,
207+ .mode_set = msm_hdmi_bridge_mode_set,
208208 };
209209
210210
211211 /* initialize bridge */
212−struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi)
212+struct drm_bridge *msm_hdmi_bridge_init(struct hdmi *hdmi)
213213 {
214214 struct drm_bridge *bridge = NULL;
215215 struct hdmi_bridge *hdmi_bridge;
@@ -225,7 +225,7 @@ struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi) · 9 unmodified lines
225225 hdmi_bridge->hdmi = hdmi;
226226
227227 bridge = &hdmi_bridge->base;
228− bridge->funcs = &hdmi_bridge_funcs;
228+ bridge->funcs = &msm_hdmi_bridge_funcs;
229229
230230 ret = drm_bridge_attach(hdmi->dev, bridge);
231231 if (ret)
@@ -235,7 +235,7 @@ struct drm_bridge *hdmi_bridge_init(struct hdmi *hdmi) · 3 unmodified lines
235235
236236 fail:
237237 if (bridge)
238− hdmi_bridge_destroy(bridge);
238+ msm_hdmi_bridge_destroy(bridge);
239239
240240 return ERR_PTR(ret);
241241 }
drivers/gpu/drm/msm/hdmi/hdmi_connector.c+17−17
@@ -28,7 +28,7 @@ struct hdmi_connector { · 27 unmodified lines
2828 };
2929 #define to_hdmi_connector(x) container_of(x, struct hdmi_connector, base)
3030
31−static void hdmi_phy_reset(struct hdmi *hdmi)
31+static void msm_hdmi_phy_reset(struct hdmi *hdmi)
3232 {
3333 unsigned int val;
3434
@@ -179,9 +179,9 @@ static int hpd_enable(struct hdmi_connector *hdmi_connector) · 144 unmodified lines
179179 }
180180 }
181181
182− hdmi_set_mode(hdmi, false);
183− hdmi_phy_reset(hdmi);
184− hdmi_set_mode(hdmi, true);
182+ msm_hdmi_set_mode(hdmi, false);
183+ msm_hdmi_phy_reset(hdmi);
184+ msm_hdmi_set_mode(hdmi, true);
185185
186186 hdmi_write(hdmi, REG_HDMI_USEC_REFTIMER, 0x0001001b);
187187
@@ -218,7 +218,7 @@ static void hdp_disable(struct hdmi_connector *hdmi_connector) · 30 unmodified lines
218218 /* Disable HPD interrupt */
219219 hdmi_write(hdmi, REG_HDMI_HPD_INT_CTRL, 0);
220220
221− hdmi_set_mode(hdmi, false);
221+ msm_hdmi_set_mode(hdmi, false);
222222
223223 for (i = 0; i < config->hpd_clk_cnt; i++)
224224 clk_disable_unprepare(hdmi->hpd_clks[i]);
@@ -240,7 +240,7 @@ static void hdp_disable(struct hdmi_connector *hdmi_connector) · 15 unmodified lines
240240 }
241241
242242 static void
243−hotplug_work(struct work_struct *work)
243+msm_hdmi_hotplug_work(struct work_struct *work)
244244 {
245245 struct hdmi_connector *hdmi_connector =
246246 container_of(work, struct hdmi_connector, hpd_work);
@@ -248,7 +248,7 @@ hotplug_work(struct work_struct *work) · 1 unmodified line
248248 drm_helper_hpd_irq_event(connector->dev);
249249 }
250250
251−void hdmi_connector_irq(struct drm_connector *connector)
251+void msm_hdmi_connector_irq(struct drm_connector *connector)
252252 {
253253 struct hdmi_connector *hdmi_connector = to_hdmi_connector(connector);
254254 struct hdmi *hdmi = hdmi_connector->hdmi;
@@ -347,7 +347,7 @@ static void hdmi_connector_destroy(struct drm_connector *connector) · 92 unmodified lines
347347 kfree(hdmi_connector);
348348 }
349349
350−static int hdmi_connector_get_modes(struct drm_connector *connector)
350+static int msm_hdmi_connector_get_modes(struct drm_connector *connector)
351351 {
352352 struct hdmi_connector *hdmi_connector = to_hdmi_connector(connector);
353353 struct hdmi *hdmi = hdmi_connector->hdmi;
@@ -373,7 +373,7 @@ static int hdmi_connector_get_modes(struct drm_connector *connector) · 19 unmodified lines
373373 return ret;
374374 }
375375
376−static int hdmi_connector_mode_valid(struct drm_connector *connector,
376+static int msm_hdmi_connector_mode_valid(struct drm_connector *connector,
377377 struct drm_display_mode *mode)
378378 {
379379 struct hdmi_connector *hdmi_connector = to_hdmi_connector(connector);
@@ -403,7 +403,7 @@ static int hdmi_connector_mode_valid(struct drm_connector *connector, · 23 unmodified lines
403403 }
404404
405405 static struct drm_encoder *
406−hdmi_connector_best_encoder(struct drm_connector *connector)
406+msm_hdmi_connector_best_encoder(struct drm_connector *connector)
407407 {
408408 struct hdmi_connector *hdmi_connector = to_hdmi_connector(connector);
409409 return hdmi_connector->hdmi->encoder;
@@ -419,14 +419,14 @@ static const struct drm_connector_funcs hdmi_connector_funcs = { · 9 unmodified lines
419419 .atomic_destroy_state = drm_atomic_helper_connector_destroy_state,
420420 };
421421
422−static const struct drm_connector_helper_funcs hdmi_connector_helper_funcs = {
423− .get_modes = hdmi_connector_get_modes,
424− .mode_valid = hdmi_connector_mode_valid,
425− .best_encoder = hdmi_connector_best_encoder,
422+static const struct drm_connector_helper_funcs msm_hdmi_connector_helper_funcs = {
423+ .get_modes = msm_hdmi_connector_get_modes,
424+ .mode_valid = msm_hdmi_connector_mode_valid,
425+ .best_encoder = msm_hdmi_connector_best_encoder,
426426 };
427427
428428 /* initialize connector */
429−struct drm_connector *hdmi_connector_init(struct hdmi *hdmi)
429+struct drm_connector *msm_hdmi_connector_init(struct hdmi *hdmi)
430430 {
431431 struct drm_connector *connector = NULL;
432432 struct hdmi_connector *hdmi_connector;
@@ -439,13 +439,13 @@ struct drm_connector *hdmi_connector_init(struct hdmi *hdmi) · 6 unmodified lines
439439 }
440440
441441 hdmi_connector->hdmi = hdmi;
442− INIT_WORK(&hdmi_connector->hpd_work, hotplug_work);
442+ INIT_WORK(&hdmi_connector->hpd_work, msm_hdmi_hotplug_work);
443443
444444 connector = &hdmi_connector->base;
445445
446446 drm_connector_init(hdmi->dev, connector, &hdmi_connector_funcs,
447447 DRM_MODE_CONNECTOR_HDMIA);
448− drm_connector_helper_add(connector, &hdmi_connector_helper_funcs);
448+ drm_connector_helper_add(connector, &msm_hdmi_connector_helper_funcs);
449449
450450 connector->polled = DRM_CONNECTOR_POLL_CONNECT |
451451 DRM_CONNECTOR_POLL_DISCONNECT;
drivers/gpu/drm/msm/hdmi/hdmi_hdcp.c+83−83
@@ -84,7 +84,7 @@ struct hdmi_hdcp_ctrl { · 83 unmodified lines
8484 bool max_dev_exceeded;
8585 };
8686
87−static int hdmi_ddc_read(struct hdmi *hdmi, u16 addr, u8 offset,
87+static int msm_hdmi_ddc_read(struct hdmi *hdmi, u16 addr, u8 offset,
8888 u8 *data, u16 data_len)
8989 {
9090 int rc;
@@ -122,7 +122,7 @@ retry: · 31 unmodified lines
122122
123123 #define HDCP_DDC_WRITE_MAX_BYTE_NUM 32
124124
125−static int hdmi_ddc_write(struct hdmi *hdmi, u16 addr, u8 offset,
125+static int msm_hdmi_ddc_write(struct hdmi *hdmi, u16 addr, u8 offset,
126126 u8 *data, u16 data_len)
127127 {
128128 int rc;
@@ -162,7 +162,7 @@ retry: · 33 unmodified lines
162162 return rc;
163163 }
164164
165−static int hdmi_hdcp_scm_wr(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 *preg,
165+static int msm_hdmi_hdcp_scm_wr(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 *preg,
166166 u32 *pdata, u32 count)
167167 {
168168 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -202,7 +202,7 @@ static int hdmi_hdcp_scm_wr(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 *preg, · 33 unmodified lines
202202 return ret;
203203 }
204204
205−void hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl)
205+void msm_hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl)
206206 {
207207 struct hdmi *hdmi = hdcp_ctrl->hdmi;
208208 u32 reg_val, hdcp_int_status;
@@ -247,7 +247,7 @@ void hdmi_hdcp_irq(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 38 unmodified lines
247247 }
248248 }
249249
250−static int hdmi_hdcp_msleep(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 ms, u32 ev)
250+static int msm_hdmi_hdcp_msleep(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 ms, u32 ev)
251251 {
252252 int rc;
253253
@@ -264,7 +264,7 @@ static int hdmi_hdcp_msleep(struct hdmi_hdcp_ctrl *hdcp_ctrl, u32 ms, u32 ev) · 10 unmodified lines
264264 return 0;
265265 }
266266
267−static int hdmi_hdcp_read_validate_aksv(struct hdmi_hdcp_ctrl *hdcp_ctrl)
267+static int msm_hdmi_hdcp_read_validate_aksv(struct hdmi_hdcp_ctrl *hdcp_ctrl)
268268 {
269269 struct hdmi *hdmi = hdcp_ctrl->hdmi;
270270
@@ -287,7 +287,7 @@ static int hdmi_hdcp_read_validate_aksv(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 16 unmodified lines
287287 return 0;
288288 }
289289
290−static int reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl)
290+static int msm_reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl)
291291 {
292292 struct hdmi *hdmi = hdcp_ctrl->hdmi;
293293 u32 reg_val, failure, nack0;
@@ -337,7 +337,7 @@ static int reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 43 unmodified lines
337337 reg_val |= HDMI_DDC_CTRL_SW_STATUS_RESET;
338338 hdmi_write(hdmi, REG_HDMI_DDC_CTRL, reg_val);
339339
340− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
340+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
341341
342342 reg_val = hdmi_read(hdmi, REG_HDMI_DDC_CTRL);
343343 reg_val &= ~HDMI_DDC_CTRL_SW_STATUS_RESET;
@@ -350,7 +350,7 @@ static int reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 6 unmodified lines
350350
351351 /* If previous msleep is aborted, skip this msleep */
352352 if (!rc)
353− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
353+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
354354
355355 reg_val = hdmi_read(hdmi, REG_HDMI_DDC_CTRL);
356356 reg_val &= ~HDMI_DDC_CTRL_SOFT_RESET;
@@ -362,7 +362,7 @@ static int reset_hdcp_ddc_failures(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 5 unmodified lines
362362 return rc;
363363 }
364364
365−static int hdmi_hdcp_hw_ddc_clean(struct hdmi_hdcp_ctrl *hdcp_ctrl)
365+static int msm_hdmi_hdcp_hw_ddc_clean(struct hdmi_hdcp_ctrl *hdcp_ctrl)
366366 {
367367 int rc;
368368 u32 hdcp_ddc_status, ddc_hw_status;
@@ -394,7 +394,7 @@ static int hdmi_hdcp_hw_ddc_clean(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 25 unmodified lines
394394 return -ETIMEDOUT;
395395 }
396396
397− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
397+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
398398 if (rc)
399399 return rc;
400400 } while (1);
@@ -402,7 +402,7 @@ static int hdmi_hdcp_hw_ddc_clean(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
402402 return 0;
403403 }
404404
405−static void hdmi_hdcp_reauth_work(struct work_struct *work)
405+static void msm_hdmi_hdcp_reauth_work(struct work_struct *work)
406406 {
407407 struct hdmi_hdcp_ctrl *hdcp_ctrl = container_of(work,
408408 struct hdmi_hdcp_ctrl, hdcp_reauth_work);
@@ -430,7 +430,7 @@ static void hdmi_hdcp_reauth_work(struct work_struct *work) · 21 unmodified lines
430430 HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE);
431431
432432 /* Wait to be clean on DDC HW engine */
433− if (hdmi_hdcp_hw_ddc_clean(hdcp_ctrl)) {
433+ if (msm_hdmi_hdcp_hw_ddc_clean(hdcp_ctrl)) {
434434 pr_info("%s: reauth work aborted\n", __func__);
435435 return;
436436 }
@@ -461,7 +461,7 @@ static void hdmi_hdcp_reauth_work(struct work_struct *work) · 24 unmodified lines
461461 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_auth_work);
462462 }
463463
464−static int hdmi_hdcp_auth_prepare(struct hdmi_hdcp_ctrl *hdcp_ctrl)
464+static int msm_hdmi_hdcp_auth_prepare(struct hdmi_hdcp_ctrl *hdcp_ctrl)
465465 {
466466 struct hdmi *hdmi = hdcp_ctrl->hdmi;
467467 u32 link0_status;
@@ -470,7 +470,7 @@ static int hdmi_hdcp_auth_prepare(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 2 unmodified lines
470470 int rc;
471471
472472 if (!hdcp_ctrl->aksv_valid) {
473− rc = hdmi_hdcp_read_validate_aksv(hdcp_ctrl);
473+ rc = msm_hdmi_hdcp_read_validate_aksv(hdcp_ctrl);
474474 if (rc) {
475475 pr_err("%s: ASKV validation failed\n", __func__);
476476 hdcp_ctrl->hdcp_state = HDCP_STATE_NO_AKSV;
@@ -538,12 +538,12 @@ static int hdmi_hdcp_auth_prepare(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 61 unmodified lines
538538 DBG("An not ready after enabling HDCP");
539539
540540 /* Clear any DDC failures from previous tries before enable HDCP*/
541− rc = reset_hdcp_ddc_failures(hdcp_ctrl);
541+ rc = msm_reset_hdcp_ddc_failures(hdcp_ctrl);
542542
543543 return rc;
544544 }
545545
546−static void hdmi_hdcp_auth_fail(struct hdmi_hdcp_ctrl *hdcp_ctrl)
546+static void msm_hdmi_hdcp_auth_fail(struct hdmi_hdcp_ctrl *hdcp_ctrl)
547547 {
548548 struct hdmi *hdmi = hdcp_ctrl->hdmi;
549549 u32 reg_val;
@@ -561,7 +561,7 @@ static void hdmi_hdcp_auth_fail(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 11 unmodified lines
561561 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_reauth_work);
562562 }
563563
564−static void hdmi_hdcp_auth_done(struct hdmi_hdcp_ctrl *hdcp_ctrl)
564+static void msm_hdmi_hdcp_auth_done(struct hdmi_hdcp_ctrl *hdcp_ctrl)
565565 {
566566 struct hdmi *hdmi = hdcp_ctrl->hdmi;
567567 u32 reg_val;
@@ -596,7 +596,7 @@ static void hdmi_hdcp_auth_done(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 28 unmodified lines
596596 * Write An and AKSV to sink
597597 * Read BKSV from sink and write into HDCP engine
598598 */
599−static int hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl)
599+static int msm_hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl)
600600 {
601601 int rc;
602602 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -621,7 +621,7 @@ static int hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 18 unmodified lines
621621 return -ETIMEDOUT;
622622 }
623623
624− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
624+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
625625 if (rc)
626626 return rc;
627627 } while (1);
@@ -643,7 +643,7 @@ static int hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 15 unmodified lines
643643 return -ETIMEDOUT;
644644 }
645645
646− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
646+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
647647 if (rc)
648648 return rc;
649649 } while (1);
@@ -651,7 +651,7 @@ static int hdmi_hdcp_wait_key_an_ready(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
651651 return 0;
652652 }
653653
654−static int hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl)
654+static int msm_hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl)
655655 {
656656 int rc = 0;
657657 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -676,7 +676,7 @@ static int hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 18 unmodified lines
676676 aksv[4] = link0_aksv_1 & 0xFF;
677677
678678 /* Write An to offset 0x18 */
679− rc = hdmi_ddc_write(hdmi, HDCP_PORT_ADDR, 0x18, (u8 *)link0_an,
679+ rc = msm_hdmi_ddc_write(hdmi, HDCP_PORT_ADDR, 0x18, (u8 *)link0_an,
680680 (u16)sizeof(link0_an));
681681 if (rc) {
682682 pr_err("%s:An write failed\n", __func__);
@@ -685,7 +685,7 @@ static int hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 2 unmodified lines
685685 DBG("Link0-An=%08x%08x", link0_an[0], link0_an[1]);
686686
687687 /* Write AKSV to offset 0x10 */
688− rc = hdmi_ddc_write(hdmi, HDCP_PORT_ADDR, 0x10, aksv, 5);
688+ rc = msm_hdmi_ddc_write(hdmi, HDCP_PORT_ADDR, 0x10, aksv, 5);
689689 if (rc) {
690690 pr_err("%s:AKSV write failed\n", __func__);
691691 return rc;
@@ -695,7 +695,7 @@ static int hdmi_hdcp_send_aksv_an(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 3 unmodified lines
695695 return 0;
696696 }
697697
698−static int hdmi_hdcp_recv_bksv(struct hdmi_hdcp_ctrl *hdcp_ctrl)
698+static int msm_hdmi_hdcp_recv_bksv(struct hdmi_hdcp_ctrl *hdcp_ctrl)
699699 {
700700 int rc = 0;
701701 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -703,7 +703,7 @@ static int hdmi_hdcp_recv_bksv(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
703703 u32 reg[2], data[2];
704704
705705 /* Read BKSV at offset 0x00 */
706− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x00, bksv, 5);
706+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x00, bksv, 5);
707707 if (rc) {
708708 pr_err("%s:BKSV read failed\n", __func__);
709709 return rc;
@@ -728,19 +728,19 @@ static int hdmi_hdcp_recv_bksv(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 18 unmodified lines
728728 data[0] = hdcp_ctrl->bksv_lsb;
729729 reg[1] = REG_HDMI_HDCP_RCVPORT_DATA1;
730730 data[1] = hdcp_ctrl->bksv_msb;
731− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2);
731+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2);
732732
733733 return rc;
734734 }
735735
736−static int hdmi_hdcp_recv_bcaps(struct hdmi_hdcp_ctrl *hdcp_ctrl)
736+static int msm_hdmi_hdcp_recv_bcaps(struct hdmi_hdcp_ctrl *hdcp_ctrl)
737737 {
738738 int rc = 0;
739739 struct hdmi *hdmi = hdcp_ctrl->hdmi;
740740 u32 reg, data;
741741 u8 bcaps;
742742
743− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x40, &bcaps, 1);
743+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x40, &bcaps, 1);
744744 if (rc) {
745745 pr_err("%s:BCAPS read failed\n", __func__);
746746 return rc;
@@ -753,26 +753,26 @@ static int hdmi_hdcp_recv_bcaps(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 6 unmodified lines
753753 /* Write BCAPS to the hardware */
754754 reg = REG_HDMI_HDCP_RCVPORT_DATA12;
755755 data = (u32)bcaps;
756− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
756+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
757757
758758 return rc;
759759 }
760760
761−static int hdmi_hdcp_auth_part1_key_exchange(struct hdmi_hdcp_ctrl *hdcp_ctrl)
761+static int msm_hdmi_hdcp_auth_part1_key_exchange(struct hdmi_hdcp_ctrl *hdcp_ctrl)
762762 {
763763 struct hdmi *hdmi = hdcp_ctrl->hdmi;
764764 unsigned long flags;
765765 int rc;
766766
767767 /* Wait for AKSV key and An ready */
768− rc = hdmi_hdcp_wait_key_an_ready(hdcp_ctrl);
768+ rc = msm_hdmi_hdcp_wait_key_an_ready(hdcp_ctrl);
769769 if (rc) {
770770 pr_err("%s: wait key and an ready failed\n", __func__);
771771 return rc;
772772 };
773773
774774 /* Read BCAPS and send to HDCP engine */
775− rc = hdmi_hdcp_recv_bcaps(hdcp_ctrl);
775+ rc = msm_hdmi_hdcp_recv_bcaps(hdcp_ctrl);
776776 if (rc) {
777777 pr_err("%s: read bcaps error, abort\n", __func__);
778778 return rc;
@@ -785,14 +785,14 @@ static int hdmi_hdcp_auth_part1_key_exchange(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 6 unmodified lines
785785 hdmi_write(hdmi, REG_HDMI_HDCP_RCVPORT_DATA4, 0);
786786
787787 /* Send AKSV and An to sink */
788− rc = hdmi_hdcp_send_aksv_an(hdcp_ctrl);
788+ rc = msm_hdmi_hdcp_send_aksv_an(hdcp_ctrl);
789789 if (rc) {
790790 pr_err("%s:An/Aksv write failed\n", __func__);
791791 return rc;
792792 }
793793
794794 /* Read BKSV and send to HDCP engine*/
795− rc = hdmi_hdcp_recv_bksv(hdcp_ctrl);
795+ rc = msm_hdmi_hdcp_recv_bksv(hdcp_ctrl);
796796 if (rc) {
797797 pr_err("%s:BKSV Process failed\n", __func__);
798798 return rc;
@@ -812,7 +812,7 @@ static int hdmi_hdcp_auth_part1_key_exchange(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 13 unmodified lines
812812 }
813813
814814 /* read R0' from sink and pass it to HDCP engine */
815−static int hdmi_hdcp_auth_part1_recv_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl)
815+static int msm_hdmi_hdcp_auth_part1_recv_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl)
816816 {
817817 struct hdmi *hdmi = hdcp_ctrl->hdmi;
818818 int rc = 0;
@@ -822,12 +822,12 @@ static int hdmi_hdcp_auth_part1_recv_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 3 unmodified lines
822822 * HDCP Compliance Test case 1A-01:
823823 * Wait here at least 100ms before reading R0'
824824 */
825− rc = hdmi_hdcp_msleep(hdcp_ctrl, 125, AUTH_ABORT_EV);
825+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 125, AUTH_ABORT_EV);
826826 if (rc)
827827 return rc;
828828
829829 /* Read R0' at offset 0x08 */
830− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x08, buf, 2);
830+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x08, buf, 2);
831831 if (rc) {
832832 pr_err("%s:R0' read failed\n", __func__);
833833 return rc;
@@ -842,14 +842,14 @@ static int hdmi_hdcp_auth_part1_recv_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 8 unmodified lines
842842 }
843843
844844 /* Wait for authenticating result: R0/R0' are matched or not */
845−static int hdmi_hdcp_auth_part1_verify_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl)
845+static int msm_hdmi_hdcp_auth_part1_verify_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl)
846846 {
847847 struct hdmi *hdmi = hdcp_ctrl->hdmi;
848848 u32 link0_status;
849849 int rc;
850850
851851 /* wait for hdcp irq, 10 sec should be long enough */
852− rc = hdmi_hdcp_msleep(hdcp_ctrl, 10000, AUTH_RESULT_RDY_EV);
852+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 10000, AUTH_RESULT_RDY_EV);
853853 if (!rc) {
854854 pr_err("%s: Wait Auth IRQ timeout\n", __func__);
855855 return -ETIMEDOUT;
@@ -869,7 +869,7 @@ static int hdmi_hdcp_auth_part1_verify_r0(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 13 unmodified lines
869869 return 0;
870870 }
871871
872−static int hdmi_hdcp_recv_check_bstatus(struct hdmi_hdcp_ctrl *hdcp_ctrl,
872+static int msm_hdmi_hdcp_recv_check_bstatus(struct hdmi_hdcp_ctrl *hdcp_ctrl,
873873 u16 *pbstatus)
874874 {
875875 int rc;
@@ -880,7 +880,7 @@ static int hdmi_hdcp_recv_check_bstatus(struct hdmi_hdcp_ctrl *hdcp_ctrl, · 4 unmodified lines
880880 u8 buf[2];
881881
882882 /* Read BSTATUS at offset 0x41 */
883− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x41, buf, 2);
883+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x41, buf, 2);
884884 if (rc) {
885885 pr_err("%s: BSTATUS read failed\n", __func__);
886886 goto error;
@@ -936,7 +936,7 @@ error: · 49 unmodified lines
936936 return rc;
937937 }
938938
939−static int hdmi_hdcp_auth_part2_wait_ksv_fifo_ready(
939+static int msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready(
940940 struct hdmi_hdcp_ctrl *hdcp_ctrl)
941941 {
942942 int rc;
@@ -953,7 +953,7 @@ static int hdmi_hdcp_auth_part2_wait_ksv_fifo_ready( · 10 unmodified lines
953953 timeout_count = 100;
954954 do {
955955 /* Read BCAPS at offset 0x40 */
956− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x40, &bcaps, 1);
956+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x40, &bcaps, 1);
957957 if (rc) {
958958 pr_err("%s: BCAPS read failed\n", __func__);
959959 return rc;
@@ -968,12 +968,12 @@ static int hdmi_hdcp_auth_part2_wait_ksv_fifo_ready( · 8 unmodified lines
968968 return -ETIMEDOUT;
969969 }
970970
971− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
971+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
972972 if (rc)
973973 return rc;
974974 } while (1);
975975
976− rc = hdmi_hdcp_recv_check_bstatus(hdcp_ctrl, &bstatus);
976+ rc = msm_hdmi_hdcp_recv_check_bstatus(hdcp_ctrl, &bstatus);
977977 if (rc) {
978978 pr_err("%s: bstatus error\n", __func__);
979979 return rc;
@@ -982,7 +982,7 @@ static int hdmi_hdcp_auth_part2_wait_ksv_fifo_ready( · 2 unmodified lines
982982 /* Write BSTATUS and BCAPS to HDCP registers */
983983 reg = REG_HDMI_HDCP_RCVPORT_DATA12;
984984 data = bcaps | (bstatus << 8);
985− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
985+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
986986 if (rc) {
987987 pr_err("%s: BSTATUS write failed\n", __func__);
988988 return rc;
@@ -997,7 +997,7 @@ static int hdmi_hdcp_auth_part2_wait_ksv_fifo_ready( · 8 unmodified lines
997997 * transfer V' from sink to HDCP engine
998998 * reset SHA engine
999999 */
1000−static int hdmi_hdcp_transfer_v_h(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1000+static int msm_hdmi_hdcp_transfer_v_h(struct hdmi_hdcp_ctrl *hdcp_ctrl)
10011001 {
10021002 struct hdmi *hdmi = hdcp_ctrl->hdmi;
10031003 int rc = 0;
@@ -1016,7 +1016,7 @@ static int hdmi_hdcp_transfer_v_h(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 12 unmodified lines
10161016
10171017 for (i = 0; i < size; i++) {
10181018 rd = &reg_data[i];
1019− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR,
1019+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR,
10201020 rd->off, (u8 *)&data[i], (u16)sizeof(data[i]));
10211021 if (rc) {
10221022 pr_err("%s: Read %s failed\n", __func__, rd->name);
@@ -1027,13 +1027,13 @@ static int hdmi_hdcp_transfer_v_h(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 4 unmodified lines
10271027 reg[i] = reg_data[i].reg_id;
10281028 }
10291029
1030− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, size);
1030+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, size);
10311031
10321032 error:
10331033 return rc;
10341034 }
10351035
1036−static int hdmi_hdcp_recv_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1036+static int msm_hdmi_hdcp_recv_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl)
10371037 {
10381038 int rc;
10391039 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -1041,7 +1041,7 @@ static int hdmi_hdcp_recv_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
10411041
10421042 ksv_bytes = 5 * hdcp_ctrl->dev_count;
10431043
1044− rc = hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x43,
1044+ rc = msm_hdmi_ddc_read(hdmi, HDCP_PORT_ADDR, 0x43,
10451045 hdcp_ctrl->ksv_list, ksv_bytes);
10461046 if (rc)
10471047 pr_err("%s: KSV FIFO read failed\n", __func__);
@@ -1049,7 +1049,7 @@ static int hdmi_hdcp_recv_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
10491049 return rc;
10501050 }
10511051
1052−static int hdmi_hdcp_reset_sha_engine(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1052+static int msm_hdmi_hdcp_reset_sha_engine(struct hdmi_hdcp_ctrl *hdcp_ctrl)
10531053 {
10541054 u32 reg[2], data[2];
10551055 u32 rc = 0;
@@ -1059,12 +1059,12 @@ static int hdmi_hdcp_reset_sha_engine(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 3 unmodified lines
10591059 reg[1] = REG_HDMI_HDCP_SHA_CTRL;
10601060 data[1] = HDCP_REG_DISABLE;
10611061
1062− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2);
1062+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, reg, data, 2);
10631063
10641064 return rc;
10651065 }
10661066
1067−static int hdmi_hdcp_auth_part2_recv_ksv_fifo(
1067+static int msm_hdmi_hdcp_auth_part2_recv_ksv_fifo(
10681068 struct hdmi_hdcp_ctrl *hdcp_ctrl)
10691069 {
10701070 int rc;
@@ -1081,7 +1081,7 @@ static int hdmi_hdcp_auth_part2_recv_ksv_fifo( · 10 unmodified lines
10811081 */
10821082 timeout_count = 100;
10831083 do {
1084− rc = hdmi_hdcp_recv_ksv_fifo(hdcp_ctrl);
1084+ rc = msm_hdmi_hdcp_recv_ksv_fifo(hdcp_ctrl);
10851085 if (!rc)
10861086 break;
10871087
@@ -1091,19 +1091,19 @@ static int hdmi_hdcp_auth_part2_recv_ksv_fifo( · 3 unmodified lines
10911091 return -ETIMEDOUT;
10921092 }
10931093
1094− rc = hdmi_hdcp_msleep(hdcp_ctrl, 25, AUTH_ABORT_EV);
1094+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 25, AUTH_ABORT_EV);
10951095 if (rc)
10961096 return rc;
10971097 } while (1);
10981098
1099− rc = hdmi_hdcp_transfer_v_h(hdcp_ctrl);
1099+ rc = msm_hdmi_hdcp_transfer_v_h(hdcp_ctrl);
11001100 if (rc) {
11011101 pr_err("%s: transfer V failed\n", __func__);
11021102 return rc;
11031103 }
11041104
11051105 /* reset SHA engine before write ksv fifo */
1106− rc = hdmi_hdcp_reset_sha_engine(hdcp_ctrl);
1106+ rc = msm_hdmi_hdcp_reset_sha_engine(hdcp_ctrl);
11071107 if (rc) {
11081108 pr_err("%s: fail to reset sha engine\n", __func__);
11091109 return rc;
@@ -1120,7 +1120,7 @@ static int hdmi_hdcp_auth_part2_recv_ksv_fifo( · 10 unmodified lines
11201120 * If the last byte is written, we need to poll for
11211121 * HDCP_SHA_COMP_DONE to wait until HW finish
11221122 */
1123−static int hdmi_hdcp_write_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1123+static int msm_hdmi_hdcp_write_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl)
11241124 {
11251125 int i;
11261126 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -1169,7 +1169,7 @@ static int hdmi_hdcp_write_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 42 unmodified lines
11691169
11701170 reg = REG_HDMI_HDCP_SHA_DATA;
11711171 data = reg_val;
1172− rc = hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
1172+ rc = msm_hdmi_hdcp_scm_wr(hdcp_ctrl, &reg, &data, 1);
11731173
11741174 if (rc)
11751175 return rc;
@@ -1184,7 +1184,7 @@ static int hdmi_hdcp_write_ksv_fifo(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 8 unmodified lines
11841184 }
11851185
11861186 /* write ksv fifo into HDCP engine */
1187−static int hdmi_hdcp_auth_part2_write_ksv_fifo(
1187+static int msm_hdmi_hdcp_auth_part2_write_ksv_fifo(
11881188 struct hdmi_hdcp_ctrl *hdcp_ctrl)
11891189 {
11901190 int rc;
@@ -1193,7 +1193,7 @@ static int hdmi_hdcp_auth_part2_write_ksv_fifo( · 2 unmodified lines
11931193 hdcp_ctrl->ksv_fifo_w_index = 0;
11941194 timeout_count = 100;
11951195 do {
1196− rc = hdmi_hdcp_write_ksv_fifo(hdcp_ctrl);
1196+ rc = msm_hdmi_hdcp_write_ksv_fifo(hdcp_ctrl);
11971197 if (!rc)
11981198 break;
11991199
@@ -1206,7 +1206,7 @@ static int hdmi_hdcp_auth_part2_write_ksv_fifo( · 6 unmodified lines
12061206 return -ETIMEDOUT;
12071207 }
12081208
1209− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
1209+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
12101210 if (rc)
12111211 return rc;
12121212 } while (1);
@@ -1214,7 +1214,7 @@ static int hdmi_hdcp_auth_part2_write_ksv_fifo( · 1 unmodified line
12141214 return 0;
12151215 }
12161216
1217−static int hdmi_hdcp_auth_part2_check_v_match(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1217+static int msm_hdmi_hdcp_auth_part2_check_v_match(struct hdmi_hdcp_ctrl *hdcp_ctrl)
12181218 {
12191219 int rc = 0;
12201220 struct hdmi *hdmi = hdcp_ctrl->hdmi;
@@ -1232,7 +1232,7 @@ static int hdmi_hdcp_auth_part2_check_v_match(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 11 unmodified lines
12321232 return -ETIMEDOUT;
12331233 }
12341234
1235− rc = hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
1235+ rc = msm_hdmi_hdcp_msleep(hdcp_ctrl, 20, AUTH_ABORT_EV);
12361236 if (rc)
12371237 return rc;
12381238 } while (1);
@@ -1240,32 +1240,32 @@ static int hdmi_hdcp_auth_part2_check_v_match(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 1 unmodified line
12401240 return 0;
12411241 }
12421242
1243−static void hdmi_hdcp_auth_work(struct work_struct *work)
1243+static void msm_hdmi_hdcp_auth_work(struct work_struct *work)
12441244 {
12451245 struct hdmi_hdcp_ctrl *hdcp_ctrl = container_of(work,
12461246 struct hdmi_hdcp_ctrl, hdcp_auth_work);
12471247 int rc;
12481248
1249− rc = hdmi_hdcp_auth_prepare(hdcp_ctrl);
1249+ rc = msm_hdmi_hdcp_auth_prepare(hdcp_ctrl);
12501250 if (rc) {
12511251 pr_err("%s: auth prepare failed %d\n", __func__, rc);
12521252 goto end;
12531253 }
12541254
12551255 /* HDCP PartI */
1256− rc = hdmi_hdcp_auth_part1_key_exchange(hdcp_ctrl);
1256+ rc = msm_hdmi_hdcp_auth_part1_key_exchange(hdcp_ctrl);
12571257 if (rc) {
12581258 pr_err("%s: key exchange failed %d\n", __func__, rc);
12591259 goto end;
12601260 }
12611261
1262− rc = hdmi_hdcp_auth_part1_recv_r0(hdcp_ctrl);
1262+ rc = msm_hdmi_hdcp_auth_part1_recv_r0(hdcp_ctrl);
12631263 if (rc) {
12641264 pr_err("%s: receive r0 failed %d\n", __func__, rc);
12651265 goto end;
12661266 }
12671267
1268− rc = hdmi_hdcp_auth_part1_verify_r0(hdcp_ctrl);
1268+ rc = msm_hdmi_hdcp_auth_part1_verify_r0(hdcp_ctrl);
12691269 if (rc) {
12701270 pr_err("%s: verify r0 failed %d\n", __func__, rc);
12711271 goto end;
@@ -1275,25 +1275,25 @@ static void hdmi_hdcp_auth_work(struct work_struct *work) · 3 unmodified lines
12751275 goto end;
12761276
12771277 /* HDCP PartII */
1278− rc = hdmi_hdcp_auth_part2_wait_ksv_fifo_ready(hdcp_ctrl);
1278+ rc = msm_hdmi_hdcp_auth_part2_wait_ksv_fifo_ready(hdcp_ctrl);
12791279 if (rc) {
12801280 pr_err("%s: wait ksv fifo ready failed %d\n", __func__, rc);
12811281 goto end;
12821282 }
12831283
1284− rc = hdmi_hdcp_auth_part2_recv_ksv_fifo(hdcp_ctrl);
1284+ rc = msm_hdmi_hdcp_auth_part2_recv_ksv_fifo(hdcp_ctrl);
12851285 if (rc) {
12861286 pr_err("%s: recv ksv fifo failed %d\n", __func__, rc);
12871287 goto end;
12881288 }
12891289
1290− rc = hdmi_hdcp_auth_part2_write_ksv_fifo(hdcp_ctrl);
1290+ rc = msm_hdmi_hdcp_auth_part2_write_ksv_fifo(hdcp_ctrl);
12911291 if (rc) {
12921292 pr_err("%s: write ksv fifo failed %d\n", __func__, rc);
12931293 goto end;
12941294 }
12951295
1296− rc = hdmi_hdcp_auth_part2_check_v_match(hdcp_ctrl);
1296+ rc = msm_hdmi_hdcp_auth_part2_check_v_match(hdcp_ctrl);
12971297 if (rc)
12981298 pr_err("%s: check v match failed %d\n", __func__, rc);
12991299
@@ -1304,13 +1304,13 @@ end: · 4 unmodified lines
13041304 pr_info("%s: hdcp is not supported\n", __func__);
13051305 } else if (rc) {
13061306 pr_err("%s: hdcp authentication failed\n", __func__);
1307− hdmi_hdcp_auth_fail(hdcp_ctrl);
1307+ msm_hdmi_hdcp_auth_fail(hdcp_ctrl);
13081308 } else {
1309− hdmi_hdcp_auth_done(hdcp_ctrl);
1309+ msm_hdmi_hdcp_auth_done(hdcp_ctrl);
13101310 }
13111311 }
13121312
1313−void hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1313+void msm_hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl)
13141314 {
13151315 struct hdmi *hdmi = hdcp_ctrl->hdmi;
13161316 u32 reg_val;
@@ -1335,7 +1335,7 @@ void hdmi_hdcp_on(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 18 unmodified lines
13351335 queue_work(hdmi->workq, &hdcp_ctrl->hdcp_auth_work);
13361336 }
13371337
1338−void hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl)
1338+void msm_hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl)
13391339 {
13401340 struct hdmi *hdmi = hdcp_ctrl->hdmi;
13411341 unsigned long flags;
@@ -1399,7 +1399,7 @@ void hdmi_hdcp_off(struct hdmi_hdcp_ctrl *hdcp_ctrl) · 57 unmodified lines
13991399 DBG("HDCP: Off");
14001400 }
14011401
1402−struct hdmi_hdcp_ctrl *hdmi_hdcp_init(struct hdmi *hdmi)
1402+struct hdmi_hdcp_ctrl *msm_hdmi_hdcp_init(struct hdmi *hdmi)
14031403 {
14041404 struct hdmi_hdcp_ctrl *hdcp_ctrl = NULL;
14051405
@@ -1413,8 +1413,8 @@ struct hdmi_hdcp_ctrl *hdmi_hdcp_init(struct hdmi *hdmi) · 7 unmodified lines
14131413 if (!hdcp_ctrl)
14141414 return ERR_PTR(-ENOMEM);
14151415
1416− INIT_WORK(&hdcp_ctrl->hdcp_auth_work, hdmi_hdcp_auth_work);
1417− INIT_WORK(&hdcp_ctrl->hdcp_reauth_work, hdmi_hdcp_reauth_work);
1416+ INIT_WORK(&hdcp_ctrl->hdcp_auth_work, msm_hdmi_hdcp_auth_work);
1417+ INIT_WORK(&hdcp_ctrl->hdcp_reauth_work, msm_hdmi_hdcp_reauth_work);
14181418 init_waitqueue_head(&hdcp_ctrl->auth_event_queue);
14191419 hdcp_ctrl->hdmi = hdmi;
14201420 hdcp_ctrl->hdcp_state = HDCP_STATE_INACTIVE;
@@ -1428,7 +1428,7 @@ struct hdmi_hdcp_ctrl *hdmi_hdcp_init(struct hdmi *hdmi) · 7 unmodified lines
14281428 return hdcp_ctrl;
14291429 }
14301430
1431−void hdmi_hdcp_destroy(struct hdmi *hdmi)
1431+void msm_hdmi_hdcp_destroy(struct hdmi *hdmi)
14321432 {
14331433 if (hdmi && hdmi->hdcp_ctrl) {
14341434 kfree(hdmi->hdcp_ctrl);
drivers/gpu/drm/msm/hdmi/hdmi_i2c.c+10−10
@@ -97,7 +97,7 @@ static bool sw_done(struct hdmi_i2c_adapter *hdmi_i2c) · 96 unmodified lines
9797 return hdmi_i2c->sw_done;
9898 }
9999
100−static int hdmi_i2c_xfer(struct i2c_adapter *i2c,
100+static int msm_hdmi_i2c_xfer(struct i2c_adapter *i2c,
101101 struct i2c_msg *msgs, int num)
102102 {
103103 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c);
@@ -216,17 +216,17 @@ static int hdmi_i2c_xfer(struct i2c_adapter *i2c, · 112 unmodified lines
216216 return i;
217217 }
218218
219−static u32 hdmi_i2c_func(struct i2c_adapter *adapter)
219+static u32 msm_hdmi_i2c_func(struct i2c_adapter *adapter)
220220 {
221221 return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
222222 }
223223
224−static const struct i2c_algorithm hdmi_i2c_algorithm = {
225− .master_xfer = hdmi_i2c_xfer,
226− .functionality = hdmi_i2c_func,
224+static const struct i2c_algorithm msm_hdmi_i2c_algorithm = {
225+ .master_xfer = msm_hdmi_i2c_xfer,
226+ .functionality = msm_hdmi_i2c_func,
227227 };
228228
229−void hdmi_i2c_irq(struct i2c_adapter *i2c)
229+void msm_hdmi_i2c_irq(struct i2c_adapter *i2c)
230230 {
231231 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c);
232232
@@ -234,14 +234,14 @@ void hdmi_i2c_irq(struct i2c_adapter *i2c) · 1 unmodified line
234234 wake_up_all(&hdmi_i2c->ddc_event);
235235 }
236236
237−void hdmi_i2c_destroy(struct i2c_adapter *i2c)
237+void msm_hdmi_i2c_destroy(struct i2c_adapter *i2c)
238238 {
239239 struct hdmi_i2c_adapter *hdmi_i2c = to_hdmi_i2c_adapter(i2c);
240240 i2c_del_adapter(i2c);
241241 kfree(hdmi_i2c);
242242 }
243243
244−struct i2c_adapter *hdmi_i2c_init(struct hdmi *hdmi)
244+struct i2c_adapter *msm_hdmi_i2c_init(struct hdmi *hdmi)
245245 {
246246 struct drm_device *dev = hdmi->dev;
247247 struct hdmi_i2c_adapter *hdmi_i2c;
@@ -264,7 +264,7 @@ struct i2c_adapter *hdmi_i2c_init(struct hdmi *hdmi) · 16 unmodified lines
264264 i2c->class = I2C_CLASS_DDC;
265265 snprintf(i2c->name, sizeof(i2c->name), "msm hdmi i2c");
266266 i2c->dev.parent = &hdmi->pdev->dev;
267− i2c->algo = &hdmi_i2c_algorithm;
267+ i2c->algo = &msm_hdmi_i2c_algorithm;
268268
269269 ret = i2c_add_adapter(i2c);
270270 if (ret) {
@@ -276,6 +276,6 @@ struct i2c_adapter *hdmi_i2c_init(struct hdmi *hdmi) · 5 unmodified lines
276276
277277 fail:
278278 if (i2c)
279− hdmi_i2c_destroy(i2c);
279+ msm_hdmi_i2c_destroy(i2c);
280280 return ERR_PTR(ret);
281281 }
drivers/gpu/drm/msm/hdmi/hdmi_phy.c+29−29
@@ -15,7 +15,7 @@ · 14 unmodified lines
1515
1616 #include "hdmi.h"
1717
18−static int hdmi_phy_resource_init(struct hdmi_phy *phy)
18+static int msm_hdmi_phy_resource_init(struct hdmi_phy *phy)
1919 {
2020 struct hdmi_phy_cfg *cfg = phy->cfg;
2121 struct device *dev = &phy->pdev->dev;
@@ -62,7 +62,7 @@ static int hdmi_phy_resource_init(struct hdmi_phy *phy) · 40 unmodified lines
6262 return 0;
6363 }
6464
65−int hdmi_phy_resource_enable(struct hdmi_phy *phy)
65+int msm_hdmi_phy_resource_enable(struct hdmi_phy *phy)
6666 {
6767 struct hdmi_phy_cfg *cfg = phy->cfg;
6868 struct device *dev = &phy->pdev->dev;
@@ -87,7 +87,7 @@ int hdmi_phy_resource_enable(struct hdmi_phy *phy) · 18 unmodified lines
8787 return ret;
8888 }
8989
90−void hdmi_phy_resource_disable(struct hdmi_phy *phy)
90+void msm_hdmi_phy_resource_disable(struct hdmi_phy *phy)
9191 {
9292 struct hdmi_phy_cfg *cfg = phy->cfg;
9393 struct device *dev = &phy->pdev->dev;
@@ -102,7 +102,7 @@ void hdmi_phy_resource_disable(struct hdmi_phy *phy) · 8 unmodified lines
102102 pm_runtime_put_sync(dev);
103103 }
104104
105−void hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock)
105+void msm_hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock)
106106 {
107107 if (!phy || !phy->cfg->powerup)
108108 return;
@@ -110,7 +110,7 @@ void hdmi_phy_powerup(struct hdmi_phy *phy, unsigned long int pixclock) · 1 unmodified line
110110 phy->cfg->powerup(phy, pixclock);
111111 }
112112
113−void hdmi_phy_powerdown(struct hdmi_phy *phy)
113+void msm_hdmi_phy_powerdown(struct hdmi_phy *phy)
114114 {
115115 if (!phy || !phy->cfg->powerdown)
116116 return;
@@ -118,17 +118,17 @@ void hdmi_phy_powerdown(struct hdmi_phy *phy) · 1 unmodified line
118118 phy->cfg->powerdown(phy);
119119 }
120120
121−static int hdmi_phy_pll_init(struct platform_device *pdev,
121+static int msm_hdmi_phy_pll_init(struct platform_device *pdev,
122122 enum hdmi_phy_type type)
123123 {
124124 int ret;
125125
126126 switch (type) {
127127 case MSM_HDMI_PHY_8960:
128− ret = hdmi_pll_8960_init(pdev);
128+ ret = msm_hdmi_pll_8960_init(pdev);
129129 break;
130130 case MSM_HDMI_PHY_8996:
131− ret = hdmi_pll_8996_init(pdev);
131+ ret = msm_hdmi_pll_8996_init(pdev);
132132 break;
133133 /*
134134 * we don't have PLL support for these, don't report an error for now
@@ -143,7 +143,7 @@ static int hdmi_phy_pll_init(struct platform_device *pdev, · 8 unmodified lines
143143 return ret;
144144 }
145145
146−static int hdmi_phy_probe(struct platform_device *pdev)
146+static int msm_hdmi_phy_probe(struct platform_device *pdev)
147147 {
148148 struct device *dev = &pdev->dev;
149149 struct hdmi_phy *phy;
@@ -165,66 +165,66 @@ static int hdmi_phy_probe(struct platform_device *pdev) · 15 unmodified lines
165165
166166 phy->pdev = pdev;
167167
168− ret = hdmi_phy_resource_init(phy);
168+ ret = msm_hdmi_phy_resource_init(phy);
169169 if (ret)
170170 return ret;
171171
172172 pm_runtime_enable(&pdev->dev);
173173
174− ret = hdmi_phy_resource_enable(phy);
174+ ret = msm_hdmi_phy_resource_enable(phy);
175175 if (ret)
176176 return ret;
177177
178− ret = hdmi_phy_pll_init(pdev, phy->cfg->type);
178+ ret = msm_hdmi_phy_pll_init(pdev, phy->cfg->type);
179179 if (ret) {
180180 dev_err(dev, "couldn't init PLL\n");
181− hdmi_phy_resource_disable(phy);
181+ msm_hdmi_phy_resource_disable(phy);
182182 return ret;
183183 }
184184
185− hdmi_phy_resource_disable(phy);
185+ msm_hdmi_phy_resource_disable(phy);
186186
187187 platform_set_drvdata(pdev, phy);
188188
189189 return 0;
190190 }
191191
192−static int hdmi_phy_remove(struct platform_device *pdev)
192+static int msm_hdmi_phy_remove(struct platform_device *pdev)
193193 {
194194 pm_runtime_disable(&pdev->dev);
195195
196196 return 0;
197197 }
198198
199−static const struct of_device_id hdmi_phy_dt_match[] = {
199+static const struct of_device_id msm_hdmi_phy_dt_match[] = {
200200 { .compatible = "qcom,hdmi-phy-8660",
201− .data = &hdmi_phy_8x60_cfg },
201+ .data = &msm_hdmi_phy_8x60_cfg },
202202 { .compatible = "qcom,hdmi-phy-8960",
203− .data = &hdmi_phy_8960_cfg },
203+ .data = &msm_hdmi_phy_8960_cfg },
204204 { .compatible = "qcom,hdmi-phy-8974",
205− .data = &hdmi_phy_8x74_cfg },
205+ .data = &msm_hdmi_phy_8x74_cfg },
206206 { .compatible = "qcom,hdmi-phy-8084",
207− .data = &hdmi_phy_8x74_cfg },
207+ .data = &msm_hdmi_phy_8x74_cfg },
208208 { .compatible = "qcom,hdmi-phy-8996",
209− .data = &hdmi_phy_8996_cfg },
209+ .data = &msm_hdmi_phy_8996_cfg },
210210 {}
211211 };
212212
213−static struct platform_driver hdmi_phy_platform_driver = {
214− .probe = hdmi_phy_probe,
215− .remove = hdmi_phy_remove,
213+static struct platform_driver msm_hdmi_phy_platform_driver = {
214+ .probe = msm_hdmi_phy_probe,
215+ .remove = msm_hdmi_phy_remove,
216216 .driver = {
217217 .name = "msm_hdmi_phy",
218− .of_match_table = hdmi_phy_dt_match,
218+ .of_match_table = msm_hdmi_phy_dt_match,
219219 },
220220 };
221221
222−void __init hdmi_phy_driver_register(void)
222+void __init msm_hdmi_phy_driver_register(void)
223223 {
224− platform_driver_register(&hdmi_phy_platform_driver);
224+ platform_driver_register(&msm_hdmi_phy_platform_driver);
225225 }
226226
227−void __exit hdmi_phy_driver_unregister(void)
227+void __exit msm_hdmi_phy_driver_unregister(void)
228228 {
229− platform_driver_unregister(&hdmi_phy_platform_driver);
229+ platform_driver_unregister(&msm_hdmi_phy_platform_driver);
230230 }
drivers/gpu/drm/msm/hdmi/hdmi_phy_8960.c+1−1
@@ -51,7 +51,7 @@ static const char * const hdmi_phy_8960_clk_names[] = { · 50 unmodified lines
5151 "slave_iface_clk",
5252 };
5353
54−const struct hdmi_phy_cfg hdmi_phy_8960_cfg = {
54+const struct hdmi_phy_cfg msm_hdmi_phy_8960_cfg = {
5555 .type = MSM_HDMI_PHY_8960,
5656 .powerup = hdmi_phy_8960_powerup,
5757 .powerdown = hdmi_phy_8960_powerdown,
drivers/gpu/drm/msm/hdmi/hdmi_phy_8996.c+2−2
@@ -704,7 +704,7 @@ static struct clk_init_data pll_init = { · 703 unmodified lines
704704 .num_parents = ARRAY_SIZE(hdmi_pll_parents),
705705 };
706706
707−int hdmi_pll_8996_init(struct platform_device *pdev)
707+int msm_hdmi_pll_8996_init(struct platform_device *pdev)
708708 {
709709 struct device *dev = &pdev->dev;
710710 struct hdmi_pll_8996 *pll;
@@ -757,7 +757,7 @@ static const char * const hdmi_phy_8996_clk_names[] = { · 46 unmodified lines
757757 "ref_clk",
758758 };
759759
760−const struct hdmi_phy_cfg hdmi_phy_8996_cfg = {
760+const struct hdmi_phy_cfg msm_hdmi_phy_8996_cfg = {
761761 .type = MSM_HDMI_PHY_8996,
762762 .reg_names = hdmi_phy_8996_reg_names,
763763 .num_regs = ARRAY_SIZE(hdmi_phy_8996_reg_names),
drivers/gpu/drm/msm/hdmi/hdmi_phy_8x60.c+1−1
@@ -131,7 +131,7 @@ static void hdmi_phy_8x60_powerdown(struct hdmi_phy *phy) · 130 unmodified lines
131131 HDMI_8x60_PHY_REG2_PD_DESER);
132132 }
133133
134−const struct hdmi_phy_cfg hdmi_phy_8x60_cfg = {
134+const struct hdmi_phy_cfg msm_hdmi_phy_8x60_cfg = {
135135 .type = MSM_HDMI_PHY_8x60,
136136 .powerup = hdmi_phy_8x60_powerup,
137137 .powerdown = hdmi_phy_8x60_powerdown,
drivers/gpu/drm/msm/hdmi/hdmi_phy_8x74.c+1−1
@@ -45,7 +45,7 @@ static const char * const hdmi_phy_8x74_clk_names[] = { · 44 unmodified lines
4545 "alt_iface_clk"
4646 };
4747
48−const struct hdmi_phy_cfg hdmi_phy_8x74_cfg = {
48+const struct hdmi_phy_cfg msm_hdmi_phy_8x74_cfg = {
4949 .type = MSM_HDMI_PHY_8x74,
5050 .powerup = hdmi_phy_8x74_powerup,
5151 .powerdown = hdmi_phy_8x74_powerdown,
drivers/gpu/drm/msm/hdmi/hdmi_pll_8960.c+1−1
@@ -426,7 +426,7 @@ static struct clk_init_data pll_init = { · 425 unmodified lines
426426 .num_parents = ARRAY_SIZE(hdmi_pll_parents),
427427 };
428428
429−int hdmi_pll_8960_init(struct platform_device *pdev)
429+int msm_hdmi_pll_8960_init(struct platform_device *pdev)
430430 {
431431 struct device *dev = &pdev->dev;
432432 struct hdmi_pll_8960 *pll;
drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c+1−1
@@ -326,7 +326,7 @@ static int mdp4_modeset_init_intf(struct mdp4_kms *mdp4_kms, · 325 unmodified lines
326326
327327 if (priv->hdmi) {
328328 /* Construct bridge/connector for HDMI: */
329− ret = hdmi_modeset_init(priv->hdmi, dev, encoder);
329+ ret = msm_hdmi_modeset_init(priv->hdmi, dev, encoder);
330330 if (ret) {
331331 dev_err(dev->dev, "failed to initialize HDMI: %d\n", ret);
332332 return ret;
drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c+1−1
@@ -284,7 +284,7 @@ static int modeset_init_intf(struct mdp5_kms *mdp5_kms, int intf_num) · 283 unmodified lines
284284 break;
285285 }
286286
287− ret = hdmi_modeset_init(priv->hdmi, dev, encoder);
287+ ret = msm_hdmi_modeset_init(priv->hdmi, dev, encoder);
288288 break;
289289 case INTF_DSI:
290290 {
drivers/gpu/drm/msm/msm_drv.c+2−2
@@ -1121,7 +1121,7 @@ static int __init msm_drm_register(void) · 1120 unmodified lines
11211121 DBG("init");
11221122 msm_dsi_register();
11231123 msm_edp_register();
1124− hdmi_register();
1124+ msm_hdmi_register();
11251125 adreno_register();
11261126 return platform_driver_register(&msm_platform_driver);
11271127 }
@@ -1130,7 +1130,7 @@ static void __exit msm_drm_unregister(void) · 2 unmodified lines
11301130 {
11311131 DBG("fini");
11321132 platform_driver_unregister(&msm_platform_driver);
1133− hdmi_unregister();
1133+ msm_hdmi_unregister();
11341134 adreno_unregister();
11351135 msm_edp_unregister();
11361136 msm_dsi_unregister();
drivers/gpu/drm/msm/msm_drv.h+3−3
@@ -243,10 +243,10 @@ struct drm_fb_helper *msm_fbdev_init(struct drm_device *dev); · 242 unmodified lines
243243 void msm_fbdev_free(struct drm_device *dev);
244244
245245 struct hdmi;
246−int hdmi_modeset_init(struct hdmi *hdmi, struct drm_device *dev,
246+int msm_hdmi_modeset_init(struct hdmi *hdmi, struct drm_device *dev,
247247 struct drm_encoder *encoder);
248−void __init hdmi_register(void);
249−void __exit hdmi_unregister(void);
248+void __init msm_hdmi_register(void);
249+void __exit msm_hdmi_unregister(void);
250250
251251 struct msm_edp;
252252 void __init msm_edp_register(void);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t