/linux-master/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_connectors.c | 249 struct edid *amdgpu_connector_edid(struct drm_connector *connector) 254 if (amdgpu_connector->edid) { 255 return amdgpu_connector->edid; 257 struct edid *edid = kmemdup(edid_blob->data, edid_blob->length, GFP_KERNEL); local 259 if (edid) 260 amdgpu_connector->edid = edid; 262 return amdgpu_connector->edid; 265 static struct edid * [all...] |
/linux-master/drivers/gpu/drm/ast/ |
H A D | ast_mode.c | 1351 struct edid *edid; local 1363 edid = drm_get_edid(connector, &ast_vga_connector->i2c->adapter); 1364 if (!edid) 1369 count = drm_add_edid_modes(connector, edid); 1370 kfree(edid); 1457 struct edid *edid; local 1469 edid = drm_get_edid(connector, &ast_sil164_connector->i2c->adapter); 1470 if (!edid) 1560 void *edid; local 1658 void *edid; local [all...] |
/linux-master/drivers/gpu/drm/tiny/ |
H A D | bochs.c | 88 struct edid *edid; member in struct:bochs_device 197 /* check header to detect whenever edid support is enabled in qemu */ 202 kfree(bochs->edid); 203 bochs->edid = drm_do_get_edid(&bochs->connector, 205 if (bochs->edid == NULL) 306 kfree(bochs->edid); 478 if (bochs->edid) 479 count = drm_add_edid_modes(connector, bochs->edid); 510 if (bochs->edid) { [all...] |
/linux-master/drivers/gpu/drm/gma500/ |
H A D | psb_intel_sdvo.c | 1231 static struct edid * 1239 static struct edid * 1253 struct edid *edid; local 1255 edid = psb_intel_sdvo_get_edid(connector); 1257 if (edid == NULL && psb_intel_sdvo_multifunc_encoder(psb_intel_sdvo)) { 1266 edid = psb_intel_sdvo_get_edid(connector); 1267 if (edid) 1274 if (edid == NULL) 1279 * When there is no edid an 1345 struct edid *edid; local 1380 struct edid *edid; local 1576 struct edid *edid; local [all...] |
H A D | cdv_intel_dp.c | 1695 struct edid *edid = NULL; local 1712 edid = drm_get_edid(connector, &intel_dp->adapter); 1713 if (edid) { 1714 intel_dp->has_audio = drm_detect_monitor_audio(edid); 1715 kfree(edid); 1728 struct edid *edid = NULL; local 1733 edid = drm_get_edid(connector, &intel_dp->adapter); 1734 if (edid) { 1784 struct edid *edid; local [all...] |
/linux-master/drivers/gpu/drm/imx/ipuv3/ |
H A D | parallel-display.c | 37 void *edid; member in struct:imx_parallel_display 65 if (imxpd->edid) { 66 drm_connector_update_edid_property(connector, imxpd->edid); 67 num_modes = drm_add_edid_modes(connector, imxpd->edid); 332 edidp = of_get_property(np, "edid", &edid_len); 334 imxpd->edid = devm_kmemdup(dev, edidp, edid_len, GFP_KERNEL);
|
H A D | imx-ldb.c | 75 void *edid; member in struct:imx_ldb_channel 145 if (!imx_ldb_ch->edid && imx_ldb_ch->ddc) 146 imx_ldb_ch->edid = drm_get_edid(connector, imx_ldb_ch->ddc); 148 if (imx_ldb_ch->edid) { 150 imx_ldb_ch->edid); 151 num_modes = drm_add_edid_modes(connector, imx_ldb_ch->edid); 575 edidp = of_get_property(child, "edid", &edid_len); 577 channel->edid = kmemdup(edidp, edid_len, GFP_KERNEL); 578 if (!channel->edid) 747 kfree(channel->edid); [all...] |
H A D | imx-tve.c | 204 struct edid *edid; local 210 edid = drm_get_edid(connector, tve->ddc); 211 if (edid) { 212 drm_connector_update_edid_property(connector, edid); 213 ret = drm_add_edid_modes(connector, edid); 214 kfree(edid);
|
/linux-master/drivers/gpu/drm/vboxvideo/ |
H A D | vbox_mode.c | 645 unsigned char edid[EDID_SIZE] = { local 690 edid[12] = width & 0xff; 691 edid[13] = width >> 8; 692 edid[14] = height & 0xff; 693 edid[15] = height >> 8; 694 edid[54] = clock & 0xff; 695 edid[55] = clock >> 8; 696 edid[56] = width & 0xff; 697 edid[58] = (width >> 4) & 0xf0; 698 edid[5 [all...] |
/linux-master/drivers/video/fbdev/ |
H A D | udlfb.c | 28 #include "edid.h" 785 static int dlfb_get_edid(struct dlfb_data *dlfb, char *edid, int len) argument 805 edid[i] = rbuf[1]; 824 void __user *edid = (void __user *)arg; local 825 if (copy_to_user(edid, dlfb->edid, dlfb->edid_size)) 962 kfree(dlfb->edid); 1245 char *edid; local 1258 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); 1259 if (!edid) { [all...] |
H A D | smscufx.c | 32 #include "edid.h" 102 u8 *edid; /* null until we read edid from hw or get from sysfs */ member in struct:ufx_data 942 u8 __user *edid = (u8 __user *)arg; local 943 if (copy_to_user(edid, dev->edid, dev->edid_size)) 1394 static int ufx_read_edid(struct ufx_data *dev, u8 *edid, int edid_len) argument 1397 u32 *edid_u32 = (u32 *)edid; 1407 memset(edid, 0xff, EDID_LENGTH); 1431 if (edid[ 1457 u8 *edid; local [all...] |
/linux-master/drivers/media/i2c/ |
H A D | tc358743.c | 90 /* edid */ 1726 struct v4l2_subdev_edid *edid) 1730 memset(edid->reserved, 0, sizeof(edid->reserved)); 1732 if (edid->pad != 0) 1735 if (edid->start_block == 0 && edid->blocks == 0) { 1736 edid->blocks = state->edid_blocks_written; 1743 if (edid->start_block >= state->edid_blocks_written || 1744 edid 1725 tc358743_g_edid(struct v4l2_subdev *sd, struct v4l2_subdev_edid *edid) argument 1756 tc358743_s_edid(struct v4l2_subdev *sd, struct v4l2_subdev_edid *edid) argument [all...] |
H A D | adv7842.c | 101 u8 edid[512]; member in struct:adv7842_state::__anon1035 106 u8 edid[128]; member in struct:adv7842_state::__anon1036 706 const u8 *edid = state->vga_edid.edid; local 722 /* edid segment pointer '1' for VGA port */ 728 edid + i); 743 v4l_err(client, "error enabling edid on VGA port\n"); 757 const u8 *edid = state->hdmi_edid.edid; local 778 pa = v4l2_get_edid_phys_addr(edid, block 2444 adv7842_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) argument [all...] |
/linux-master/drivers/gpu/drm/bridge/analogix/ |
H A D | analogix-anx6345.c | 50 struct edid *edid; member in struct:anx6345 461 if (!anx6345->edid) { 473 anx6345->edid = drm_get_edid(connector, &anx6345->aux.ddc); 474 if (!anx6345->edid) 478 anx6345->edid); 485 num_modes += drm_add_edid_modes(connector, anx6345->edid); 796 kfree(anx6345->edid);
|
H A D | analogix-anx78xx.c | 70 struct edid *edid; member in struct:anx78xx 833 if (anx78xx->edid) 834 return drm_add_edid_modes(connector, anx78xx->edid); 844 anx78xx->edid = drm_get_edid(connector, &anx78xx->aux.ddc); 845 if (!anx78xx->edid) { 851 anx78xx->edid); 857 num_modes = drm_add_edid_modes(connector, anx78xx->edid); 1094 kfree(anx78xx->edid); 1095 anx78xx->edid [all...] |
/linux-master/drivers/gpu/drm/udl/ |
H A D | udl_modeset.c | 420 drm_connector_update_edid_property(connector, udl_connector->edid); 421 if (udl_connector->edid) 422 return drm_add_edid_modes(connector, udl_connector->edid); 480 kfree(udl_connector->edid); 481 udl_connector->edid = NULL; 486 udl_connector->edid = drm_do_get_edid(connector, udl_get_edid_block, udl); 487 if (udl_connector->edid) 500 kfree(udl_connector->edid);
|
/linux-master/drivers/gpu/drm/sun4i/ |
H A D | sun4i_hdmi_enc.c | 217 struct edid *edid; local 220 edid = drm_get_edid(connector, hdmi->ddc_i2c ?: hdmi->i2c); 221 if (!edid) 227 drm_connector_update_edid_property(connector, edid); 228 cec_s_phys_addr_from_edid(hdmi->cec_adap, edid); 229 ret = drm_add_edid_modes(connector, edid); 230 kfree(edid);
|
/linux-master/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm.h | 640 struct edid *edid; member in struct:amdgpu_dm_connector 912 struct edid *edid);
|
/linux-master/drivers/gpu/drm/tegra/ |
H A D | drm.h | 28 struct edid; 136 const struct edid *edid; member in struct:tegra_output
|
/linux-master/drivers/gpu/drm/gud/ |
H A D | gud_connector.c | 224 struct edid *edid = NULL; local 241 edid = drm_do_get_edid(connector, gud_connector_get_edid_block, &edid_ctx); 245 drm_connector_update_edid_property(connector, edid); 247 if (edid && edid_ctx.edid_override) 279 num_modes = drm_add_edid_modes(connector, edid); 282 kfree(edid);
|
/linux-master/drivers/gpu/drm/radeon/ |
H A D | radeon_connectors.c | 258 struct edid *radeon_connector_edid(struct drm_connector *connector) 263 if (radeon_connector->edid) { 264 return radeon_connector->edid; 266 struct edid *edid = kmemdup(edid_blob->data, edid_blob->length, GFP_KERNEL); local 267 if (edid) 268 radeon_connector->edid = edid; 270 return radeon_connector->edid; 279 if (radeon_connector->edid) [all...] |
/linux-master/drivers/gpu/drm/bridge/ |
H A D | sil-sii8620.c | 85 struct edid *edid; member in struct:sii8620 496 if (!ctx->edid) { 503 if (drm_detect_hdmi_monitor(ctx->edid)) 508 drm_edid_get_monitor_name(ctx->edid, sink_name, ARRAY_SIZE(sink_name)); 771 u8 *edid; local 796 edid = kmalloc(EDID_LENGTH, GFP_KERNEL); 797 if (!edid) { 823 kfree(edid); 824 edid [all...] |
/linux-master/drivers/media/v4l2-core/ |
H A D | v4l2-dv-timings.c | 1011 * @edid: pointer to the EDID data 1019 u16 v4l2_get_edid_phys_addr(const u8 *edid, unsigned int size, argument 1022 unsigned int loc = cec_get_edid_spa_location(edid, size); 1028 return (edid[loc] << 8) | edid[loc + 1]; 1035 * @edid: pointer to the EDID data 1044 void v4l2_set_edid_phys_addr(u8 *edid, unsigned int size, u16 phys_addr) argument 1046 unsigned int loc = cec_get_edid_spa_location(edid, size); 1052 edid[loc] = phys_addr >> 8; 1053 edid[lo [all...] |
/linux-master/drivers/media/platform/renesas/rcar-vin/ |
H A D | rcar-v4l2.c | 778 static int rvin_g_edid(struct file *file, void *fh, struct v4l2_edid *edid) argument 784 if (edid->pad) 787 edid->pad = vin->parallel.sink_pad; 789 ret = v4l2_subdev_call(sd, pad, get_edid, edid); 791 edid->pad = 0; 796 static int rvin_s_edid(struct file *file, void *fh, struct v4l2_edid *edid) argument 802 if (edid->pad) 805 edid->pad = vin->parallel.sink_pad; 807 ret = v4l2_subdev_call(sd, pad, set_edid, edid); 809 edid [all...] |
/linux-master/drivers/media/test-drivers/vivid/ |
H A D | vivid-vid-cap.c | 1541 struct v4l2_edid *edid) 1549 memset(edid->reserved, 0, sizeof(edid->reserved)); 1550 if (edid->pad >= dev->num_inputs) 1552 if (dev->input_type[edid->pad] != HDMI || edid->start_block) 1554 if (edid->blocks == 0) { 1561 if (edid->blocks > dev->edid_max_blocks) { 1562 edid->blocks = dev->edid_max_blocks; 1565 phys_addr = cec_get_edid_phys_addr(edid 1540 vidioc_s_edid(struct file *file, void *_fh, struct v4l2_edid *edid) argument [all...] |