Lines Matching refs:edid
157 static struct edid *ptn3460_get_edid(struct drm_bridge *bridge, in ptn3460_get_edid()
162 u8 *edid; in ptn3460_get_edid() local
168 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); in ptn3460_get_edid()
169 if (!edid) { in ptn3460_get_edid()
174 ret = ptn3460_read_bytes(ptn_bridge, PTN3460_EDID_ADDR, edid, in ptn3460_get_edid()
177 kfree(edid); in ptn3460_get_edid()
178 edid = NULL; in ptn3460_get_edid()
186 return (struct edid *)edid; in ptn3460_get_edid()
192 struct edid *edid; in ptn3460_connector_get_modes() local
195 edid = ptn3460_get_edid(&ptn_bridge->bridge, connector); in ptn3460_connector_get_modes()
196 drm_connector_update_edid_property(connector, edid); in ptn3460_connector_get_modes()
197 num_modes = drm_add_edid_modes(connector, edid); in ptn3460_connector_get_modes()
198 kfree(edid); in ptn3460_connector_get_modes()