Lines Matching defs:dev
418 dev_err(&priv->hdmi->dev, "Error %d writing to cec:0x%x\n",
442 dev_err(&priv->hdmi->dev, "Error %d reading from cec:0x%x\n",
521 calib = gpiod_get(&priv->hdmi->dev, "nxp,calib", GPIOD_ASIS);
523 dev_warn(&priv->hdmi->dev, "failed to get calibration gpio: %ld\n",
568 dev_err(&client->dev, "%s %04x err %d\n", __func__,
601 dev_err(&client->dev, "Error %d reading from 0x%x\n", ret, reg);
618 dev_err(&client->dev, "Fixed write buffer too small (%d)\n",
633 dev_err(&client->dev, "Error %d writing to 0x%x\n", ret, reg);
664 dev_err(&client->dev, "Error %d writing to 0x%x\n", ret, reg);
683 dev_err(&client->dev, "Error %d writing to 0x%x\n", ret, reg);
780 struct drm_device *dev = priv->connector.dev;
782 if (dev)
783 drm_kms_helper_hotplug_event(dev);
837 dev_err(&priv->hdmi->dev,
908 dev_err(&priv->hdmi->dev, "no audio configuration found\n");
934 dev_dbg(&priv->hdmi->dev,
986 dev_err(&priv->hdmi->dev, "unsupported bclk ratio %ufs\n",
1063 static int tda998x_audio_hw_params(struct device *dev, void *data,
1067 struct tda998x_priv *priv = dev_get_drvdata(dev);
1093 dev_err(dev, "%s: Invalid format %d\n", __func__, daifmt->fmt);
1100 dev_err(dev, "%s: Bad flags %d %d %d %d\n", __func__,
1125 static void tda998x_audio_shutdown(struct device *dev, void *data)
1127 struct tda998x_priv *priv = dev_get_drvdata(dev);
1137 static int tda998x_audio_mute_stream(struct device *dev, void *data,
1140 struct tda998x_priv *priv = dev_get_drvdata(dev);
1150 static int tda998x_audio_get_eld(struct device *dev, void *data,
1153 struct tda998x_priv *priv = dev_get_drvdata(dev);
1172 struct device *dev)
1187 dev, HDMI_CODEC_DRV_NAME, PLATFORM_DEVID_AUTO,
1248 dev_err(&priv->hdmi->dev, "read edid wait err %d\n", i);
1264 dev_err(&priv->hdmi->dev, "read edid timeout\n");
1271 dev_err(&priv->hdmi->dev, "failed to read edid block %d: %d\n",
1306 dev_warn(&priv->hdmi->dev, "failed to read EDID\n");
1375 return tda998x_connector_init(priv, bridge->dev);
1706 dev_err(&priv->hdmi->dev,
1726 dev_err(&priv->hdmi->dev,
1732 dev_err(&priv->hdmi->dev, "invalid zero port config\n");
1737 dev_err(&priv->hdmi->dev,
1786 static void tda998x_destroy(struct device *dev)
1788 struct tda998x_priv *priv = dev_get_drvdata(dev);
1810 static int tda998x_create(struct device *dev)
1812 struct i2c_client *client = to_i2c_client(dev);
1813 struct device_node *np = client->dev.of_node;
1819 priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL);
1823 dev_set_drvdata(dev, priv);
1851 dev_err(dev, "failed to read version: %d\n", rev_lo);
1857 dev_err(dev, "failed to read version: %d\n", rev_hi);
1868 dev_info(dev, "found TDA9989 n2");
1871 dev_info(dev, "found TDA19989");
1874 dev_info(dev, "found TDA19989 n2");
1877 dev_info(dev, "found TDA19988");
1880 dev_err(dev, "found unsupported device: %04x\n", priv->rev);
1923 dev_err(dev, "failed to request IRQ#%u: %d\n",
1932 priv->cec_notify = cec_notifier_conn_register(dev, NULL, NULL);
1938 priv->cec_glue.parent = dev;
1983 tda998x_audio_codec_init(priv, &client->dev);
1984 } else if (dev->platform_data) {
1985 ret = tda998x_set_config(priv, dev->platform_data);
1992 priv->bridge.of_node = dev->of_node;
2000 tda998x_destroy(dev);
2007 static int tda998x_encoder_init(struct device *dev, struct drm_device *drm)
2009 struct tda998x_priv *priv = dev_get_drvdata(dev);
2013 if (dev->of_node)
2014 crtcs = drm_of_find_possible_crtcs(drm, dev->of_node);
2018 dev_warn(dev, "Falling back to first CRTC\n");
2041 static int tda998x_bind(struct device *dev, struct device *master, void *data)
2045 return tda998x_encoder_init(dev, drm);
2048 static void tda998x_unbind(struct device *dev, struct device *master,
2051 struct tda998x_priv *priv = dev_get_drvdata(dev);
2067 dev_warn(&client->dev, "adapter does not support I2C\n");
2071 ret = tda998x_create(&client->dev);
2075 ret = component_add(&client->dev, &tda998x_ops);
2077 tda998x_destroy(&client->dev);
2083 component_del(&client->dev, &tda998x_ops);
2084 tda998x_destroy(&client->dev);