Lines Matching refs:edid

114 	struct adv7511_state_edid edid;  member
543 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local
572 edid->segments ? "found" : "no", in adv7511_log_status()
573 edid->blocks); in adv7511_log_status()
1165 static int adv7511_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv7511_get_edid() argument
1169 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid()
1171 if (edid->pad != 0) in adv7511_get_edid()
1174 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
1175 edid->blocks = state->edid.blocks; in adv7511_get_edid()
1179 if (state->edid.blocks == 0) in adv7511_get_edid()
1182 if (edid->start_block >= state->edid.blocks) in adv7511_get_edid()
1185 if (edid->start_block + edid->blocks > state->edid.blocks) in adv7511_get_edid()
1186 edid->blocks = state->edid.blocks - edid->start_block; in adv7511_get_edid()
1188 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid()
1189 128 * edid->blocks); in adv7511_get_edid()
1472 if (state->edid.read_retries) { in adv7511_edid_handler()
1473 state->edid.read_retries--; in adv7511_edid_handler()
1556 …if ((status & MASK_ADV7511_HPD_DETECT) && ((status & MASK_ADV7511_MSEN_DETECT) || state->edid.segm… in adv7511_check_monitor_present_status()
1568 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1573 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1583 memset(&state->edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_check_monitor_present_status()
1601 u32 blocks = state->edid.blocks; in edid_verify_crc()
1602 u8 *data = state->edid.data; in edid_verify_crc()
1617 u8 *data = state->edid.data; in edid_verify_header()
1630 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in adv7511_check_edid_status()
1632 if (state->edid.complete) in adv7511_check_edid_status()
1645 err = adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1647 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1649 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
1651 __func__, state->edid.blocks); in adv7511_check_edid_status()
1665 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1667 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in adv7511_check_edid_status()
1669 v4l2_dbg(1, debug, sd, "%s: request segment %d\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1671 adv7511_wr(sd, 0xc4, state->edid.segments); in adv7511_check_edid_status()
1672 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_edid_status()
1677 v4l2_dbg(1, debug, sd, "%s: edid complete with %d segment(s)\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1678 state->edid.complete = true; in adv7511_check_edid_status()
1679 ed.phys_addr = cec_get_edid_phys_addr(state->edid.data, in adv7511_check_edid_status()
1680 state->edid.segments * 256, in adv7511_check_edid_status()
1725 struct adv7511_state_edid *edid = &state->edid; in adv7511_init_setup() local
1740 memset(edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_init_setup()