Lines Matching refs:edid

86 	struct ad9389b_state_edid edid;
343 struct ad9389b_state_edid *edid = &state->edid;
376 edid->segments ? "found" : "no", edid->blocks);
664 static int ad9389b_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid)
668 if (edid->pad != 0)
670 if (edid->blocks == 0 || edid->blocks > 256)
672 if (!state->edid.segments) {
676 if (edid->start_block >= state->edid.segments * 2)
678 if (edid->blocks + edid->start_block >= state->edid.segments * 2)
679 edid->blocks = state->edid.segments * 2 - edid->start_block;
680 memcpy(edid->edid, &state->edid.data[edid->start_block * 128],
681 128 * edid->blocks);
793 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment);
828 if (state->edid.read_retries) {
829 state->edid.read_retries--;
830 v4l2_dbg(1, debug, sd, "%s: edid read failed\n", __func__);
842 v4l2_dbg(1, debug, sd, "%s: no edid found\n", __func__);
921 state->edid.read_retries = EDID_MAX_RETRIES;
928 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid));
934 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0);
960 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid));
979 u32 blocks = state->edid.blocks;
980 u8 *data = state->edid.data;
996 u8 *data = state->edid.data;
1016 v4l2_dbg(1, debug, sd, "%s: edid ready (retries: %d)\n",
1017 __func__, EDID_MAX_RETRIES - state->edid.read_retries);
1024 v4l2_err(sd, "edid segment number too big\n");
1028 ad9389b_edid_rd(sd, 256, &state->edid.data[segment * 256]);
1030 &state->edid.data[segment * 256]);
1032 state->edid.blocks = state->edid.data[0x7e] + 1;
1034 __func__, state->edid.blocks);
1038 /* edid crc error, force reread of edid segment */
1039 v4l2_err(sd, "%s: edid crc or header error\n", __func__);
1045 state->edid.segments = segment + 1;
1046 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) {
1049 __func__, state->edid.segments);
1051 ad9389b_wr(sd, 0xc4, state->edid.segments);
1052 state->edid.read_retries = EDID_MAX_RETRIES;
1062 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0);
1071 struct ad9389b_state_edid *edid = &state->edid;
1078 memset(edid, 0, sizeof(struct ad9389b_state_edid));
1153 v4l2_err(sd, "failed to register edid i2c client\n");