Lines Matching refs:dev

92 	phy_node = of_parse_phandle(pdev->dev.of_node, "phys", 0);
94 DRM_DEV_ERROR(&pdev->dev, "cannot find phy device\n");
102 return dev_err_probe(&pdev->dev, -EPROBE_DEFER, "phy driver is not ready\n");
106 put_device(&phy_pdev->dev);
107 return dev_err_probe(&pdev->dev, -EPROBE_DEFER, "phy driver is not ready\n");
110 hdmi->phy_dev = &phy_pdev->dev;
133 DRM_DEV_ERROR(&pdev->dev, "failed to get i2c: %d\n", ret);
140 dev_warn(&pdev->dev, "failed to init hdcp: disabled\n");
161 struct drm_device *dev, struct drm_encoder *encoder)
163 struct msm_drm_private *priv = dev->dev_private;
167 DRM_DEV_ERROR(dev->dev, "too many bridges\n");
171 hdmi->dev = dev;
179 DRM_DEV_ERROR(dev->dev, "failed to create HDMI bridge: %d\n", ret);
188 DRM_DEV_ERROR(dev->dev, "failed to attach next HDMI bridge: %d\n", ret);
193 hdmi->connector = drm_bridge_connector_init(hdmi->dev, encoder);
196 DRM_DEV_ERROR(dev->dev, "failed to create HDMI connector: %d\n", ret);
203 ret = devm_request_irq(dev->dev, hdmi->irq,
207 DRM_DEV_ERROR(dev->dev, "failed to request IRQ%u: %d\n",
214 DRM_DEV_ERROR(&hdmi->pdev->dev, "failed to enable HPD: %d\n", ret);
267 static int msm_hdmi_audio_hw_params(struct device *dev, void *data,
271 struct hdmi *hdmi = dev_get_drvdata(dev);
278 DRM_DEV_DEBUG(dev, "%u Hz, %d bit, %d channels\n", params->sample_rate,
329 DRM_DEV_ERROR(dev, "rate[%d] not supported!\n",
341 static void msm_hdmi_audio_shutdown(struct device *dev, void *data)
343 struct hdmi *hdmi = dev_get_drvdata(dev);
359 static int msm_hdmi_register_audio_driver(struct hdmi *hdmi, struct device *dev)
361 hdmi->audio_pdev = platform_device_register_data(dev,
369 static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
372 struct hdmi *hdmi = dev_get_drvdata(dev);
380 err = msm_hdmi_register_audio_driver(hdmi, dev);
389 static void msm_hdmi_unbind(struct device *dev, struct device *master,
411 struct device *dev = &pdev->dev;
416 config = of_device_get_match_data(dev);
420 hdmi = devm_kzalloc(&pdev->dev, sizeof(*hdmi), GFP_KERNEL);
428 ret = drm_of_find_panel_or_bridge(pdev->dev.of_node, 1, 0, NULL, &hdmi->next_bridge);
445 DRM_DEV_INFO(&pdev->dev, "can't find qfprom resource\n");
453 hdmi->hpd_regs = devm_kcalloc(&pdev->dev,
463 ret = devm_regulator_bulk_get(&pdev->dev, config->hpd_reg_cnt, hdmi->hpd_regs);
465 return dev_err_probe(dev, ret, "failed to get hpd regulators\n");
467 hdmi->pwr_regs = devm_kcalloc(&pdev->dev,
477 ret = devm_regulator_bulk_get(&pdev->dev, config->pwr_reg_cnt, hdmi->pwr_regs);
479 return dev_err_probe(dev, ret, "failed to get pwr regulators\n");
481 hdmi->hpd_clks = devm_kcalloc(&pdev->dev,
493 return dev_err_probe(dev, PTR_ERR(clk),
500 hdmi->pwr_clks = devm_kcalloc(&pdev->dev,
512 return dev_err_probe(dev, PTR_ERR(clk),
519 hdmi->hpd_gpiod = devm_gpiod_get_optional(&pdev->dev, "hpd", GPIOD_IN);
522 return dev_err_probe(dev, PTR_ERR(hdmi->hpd_gpiod),
533 DRM_DEV_ERROR(&pdev->dev, "failed to get phy\n");
537 ret = devm_pm_runtime_enable(&pdev->dev);
543 ret = component_add(&pdev->dev, &msm_hdmi_ops);
556 struct hdmi *hdmi = dev_get_drvdata(&pdev->dev);
558 component_del(&pdev->dev, &msm_hdmi_ops);