Lines Matching defs:conn
156 struct drm_connector conn;
191 return container_of(c, struct mtk_hdmi, conn);
990 &hdmi->conn, mode);
1070 &hdmi->conn, mode);
1217 static enum drm_connector_status hdmi_conn_detect(struct drm_connector *conn,
1220 struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
1224 static void hdmi_conn_destroy(struct drm_connector *conn)
1226 struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
1230 drm_connector_cleanup(conn);
1233 static int mtk_hdmi_conn_get_modes(struct drm_connector *conn)
1235 struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
1242 edid = drm_get_edid(conn, hdmi->ddc_adpt);
1248 drm_connector_update_edid_property(conn, edid);
1250 ret = drm_add_edid_modes(conn, edid);
1255 static int mtk_hdmi_conn_mode_valid(struct drm_connector *conn,
1258 struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
1283 static struct drm_encoder *mtk_hdmi_conn_best_enc(struct drm_connector *conn)
1285 struct mtk_hdmi *hdmi = hdmi_ctx_from_conn(conn);
1329 ret = drm_connector_init_with_ddc(bridge->encoder->dev, &hdmi->conn,
1337 drm_connector_helper_add(&hdmi->conn, &mtk_hdmi_connector_helper_funcs);
1339 hdmi->conn.polled = DRM_CONNECTOR_POLL_HPD;
1340 hdmi->conn.interlace_allowed = true;
1341 hdmi->conn.doublescan_allowed = false;
1343 ret = drm_connector_attach_encoder(&hdmi->conn,
1678 memcpy(buf, hdmi->conn.eld, min(sizeof(hdmi->conn.eld), len));