Lines Matching refs:edid

120 	struct adv7511_state_edid edid;  member
571 struct adv7511_state_edid *edid = &state->edid; in adv7511_log_status() local
600 edid->segments ? "found" : "no", in adv7511_log_status()
601 edid->blocks); in adv7511_log_status()
1189 static int adv7511_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in adv7511_get_edid() argument
1193 memset(edid->reserved, 0, sizeof(edid->reserved)); in adv7511_get_edid()
1195 if (edid->pad != 0) in adv7511_get_edid()
1198 if (edid->start_block == 0 && edid->blocks == 0) { in adv7511_get_edid()
1199 edid->blocks = state->edid.blocks; in adv7511_get_edid()
1203 if (state->edid.blocks == 0) in adv7511_get_edid()
1206 if (edid->start_block >= state->edid.blocks) in adv7511_get_edid()
1209 if (edid->start_block + edid->blocks > state->edid.blocks) in adv7511_get_edid()
1210 edid->blocks = state->edid.blocks - edid->start_block; in adv7511_get_edid()
1212 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in adv7511_get_edid()
1213 128 * edid->blocks); in adv7511_get_edid()
1494 if (state->edid.read_retries) { in adv7511_edid_handler()
1495 state->edid.read_retries--; in adv7511_edid_handler()
1578 …if ((status & MASK_ADV7511_HPD_DETECT) && ((status & MASK_ADV7511_MSEN_DETECT) || state->edid.segm… in adv7511_check_monitor_present_status()
1590 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1595 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_monitor_present_status()
1605 memset(&state->edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_check_monitor_present_status()
1623 u32 blocks = state->edid.blocks; in edid_verify_crc()
1624 u8 *data = state->edid.data; in edid_verify_crc()
1639 u8 *data = state->edid.data; in edid_verify_header()
1652 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in adv7511_check_edid_status()
1654 if (state->edid.complete) in adv7511_check_edid_status()
1667 err = adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1669 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1671 state->edid.blocks = state->edid.data[0x7e] + 1; in adv7511_check_edid_status()
1673 __func__, state->edid.blocks); in adv7511_check_edid_status()
1687 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1689 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in adv7511_check_edid_status()
1691 v4l2_dbg(1, debug, sd, "%s: request segment %d\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1693 adv7511_wr(sd, 0xc4, state->edid.segments); in adv7511_check_edid_status()
1694 state->edid.read_retries = EDID_MAX_RETRIES; in adv7511_check_edid_status()
1699 v4l2_dbg(1, debug, sd, "%s: edid complete with %d segment(s)\n", __func__, state->edid.segments); in adv7511_check_edid_status()
1700 state->edid.complete = true; in adv7511_check_edid_status()
1701 ed.phys_addr = cec_get_edid_phys_addr(state->edid.data, in adv7511_check_edid_status()
1702 state->edid.segments * 256, in adv7511_check_edid_status()
1747 struct adv7511_state_edid *edid = &state->edid; in adv7511_init_setup() local
1762 memset(edid, 0, sizeof(struct adv7511_state_edid)); in adv7511_init_setup()