Lines Matching refs:edid

111 	struct adv7511_state_edid edid;  member
420 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local
448 edid->segments ? "found" : "no", in adv7511_log_status()
449 edid->blocks); in adv7511_log_status()
783 static int adv7511_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv7511_get_edid() argument
787 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid()
789 if (edid->pad != 0) in adv7511_get_edid()
792 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
793 edid->blocks = state->edid.segments * 2; in adv7511_get_edid()
797 if (state->edid.segments == 0) in adv7511_get_edid()
800 if (edid->start_block >= state->edid.segments * 2) in adv7511_get_edid()
803 if (edid->start_block + edid->blocks > state->edid.segments * 2) in adv7511_get_edid()
804 edid->blocks = state->edid.segments * 2 - edid->start_block; in adv7511_get_edid()
806 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid()
807 128 * edid->blocks); in adv7511_get_edid()
1080 if (state->edid.read_retries) { in adv7511_edid_handler()
1081 state->edid.read_retries--; in adv7511_edid_handler()
1164 …if ((status & MASK_ADV7511_HPD_DETECT) && ((status & MASK_ADV7511_MSEN_DETECT) || state->edid.segm… in adv7511_check_monitor_present_status()
1176 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1181 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1191 memset(&state->edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_check_monitor_present_status()
1209 u32 blocks = state->edid.blocks; in edid_verify_crc()
1210 uint8_t *data = state->edid.data; in edid_verify_crc()
1225 u8 *data = state->edid.data; in edid_verify_header()
1238 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in adv7511_check_edid_status()
1240 if (state->edid.complete) in adv7511_check_edid_status()
1252 adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1253 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1255 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
1256 v4l2_dbg(1, debug, sd, "%s: %d blocks in total\n", __func__, state->edid.blocks); in adv7511_check_edid_status()
1268 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1270 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in adv7511_check_edid_status()
1272 v4l2_dbg(1, debug, sd, "%s: request segment %d\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1274 adv7511_wr(sd, 0xc4, state->edid.segments); in adv7511_check_edid_status()
1275 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_edid_status()
1280 v4l2_dbg(1, debug, sd, "%s: edid complete with %d segment(s)\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1281 state->edid.complete = true; in adv7511_check_edid_status()
1301 struct adv7511_state_edid *edid = &state->edid; in adv7511_init_setup() local
1313 memset(edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_init_setup()