Lines Matching full:ddc
41 struct zx_hdmi_i2c *ddc; member
264 edid = drm_get_edid(connector, &hdmi->ddc->adap); in zx_hdmi_connector_get_modes()
321 &hdmi->ddc->adap); in zx_hdmi_register()
526 "DDC FIFO read timed out!"); in zx_hdmi_i2c_read()
543 * The DDC I2C adapter is only for reading EDID data, so we assume in zx_hdmi_i2c_write()
564 struct zx_hdmi_i2c *ddc = hdmi->ddc; in zx_hdmi_i2c_xfer() local
567 mutex_lock(&ddc->lock); in zx_hdmi_i2c_xfer()
569 /* Enable DDC master access */ in zx_hdmi_i2c_xfer()
589 /* Disable DDC master access */ in zx_hdmi_i2c_xfer()
592 mutex_unlock(&ddc->lock); in zx_hdmi_i2c_xfer()
610 struct zx_hdmi_i2c *ddc; in zx_hdmi_ddc_register() local
613 ddc = devm_kzalloc(hdmi->dev, sizeof(*ddc), GFP_KERNEL); in zx_hdmi_ddc_register()
614 if (!ddc) in zx_hdmi_ddc_register()
617 hdmi->ddc = ddc; in zx_hdmi_ddc_register()
618 mutex_init(&ddc->lock); in zx_hdmi_ddc_register()
620 adap = &ddc->adap; in zx_hdmi_ddc_register()
692 DRM_DEV_ERROR(dev, "failed to register ddc: %d\n", ret); in zx_hdmi_bind()