/linux-2.6.39/drivers/gpu/drm/ |
D | drm_edid.c | 37 #define version_greater(edid, maj, min) \ argument 38 (((edid)->version > (maj)) || \ 39 ((edid)->version == (maj) && (edid)->revision > (min))) 71 struct edid *edid; member 139 struct edid *edid = (struct edid *)raw_edid; in drm_edid_block_valid() local 170 if (edid->version != 1) { in drm_edid_block_valid() 171 DRM_ERROR("EDID has major version %d, instead of 1\n", edid->version); in drm_edid_block_valid() 175 if (edid->revision > 4) in drm_edid_block_valid() 200 bool drm_edid_is_valid(struct edid *edid) in drm_edid_is_valid() argument 203 u8 *raw = (u8 *)edid; in drm_edid_is_valid() [all …]
|
/linux-2.6.39/drivers/video/ |
D | fbmon.c | 147 static int check_edid(unsigned char *edid) in check_edid() argument 149 unsigned char *block = edid + ID_MANUFACTURER_NAME, manufacturer[4]; in check_edid() 172 if (edid[i] != edid_v1_header[i]) { in check_edid() 179 b = edid + EDID_STRUCT_DISPLAY; in check_edid() 186 b = edid + DETAILED_TIMING_DESCRIPTIONS_START; in check_edid() 209 static void fix_edid(unsigned char *edid, int fix) in fix_edid() argument 217 memcpy(edid, edid_v1_header, 8); in fix_edid() 221 b = edid + EDID_STRUCT_DISPLAY; in fix_edid() 223 edid[127] += 0x80; in fix_edid() 227 b = edid + DETAILED_TIMING_DESCRIPTIONS_START; in fix_edid() [all …]
|
D | fb_ddc.c | 56 unsigned char *edid = NULL; in fb_ddc_read() local 85 edid = fb_do_probe_ddc_edid(adapter); in fb_ddc_read() 101 if (edid) in fb_ddc_read() 111 return edid; in fb_ddc_read()
|
D | udlfb.c | 721 static int dlfb_get_edid(struct dlfb_data *dev, char *edid, int len) in dlfb_get_edid() argument 741 edid[i] = rbuf[1]; in dlfb_get_edid() 761 char *edid = (char *)arg; in dlfb_ops_ioctl() local 762 if (copy_to_user(edid, dev->edid, dev->edid_size)) in dlfb_ops_ioctl() 891 kfree(dev->edid); in dlfb_free() 1168 char *edid; in dlfb_setup_modes() local 1174 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); in dlfb_setup_modes() 1175 if (!edid) { in dlfb_setup_modes() 1190 i = dlfb_get_edid(dev, edid, EDID_LENGTH); in dlfb_setup_modes() 1193 fb_edid_to_monspecs(edid, &info->monspecs); in dlfb_setup_modes() [all …]
|
/linux-2.6.39/drivers/staging/gma500/ |
D | psb_intel_modes.c | 64 struct edid *edid; in psb_intel_ddc_get_modes() local 67 edid = in psb_intel_ddc_get_modes() 70 if (edid) { in psb_intel_ddc_get_modes() 72 base, edid); in psb_intel_ddc_get_modes() 73 ret = drm_add_edid_modes(&psb_intel_output->base, edid); in psb_intel_ddc_get_modes() 74 kfree(edid); in psb_intel_ddc_get_modes()
|
/linux-2.6.39/drivers/gpu/drm/i915/ |
D | intel_modes.c | 70 struct edid *edid; in intel_ddc_get_modes() local 73 edid = drm_get_edid(connector, adapter); in intel_ddc_get_modes() 74 if (edid) { in intel_ddc_get_modes() 75 drm_mode_connector_update_edid_property(connector, edid); in intel_ddc_get_modes() 76 ret = drm_add_edid_modes(connector, edid); in intel_ddc_get_modes() 78 kfree(edid); in intel_ddc_get_modes()
|
D | intel_hdmi.c | 217 struct edid *edid; in intel_hdmi_detect() local 222 edid = drm_get_edid(connector, in intel_hdmi_detect() 225 if (edid) { in intel_hdmi_detect() 226 if (edid->input & DRM_EDID_INPUT_DIGITAL) { in intel_hdmi_detect() 228 intel_hdmi->has_hdmi_sink = drm_detect_hdmi_monitor(edid); in intel_hdmi_detect() 229 intel_hdmi->has_audio = drm_detect_monitor_audio(edid); in intel_hdmi_detect() 232 kfree(edid); in intel_hdmi_detect() 261 struct edid *edid; in intel_hdmi_detect_audio() local 264 edid = drm_get_edid(connector, in intel_hdmi_detect_audio() 266 if (edid) { in intel_hdmi_detect_audio() [all …]
|
D | intel_sdvo.c | 1290 static struct edid * 1298 static struct edid * 1312 struct edid *edid; in intel_sdvo_hdmi_sink_detect() local 1314 edid = intel_sdvo_get_edid(connector); in intel_sdvo_hdmi_sink_detect() 1316 if (edid == NULL && intel_sdvo_multifunc_encoder(intel_sdvo)) { in intel_sdvo_hdmi_sink_detect() 1325 edid = intel_sdvo_get_edid(connector); in intel_sdvo_hdmi_sink_detect() 1326 if (edid) in intel_sdvo_hdmi_sink_detect() 1333 if (edid == NULL) in intel_sdvo_hdmi_sink_detect() 1341 if (edid == NULL) in intel_sdvo_hdmi_sink_detect() 1342 edid = intel_sdvo_get_analog_edid(connector); in intel_sdvo_hdmi_sink_detect() [all …]
|
D | intel_lvds.c | 47 struct edid *edid; member 494 if (intel_lvds->edid) in intel_lvds_get_modes() 495 return drm_add_edid_modes(connector, intel_lvds->edid); in intel_lvds_get_modes() 936 intel_lvds->edid = drm_get_edid(connector, in intel_lvds_init() 938 if (intel_lvds->edid) { in intel_lvds_init() 940 intel_lvds->edid)) { in intel_lvds_init() 942 intel_lvds->edid); in intel_lvds_init() 944 kfree(intel_lvds->edid); in intel_lvds_init() 945 intel_lvds->edid = NULL; in intel_lvds_init() 948 if (!intel_lvds->edid) { in intel_lvds_init()
|
D | intel_crt.c | 282 struct edid *edid; in intel_crt_detect_ddc() local 285 edid = drm_get_edid(connector, in intel_crt_detect_ddc() 292 if (edid != NULL) { in intel_crt_detect_ddc() 293 is_digital = edid->input & DRM_EDID_INPUT_DIGITAL; in intel_crt_detect_ddc() 295 kfree(edid); in intel_crt_detect_ddc()
|
/linux-2.6.39/drivers/gpu/drm/nouveau/ |
D | nouveau_connector.c | 89 if (nv_connector->edid && nv_connector->edid->revision >= 4) { in nouveau_connector_bpp() 90 u8 bpc = ((nv_connector->edid->input & 0x70) >> 3) + 4; in nouveau_connector_bpp() 123 kfree(nv_connector->edid); in nouveau_connector_destroy() 179 const void *edid = of_get_property(cn, "EDID", NULL); in nouveau_connector_of_detect() local 182 if (nv_encoder->dcb->i2c_index == idx && edid) { in nouveau_connector_of_detect() 183 nv_connector->edid = in nouveau_connector_of_detect() 184 kmemdup(edid, EDID_LENGTH, GFP_KERNEL); in nouveau_connector_of_detect() 240 if (nv_connector->edid) { in nouveau_connector_detect() 242 kfree(nv_connector->edid); in nouveau_connector_detect() 243 nv_connector->edid = NULL; in nouveau_connector_detect() [all …]
|
D | nouveau_connector.h | 42 struct edid *edid; member
|
D | nouveau_acpi.c | 277 void *edid; in nouveau_acpi_edid() local 296 ret = acpi_video_get_edid(acpidev, type, -1, &edid); in nouveau_acpi_edid() 300 nv_connector->edid = kmemdup(edid, EDID_LENGTH, GFP_KERNEL); in nouveau_acpi_edid()
|
/linux-2.6.39/drivers/video/omap2/dss/ |
D | hdmi.c | 44 u8 edid[HDMI_EDID_MAX_LENGTH]; member 545 static void get_horz_vert_timing_info(int current_descriptor_addrs, u8 *edid , in get_horz_vert_timing_info() argument 549 timings->x_res = (((edid[current_descriptor_addrs + 4] & 0xF0) << 4) | in get_horz_vert_timing_info() 550 edid[current_descriptor_addrs + 2]); in get_horz_vert_timing_info() 551 timings->y_res = (((edid[current_descriptor_addrs + 7] & 0xF0) << 4) | in get_horz_vert_timing_info() 552 edid[current_descriptor_addrs + 5]); in get_horz_vert_timing_info() 554 timings->pixel_clock = ((edid[current_descriptor_addrs + 1] << 8) | in get_horz_vert_timing_info() 555 edid[current_descriptor_addrs]); in get_horz_vert_timing_info() 560 timings->hfp = edid[current_descriptor_addrs + 8] | in get_horz_vert_timing_info() 561 ((edid[current_descriptor_addrs + 11] & 0xc0) << 2); in get_horz_vert_timing_info() [all …]
|
/linux-2.6.39/drivers/video/nvidia/ |
D | nv_i2c.c | 155 u8 *edid = NULL; in nvidia_probe_i2c_connector() local 158 edid = fb_ddc_read(&par->chan[conn - 1].adapter); in nvidia_probe_i2c_connector() 160 if (!edid && conn == 1) { in nvidia_probe_i2c_connector() 165 edid = kmemdup(e, EDID_LENGTH, GFP_KERNEL); in nvidia_probe_i2c_connector() 168 *out_edid = edid; in nvidia_probe_i2c_connector() 170 return (edid) ? 0 : 1; in nvidia_probe_i2c_connector()
|
/linux-2.6.39/drivers/video/savage/ |
D | savagefb-i2c.c | 219 u8 *edid; in savagefb_probe_i2c_connector() local 222 edid = fb_ddc_read(&par->chan.adapter); in savagefb_probe_i2c_connector() 224 edid = NULL; in savagefb_probe_i2c_connector() 226 if (!edid) { in savagefb_probe_i2c_connector() 231 edid = kmemdup(e, EDID_LENGTH, GFP_KERNEL); in savagefb_probe_i2c_connector() 234 *out_edid = edid; in savagefb_probe_i2c_connector() 236 return (edid) ? 0 : 1; in savagefb_probe_i2c_connector()
|
/linux-2.6.39/drivers/gpu/drm/radeon/ |
D | radeon_connectors.c | 537 if (radeon_connector->edid) in radeon_lvds_detect() 541 radeon_connector->edid = drm_get_edid(&radeon_connector->base, in radeon_lvds_detect() 543 if (radeon_connector->edid) in radeon_lvds_detect() 557 if (radeon_connector->edid) in radeon_connector_destroy() 558 kfree(radeon_connector->edid); in radeon_connector_destroy() 651 if (radeon_connector->edid) { in radeon_vga_detect() 652 kfree(radeon_connector->edid); in radeon_vga_detect() 653 radeon_connector->edid = NULL; in radeon_vga_detect() 655 …radeon_connector->edid = drm_get_edid(&radeon_connector->base, &radeon_connector->ddc_bus->adapter… in radeon_vga_detect() 657 if (!radeon_connector->edid) { in radeon_vga_detect() [all …]
|
D | radeon_display.c | 737 radeon_connector->edid = drm_get_edid(&radeon_connector->base, &dig->dp_i2c_bus->adapter); in radeon_ddc_get_modes() 741 if (!radeon_connector->edid) { in radeon_ddc_get_modes() 742 …radeon_connector->edid = drm_get_edid(&radeon_connector->base, &radeon_connector->ddc_bus->adapter… in radeon_ddc_get_modes() 745 if (!radeon_connector->edid) { in radeon_ddc_get_modes() 750 radeon_connector->edid = radeon_bios_get_hardcoded_edid(rdev); in radeon_ddc_get_modes() 753 radeon_connector->edid = radeon_bios_get_hardcoded_edid(rdev); in radeon_ddc_get_modes() 755 if (radeon_connector->edid) { in radeon_ddc_get_modes() 756 drm_mode_connector_update_edid_property(&radeon_connector->base, radeon_connector->edid); in radeon_ddc_get_modes() 757 ret = drm_add_edid_modes(&radeon_connector->base, radeon_connector->edid); in radeon_ddc_get_modes() 766 struct edid *edid; in radeon_ddc_dump() local [all …]
|
/linux-2.6.39/drivers/video/aty/ |
D | radeon_i2c.c | 143 u8 *edid; in radeon_probe_i2c_connector() local 145 edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter); in radeon_probe_i2c_connector() 148 *out_edid = edid; in radeon_probe_i2c_connector() 149 if (!edid) { in radeon_probe_i2c_connector() 153 if (edid[0x14] & 0x80) { in radeon_probe_i2c_connector()
|
/linux-2.6.39/include/drm/ |
D | drm_crtc.h | 656 extern struct edid *drm_get_edid(struct drm_connector *connector, 658 extern int drm_add_edid_modes(struct drm_connector *connector, struct edid *edid); 694 struct edid *edid); 781 extern u8 *drm_find_cea_extension(struct edid *edid); 782 extern bool drm_detect_hdmi_monitor(struct edid *edid); 783 extern bool drm_detect_monitor_audio(struct edid *edid); 799 extern bool drm_edid_is_valid(struct edid *edid);
|
/linux-2.6.39/drivers/video/i810/ |
D | i810-i2c.c | 158 u8 *edid = NULL; in i810_probe_i2c_connector() local 162 edid = fb_ddc_read(&par->chan[conn].adapter); in i810_probe_i2c_connector() 168 edid = kmemdup(e, EDID_LENGTH, GFP_KERNEL); in i810_probe_i2c_connector() 172 *out_edid = edid; in i810_probe_i2c_connector() 174 return (edid) ? 0 : 1; in i810_probe_i2c_connector()
|
/linux-2.6.39/Documentation/devicetree/bindings/powerpc/fsl/ |
D | diu.txt | 15 - edid : verbatim EDID data block describing attached display. 33 edid = [edid-data];
|
/linux-2.6.39/Documentation/devicetree/bindings/fb/ |
D | sm501fb.txt | 18 - edid : verbatim EDID data block describing attached display. 33 edid = [edid-data];
|
/linux-2.6.39/include/acpi/ |
D | video.h | 21 int device_id, void **edid); 26 int device_id, void **edid) in acpi_video_get_edid() argument
|
/linux-2.6.39/drivers/video/riva/ |
D | rivafb-i2c.c | 155 u8 *edid = NULL; in riva_probe_i2c_connector() local 158 edid = fb_ddc_read(&par->chan[conn].adapter); in riva_probe_i2c_connector() 161 *out_edid = edid; in riva_probe_i2c_connector() 162 if (!edid) in riva_probe_i2c_connector()
|