| /drivers/media/i2c/adv748x/ |
| A D | adv748x-hdmi.c | 464 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv748x_hdmi_get_edid() 469 if (edid->start_block == 0 && edid->blocks == 0) { in adv748x_hdmi_get_edid() 470 edid->blocks = hdmi->edid.blocks; in adv748x_hdmi_get_edid() 474 if (edid->start_block >= hdmi->edid.blocks) in adv748x_hdmi_get_edid() 477 if (edid->start_block + edid->blocks > hdmi->edid.blocks) in adv748x_hdmi_get_edid() 478 edid->blocks = hdmi->edid.blocks - edid->start_block; in adv748x_hdmi_get_edid() 480 memcpy(edid->edid, hdmi->edid.edid + edid->start_block * 128, in adv748x_hdmi_get_edid() 543 memcpy(hdmi->edid.edid, edid->edid, 128 * edid->blocks); in adv748x_hdmi_set_edid() 544 hdmi->edid.blocks = edid->blocks; in adv748x_hdmi_set_edid() 548 edid->edid[0x16]); in adv748x_hdmi_set_edid() [all …]
|
| /drivers/gpu/drm/ |
| A D | drm_edid.c | 1711 drm_edid->edid = edid; in drm_edid_legacy_init() 2505 drm_edid->edid = edid; in _drm_edid_alloc() 2604 struct edid *edid; in drm_get_edid() local 2646 struct edid *edid; in drm_edid_read_custom() local 2797 const struct edid *edid = drm_edid->edid; in drm_edid_get_panel_id() local 2884 struct edid *edid; in drm_get_edid_switcheroo() local 3280 const struct edid *edid = drm_edid->edid; in standard_timing_level() local 3657 const struct edid *edid = drm_edid->edid; in mode_in_range() local 3929 const struct edid *edid = drm_edid->edid; in add_established_modes() local 5616 .edid = edid, in drm_edid_get_monitor_name() [all …]
|
| A D | drm_panel_backlight_quirks.c | 48 const struct drm_edid *edid) in drm_panel_min_backlight_quirk_matches() argument 53 if (!drm_edid_match(edid, &quirk->ident)) in drm_panel_min_backlight_quirk_matches() 72 int drm_get_panel_min_brightness_quirk(const struct drm_edid *edid) in drm_get_panel_min_brightness_quirk() argument 80 if (!edid) in drm_get_panel_min_brightness_quirk() 86 if (drm_panel_min_backlight_quirk_matches(quirk, edid)) in drm_get_panel_min_brightness_quirk()
|
| /drivers/video/fbdev/core/ |
| A D | fbmon.c | 223 edid[127] += 0x80; in fix_edid() 251 csum += edid[i]; in fix_edid() 253 edid[127] = 256 - csum; in fix_edid() 264 fix_edid(edid, fix); in edid_checksum() 267 csum += edid[i]; in edid_checksum() 268 all_null |= edid[i]; in edid_checksum() 284 fix_edid(edid, fix); in edid_check_header() 630 if (edid == NULL || !edid_checksum(edid) || in fb_create_modedb() 944 if (edid == NULL) in fb_edid_to_monspecs() 1506 edid = edid_info.dummy; in fb_firmware_edid() [all …]
|
| A D | fb_ddc.c | 58 unsigned char *edid = NULL; in fb_ddc_read() local 91 edid = fb_do_probe_ddc_edid(adapter); in fb_ddc_read() 111 if (edid) in fb_ddc_read() 120 return edid; in fb_ddc_read()
|
| /drivers/gpu/drm/gma500/ |
| A D | psb_intel_modes.c | 24 struct edid *edid; in psb_intel_ddc_get_modes() local 27 edid = drm_get_edid(connector, adapter); in psb_intel_ddc_get_modes() 28 if (edid) { in psb_intel_ddc_get_modes() 29 drm_connector_update_edid_property(connector, edid); in psb_intel_ddc_get_modes() 30 ret = drm_add_edid_modes(connector, edid); in psb_intel_ddc_get_modes() 31 kfree(edid); in psb_intel_ddc_get_modes()
|
| A D | cdv_intel_hdmi.c | 131 struct edid *edid = NULL; in cdv_hdmi_detect() local 134 edid = drm_get_edid(connector, connector->ddc); in cdv_hdmi_detect() 138 if (edid) { in cdv_hdmi_detect() 139 if (edid->input & DRM_EDID_INPUT_DIGITAL) { in cdv_hdmi_detect() 142 drm_detect_hdmi_monitor(edid); in cdv_hdmi_detect() 144 drm_detect_monitor_audio(edid); in cdv_hdmi_detect() 146 kfree(edid); in cdv_hdmi_detect() 212 struct edid *edid = NULL; in cdv_hdmi_get_modes() local 216 if (edid) { in cdv_hdmi_get_modes() 218 ret = drm_add_edid_modes(connector, edid); in cdv_hdmi_get_modes() [all …]
|
| A D | oaktrail_lvds.c | 299 struct edid *edid; in oaktrail_lvds_init() local 359 edid = NULL; in oaktrail_lvds_init() 364 edid = drm_get_edid(connector, i2c_adap); in oaktrail_lvds_init() 366 if (edid == NULL && dev_priv->lpc_gpio_base) { in oaktrail_lvds_init() 370 edid = drm_get_edid(connector, i2c_adap); in oaktrail_lvds_init() 385 if (edid) { in oaktrail_lvds_init() 386 drm_connector_update_edid_property(connector, edid); in oaktrail_lvds_init() 387 drm_add_edid_modes(connector, edid); in oaktrail_lvds_init() 388 kfree(edid); in oaktrail_lvds_init()
|
| A D | psb_intel_sdvo.c | 1253 struct edid *edid; in psb_intel_sdvo_hdmi_sink_detect() local 1267 if (edid) in psb_intel_sdvo_hdmi_sink_detect() 1282 if (edid == NULL) in psb_intel_sdvo_hdmi_sink_detect() 1296 kfree(edid); in psb_intel_sdvo_hdmi_sink_detect() 1345 struct edid *edid; in psb_intel_sdvo_detect() local 1356 kfree(edid); in psb_intel_sdvo_detect() 1380 struct edid *edid; in psb_intel_sdvo_get_ddc_modes() local 1391 if (edid == NULL) in psb_intel_sdvo_get_ddc_modes() 1404 kfree(edid); in psb_intel_sdvo_get_ddc_modes() 1576 struct edid *edid; in psb_intel_sdvo_detect_hdmi_audio() local [all …]
|
| /drivers/media/cec/usb/extron-da-hd-4k-plus/ |
| A D | extron-da-hd-4k-plus.c | 252 const u8 *edid = port->edid; in extron_parse_edid() local 292 edid += 128; in extron_parse_edid() 295 if (edid[0] != 0x02 || edid[1] != 0x03) in extron_parse_edid() 350 if (size < 256 || edid[0] != 0x02 || edid[1] != 0x03) in get_edid_tag_location() 1260 memset(edid->reserved, 0, sizeof(edid->reserved)); in extron_g_edid() 1271 if (edid->start_block == 0 && edid->blocks == 0) { in extron_g_edid() 1279 memcpy(edid->edid, port->edid + edid->start_block * 128, edid->blocks * 128); in extron_g_edid() 1287 memset(edid->reserved, 0, sizeof(edid->reserved)); in extron_s_edid() 1302 if (cec_get_edid_spa_location(edid->edid, edid->blocks * 128)) in extron_s_edid() 1303 v4l2_set_edid_phys_addr(edid->edid, edid->blocks * 128, 0); in extron_s_edid() [all …]
|
| /drivers/media/test-drivers/vivid/ |
| A D | vivid-vid-common.c | 1077 struct v4l2_edid *edid) in vidioc_g_edid() argument 1085 memset(edid->reserved, 0, sizeof(edid->reserved)); in vidioc_g_edid() 1105 if (edid->start_block == 0 && edid->blocks == 0) { in vidioc_g_edid() 1113 if (edid->blocks > dev_rx->edid_blocks - edid->start_block) in vidioc_g_edid() 1114 edid->blocks = dev_rx->edid_blocks - edid->start_block; in vidioc_g_edid() 1116 memcpy(edid->edid, dev_rx->edid + edid->start_block * 128, edid->blocks * 128); in vidioc_g_edid() 1122 loc < (edid->start_block + edid->blocks) * 128) { in vidioc_g_edid() 1127 edid->edid[loc] = adap->phys_addr >> 8; in vidioc_g_edid() 1128 edid->edid[loc + 1] = adap->phys_addr & 0xff; in vidioc_g_edid() 1133 sum += edid->edid[i]; in vidioc_g_edid() [all …]
|
| /drivers/gpu/drm/i915/gvt/ |
| A D | edid.c | 60 if (edid->state == I2C_NOT_SPECIFIED || !edid->target_selected) { in edid_get_byte() 69 if (!edid->edid_available) { in edid_get_byte() 76 intel_vgpu_port(vgpu, edid->port)->edid; in edid_get_byte() 79 edid->current_edid_read++; in edid_get_byte() 574 edid->state = I2C_NOT_SPECIFIED; in intel_vgpu_init_i2c_edid() 576 edid->port = -1; in intel_vgpu_init_i2c_edid() 577 edid->target_selected = false; in intel_vgpu_init_i2c_edid() 578 edid->edid_available = false; in intel_vgpu_init_i2c_edid() 579 edid->current_edid_read = 0; in intel_vgpu_init_i2c_edid() 583 edid->aux_ch.i2c_over_aux_ch = false; in intel_vgpu_init_i2c_edid() [all …]
|
| /drivers/media/i2c/ |
| A D | adv7511-v4l2.c | 561 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local 591 edid->blocks); in adv7511_log_status() 1187 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid() 1192 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid() 1193 edid->blocks = state->edid.blocks; in adv7511_get_edid() 1200 if (edid->start_block >= state->edid.blocks) in adv7511_get_edid() 1203 if (edid->start_block + edid->blocks > state->edid.blocks) in adv7511_get_edid() 1204 edid->blocks = state->edid.blocks - edid->start_block; in adv7511_get_edid() 1206 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid() 1687 if (state->edid.blocks > state->edid.segments * 2) { in adv7511_check_edid_status() [all …]
|
| A D | adv7604.c | 2292 data = state->edid.edid; in adv76xx_get_edid() 2309 if (edid->start_block + edid->blocks > state->edid.blocks) in adv76xx_get_edid() 2310 edid->blocks = state->edid.blocks - edid->start_block; in adv76xx_get_edid() 2312 memcpy(edid->edid, data + edid->start_block * 128, edid->blocks * 128); in adv76xx_get_edid() 2356 pa = v4l2_get_edid_phys_addr(edid->edid, edid->blocks * 128, &spa_loc); in adv76xx_set_edid() 2367 pa = (edid->edid[spa_loc] << 8) | edid->edid[spa_loc + 1]; in adv76xx_set_edid() 2410 memcpy(state->edid.edid, edid->edid, 128 * edid->blocks); in adv76xx_set_edid() 2411 state->edid.blocks = edid->blocks; in adv76xx_set_edid() 2413 edid->edid[0x16]); in adv76xx_set_edid() 2414 state->edid.present |= 1 << edid->pad; in adv76xx_set_edid() [all …]
|
| A D | tda1997x.c | 276 } edid; member 1846 memset(edid->reserved, 0, sizeof(edid->reserved)); in tda1997x_get_edid() 1848 if (edid->start_block == 0 && edid->blocks == 0) { in tda1997x_get_edid() 1849 edid->blocks = state->edid.blocks; in tda1997x_get_edid() 1856 if (edid->start_block >= state->edid.blocks) in tda1997x_get_edid() 1859 if (edid->start_block + edid->blocks > state->edid.blocks) in tda1997x_get_edid() 1860 edid->blocks = state->edid.blocks - edid->start_block; in tda1997x_get_edid() 1862 memcpy(edid->edid, state->edid.edid + edid->start_block * 128, in tda1997x_get_edid() 1874 memset(edid->reserved, 0, sizeof(edid->reserved)); in tda1997x_set_edid() 1902 memcpy(state->edid.edid, edid->edid, 256); in tda1997x_set_edid() [all …]
|
| A D | tc358743.c | 1777 memset(edid->reserved, 0, sizeof(edid->reserved)); in tc358743_g_edid() 1779 if (edid->pad != 0) in tc358743_g_edid() 1782 if (edid->start_block == 0 && edid->blocks == 0) { in tc358743_g_edid() 1794 if (edid->start_block + edid->blocks > state->edid_blocks_written) in tc358743_g_edid() 1795 edid->blocks = state->edid_blocks_written - edid->start_block; in tc358743_g_edid() 1797 i2c_rd(sd, EDID_RAM + (edid->start_block * EDID_BLOCK_SIZE), edid->edid, in tc358743_g_edid() 1813 __func__, edid->pad, edid->start_block, edid->blocks); in tc358743_s_edid() 1815 memset(edid->reserved, 0, sizeof(edid->reserved)); in tc358743_s_edid() 1817 if (edid->pad != 0) in tc358743_s_edid() 1827 pa = cec_get_edid_phys_addr(edid->edid, edid->blocks * 128, NULL); in tc358743_s_edid() [all …]
|
| /drivers/gpu/drm/amd/display/amdgpu_dm/ |
| A D | amdgpu_dm_helpers.c | 51 static u32 edid_extract_panel_id(struct edid *edid) in edid_extract_panel_id() argument 104 const struct dc_edid *edid, in dm_helpers_parse_edid_caps() argument 110 struct edid *edid_buf = edid ? (struct edid *) edid->raw_edid : NULL; in dm_helpers_parse_edid_caps() 119 if (!edid_caps || !edid) in dm_helpers_parse_edid_caps() 141 sad_count = drm_edid_to_sad((struct edid *) edid->raw_edid, &sads); in dm_helpers_parse_edid_caps() 155 sadb_count = drm_edid_to_speaker_allocation((struct edid *) edid->raw_edid, &sadb); in dm_helpers_parse_edid_caps() 935 struct edid *edid; in dm_helpers_probe_acpi_edid() local 953 if (edid->revision < 4 || !(edid->input & DRM_EDID_INPUT_DIGITAL) || in dm_helpers_probe_acpi_edid() 963 kfree(edid); in dm_helpers_probe_acpi_edid() 1001 const struct edid *edid; in dm_helpers_read_local_edid() local [all …]
|
| /drivers/gpu/drm/nouveau/ |
| A D | nouveau_connector.c | 551 struct edid *edid) in nouveau_connector_set_edid() argument 553 if (nv_connector->edid != edid) { in nouveau_connector_set_edid() 554 struct edid *old_edid = nv_connector->edid; in nouveau_connector_set_edid() 558 nv_connector->edid = edid; in nouveau_connector_set_edid() 689 struct edid *edid = NULL; in nouveau_connector_detect_lvds() local 700 edid = nv_connector->edid; in nouveau_connector_detect_lvds() 716 if (edid) { in nouveau_connector_detect_lvds() 736 edid = (struct edid *)nouveau_bios_embedded_edid(dev); in nouveau_connector_detect_lvds() 737 if (edid) { in nouveau_connector_detect_lvds() 738 edid = kmemdup(edid, EDID_LENGTH, GFP_KERNEL); in nouveau_connector_detect_lvds() [all …]
|
| /drivers/media/platform/synopsys/hdmirx/ |
| A D | snps_hdmirx.c | 520 (const struct edid *)edid); in hdmirx_write_edid_data() 560 memset(edid->reserved, 0, sizeof(edid->reserved)); in hdmirx_write_edid() 561 memset(hdmirx_dev->edid, 0, sizeof(hdmirx_dev->edid)); in hdmirx_write_edid() 563 hdmirx_write_edid_data(hdmirx_dev, edid->edid, edid->blocks); in hdmirx_write_edid() 566 memcpy(hdmirx_dev->edid, edid->edid, edid->blocks * EDID_BLOCK_SIZE); in hdmirx_write_edid() 656 if (edid->pad) in hdmirx_set_edid() 668 phys_addr = cec_get_edid_phys_addr(edid->edid, in hdmirx_set_edid() 704 memset(edid->reserved, 0, sizeof(edid->reserved)); in hdmirx_get_edid() 709 if (!edid->start_block && !edid->blocks) { in hdmirx_get_edid() 723 memcpy(edid->edid, hdmirx_dev->edid, edid->blocks * EDID_BLOCK_SIZE); in hdmirx_get_edid() [all …]
|
| /drivers/video/fbdev/nvidia/ |
| A 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()
|
| /drivers/video/fbdev/savage/ |
| A D | savagefb-i2c.c | 221 u8 *edid; in savagefb_probe_i2c_connector() local 224 edid = fb_ddc_read(&par->chan.adapter); in savagefb_probe_i2c_connector() 226 edid = NULL; in savagefb_probe_i2c_connector() 228 if (!edid) { in savagefb_probe_i2c_connector() 233 edid = kmemdup(e, EDID_LENGTH, GFP_KERNEL); in savagefb_probe_i2c_connector() 236 *out_edid = edid; in savagefb_probe_i2c_connector() 238 return (edid) ? 0 : 1; in savagefb_probe_i2c_connector()
|
| /drivers/media/cec/core/ |
| A D | cec-notifier.c | 205 const struct edid *edid) in cec_notifier_set_phys_addr_from_edid() argument 212 if (edid && edid->extensions) in cec_notifier_set_phys_addr_from_edid() 213 pa = cec_get_edid_phys_addr((const u8 *)edid, in cec_notifier_set_phys_addr_from_edid() 214 EDID_LENGTH * (edid->extensions + 1), NULL); in cec_notifier_set_phys_addr_from_edid()
|
| /drivers/media/v4l2-core/ |
| A D | v4l2-dv-timings.c | 1033 if (!edid || !max_blocks) in v4l2_num_edid_blocks() 1042 blocks = edid[126] + 1; in v4l2_num_edid_blocks() 1047 edid[133] == 0x78 && // Identifier for the EEODB in v4l2_num_edid_blocks() 1048 (edid[132] & 0xe0) == 0xe0 && // Tag Code == 7 in v4l2_num_edid_blocks() 1049 (edid[132] & 0x1f) >= 2 && // Length >= 2 in v4l2_num_edid_blocks() 1051 blocks = edid[134] + 1; in v4l2_num_edid_blocks() 1076 return (edid[loc] << 8) | edid[loc + 1]; in v4l2_get_edid_phys_addr() 1100 edid[loc] = phys_addr >> 8; in v4l2_set_edid_phys_addr() 1101 edid[loc + 1] = phys_addr & 0xff; in v4l2_set_edid_phys_addr() 1106 sum += edid[i]; in v4l2_set_edid_phys_addr() [all …]
|
| /drivers/gpu/drm/vboxvideo/ |
| A D | vbox_mode.c | 690 edid[12] = width & 0xff; in vbox_set_edid() 691 edid[13] = width >> 8; in vbox_set_edid() 692 edid[14] = height & 0xff; in vbox_set_edid() 693 edid[15] = height >> 8; in vbox_set_edid() 694 edid[54] = clock & 0xff; in vbox_set_edid() 695 edid[55] = clock >> 8; in vbox_set_edid() 696 edid[56] = width & 0xff; in vbox_set_edid() 697 edid[58] = (width >> 4) & 0xf0; in vbox_set_edid() 698 edid[59] = height & 0xff; in vbox_set_edid() 701 sum += edid[i]; in vbox_set_edid() [all …]
|
| /drivers/video/fbdev/aty/ |
| A D | radeon_i2c.c | 144 u8 *edid; in radeon_probe_i2c_connector() local 146 edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter); in radeon_probe_i2c_connector() 149 *out_edid = edid; in radeon_probe_i2c_connector() 150 if (!edid) { in radeon_probe_i2c_connector() 154 if (edid[0x14] & 0x80) { in radeon_probe_i2c_connector()
|