Lines Matching defs:dev

151 	struct device *dev;
301 dev_info(hdmi->dev, "Attempting to unwedge stuck i2c bus\n");
373 dev_dbg(hdmi->dev, "set read register address to 0\n");
447 dev_dbg(hdmi->dev, "xfer: num: %d, addr: %#x\n", num, addr);
451 dev_dbg(hdmi->dev,
473 dev_dbg(hdmi->dev, "xfer: num: %d/%d, len: %d, flags: %#x\n",
519 i2c = devm_kzalloc(hdmi->dev, sizeof(*i2c), GFP_KERNEL);
529 adap->dev.parent = hdmi->dev;
536 dev_warn(hdmi->dev, "cannot add %s I2C adapter\n", adap->name);
537 devm_kfree(hdmi->dev, i2c);
543 dev_info(hdmi->dev, "registered %s I2C bus driver\n", adap->name);
674 dev_dbg(hdmi->dev, "%s: fs=%uHz ftdms=%lu.%03luMHz N=%d cts=%d\n",
1402 dev_warn(hdmi->dev, "PHY failed to power down\n");
1404 dev_dbg(hdmi->dev, "PHY powered down in %u iterations\n", i);
1437 dev_err(hdmi->dev, "PHY PLL failed to lock\n");
1441 dev_dbg(hdmi->dev, "PHY PLL locked %u iterations\n", i);
1531 dev_err(hdmi->dev, "PHY configuration failed (clock %lu)\n",
1790 dev_err(hdmi->dev, "Failed to pack vendor infoframe: %zd\n",
1844 dev_err(hdmi->dev, "Failed to pack drm infoframe: %zd\n", err);
1871 dev_dbg(hdmi->dev, "final pixclk = %d\n", vmode->mpixelclock);
1893 dev_dbg(hdmi->dev, "final tmdsclock = %d\n", vmode->mtmdsclock);
2139 dev_dbg(hdmi->dev, "Non-CEA mode used in HDMI\n");
2141 dev_dbg(hdmi->dev, "CEA mode used vic=%d\n", hdmi->vic);
2191 dev_dbg(hdmi->dev, "sink has audio support\n");
2200 dev_dbg(hdmi->dev, "%s HDMI mode\n", __func__);
2207 dev_dbg(hdmi->dev, "%s DVI mode\n", __func__);
2342 dev_dbg(hdmi->dev, "read_hpd result: %d", result);
2362 dev_dbg(hdmi->dev, "failed to get edid\n");
2366 dev_dbg(hdmi->dev, "got edid: width[%d] x height[%d]\n",
2489 drm_connector_init_with_ddc(hdmi->bridge.dev, connector,
2504 connector->dev->mode_config.hdr_output_metadata_property, 0);
2510 notifier = cec_notifier_conn_register(hdmi->dev, NULL, &conn_info);
2790 dev_dbg(hdmi->dev, "input format 0x%04x, output format 0x%04x\n",
3035 dev_dbg(hdmi->dev, "EVENT=%s\n",
3039 if (hdmi->bridge.dev) {
3040 drm_helper_hpd_irq_event(hdmi->bridge.dev);
3103 dev_err(hdmi->dev,
3123 dev_err(hdmi->dev, "%s requires platform support\n",
3132 dev_err(hdmi->dev, "Unsupported HDMI PHY type (%02x)\n", phy_type);
3194 struct device *dev = &pdev->dev;
3195 struct device_node *np = dev->of_node;
3209 hdmi = devm_kzalloc(dev, sizeof(*hdmi), GFP_KERNEL);
3214 hdmi->dev = dev;
3232 dev_dbg(hdmi->dev, "failed to read ddc node\n");
3237 dev_dbg(hdmi->dev, "no ddc property found\n");
3253 dev_err(dev, "reg-io-width must be 1 or 4\n");
3258 hdmi->regs = devm_ioremap_resource(dev, iores);
3264 hdmi->regm = devm_regmap_init_mmio(dev, hdmi->regs, reg_config);
3266 dev_err(dev, "Failed to configure regmap\n");
3274 hdmi->isfr_clk = devm_clk_get(hdmi->dev, "isfr");
3277 dev_err(hdmi->dev, "Unable to get HDMI isfr clk: %d\n", ret);
3283 dev_err(hdmi->dev, "Cannot enable HDMI isfr clock: %d\n", ret);
3287 hdmi->iahb_clk = devm_clk_get(hdmi->dev, "iahb");
3290 dev_err(hdmi->dev, "Unable to get HDMI iahb clk: %d\n", ret);
3296 dev_err(hdmi->dev, "Cannot enable HDMI iahb clock: %d\n", ret);
3300 hdmi->cec_clk = devm_clk_get(hdmi->dev, "cec");
3306 dev_err(hdmi->dev, "Cannot get HDMI cec clock: %d\n",
3314 dev_err(hdmi->dev, "Cannot enable HDMI cec clock: %d\n",
3328 dev_err(dev, "Unsupported HDMI controller (%04x:%02x:%02x)\n",
3338 dev_info(dev, "Detected HDMI TX controller v%x.%03x %s HDCP (%s)\n",
3351 ret = devm_request_threaded_irq(dev, irq, dw_hdmi_hardirq,
3353 dev_name(dev), hdmi);
3366 hdmi->pinctrl = devm_pinctrl_get(dev);
3376 dev_warn(dev,
3393 hdmi->bridge.of_node = pdev->dev.of_node;
3397 pdevinfo.parent = dev;