Lines Matching refs:edid

98 	struct ad9389b_state_edid edid;  member
356 struct ad9389b_state_edid *edid = &state->edid; in ad9389b_log_status() local
389 edid->segments ? "found" : "no", edid->blocks); in ad9389b_log_status()
677 static int ad9389b_get_edid(struct v4l2_subdev *sd, struct v4l2_edid *edid) in ad9389b_get_edid() argument
681 if (edid->pad != 0) in ad9389b_get_edid()
683 if (edid->blocks == 0 || edid->blocks > 256) in ad9389b_get_edid()
685 if (!state->edid.segments) { in ad9389b_get_edid()
689 if (edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid()
691 if (edid->blocks + edid->start_block >= state->edid.segments * 2) in ad9389b_get_edid()
692 edid->blocks = state->edid.segments * 2 - edid->start_block; in ad9389b_get_edid()
693 memcpy(edid->edid, &state->edid.data[edid->start_block * 128], in ad9389b_get_edid()
694 128 * edid->blocks); in ad9389b_get_edid()
841 if (state->edid.read_retries) { in ad9389b_edid_handler()
842 state->edid.read_retries--; in ad9389b_edid_handler()
935 state->edid.read_retries = EDID_MAX_RETRIES; in ad9389b_update_monitor_present_status()
943 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid)); in ad9389b_update_monitor_present_status()
949 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0); in ad9389b_update_monitor_present_status()
975 memset(&state->edid, 0, sizeof(struct ad9389b_state_edid)); in ad9389b_check_monitor_present_status()
994 u32 blocks = state->edid.blocks; in edid_verify_crc()
995 u8 *data = state->edid.data; in edid_verify_crc()
1011 u8 *data = state->edid.data; in edid_verify_header()
1032 __func__, EDID_MAX_RETRIES - state->edid.read_retries); in ad9389b_check_edid_status()
1043 ad9389b_edid_rd(sd, 256, &state->edid.data[segment * 256]); in ad9389b_check_edid_status()
1045 &state->edid.data[segment * 256]); in ad9389b_check_edid_status()
1047 state->edid.blocks = state->edid.data[0x7e] + 1; in ad9389b_check_edid_status()
1049 __func__, state->edid.blocks); in ad9389b_check_edid_status()
1060 state->edid.segments = segment + 1; in ad9389b_check_edid_status()
1061 if (((state->edid.data[0x7e] >> 1) + 1) > state->edid.segments) { in ad9389b_check_edid_status()
1064 __func__, state->edid.segments); in ad9389b_check_edid_status()
1066 ad9389b_wr(sd, 0xc4, state->edid.segments); in ad9389b_check_edid_status()
1067 state->edid.read_retries = EDID_MAX_RETRIES; in ad9389b_check_edid_status()
1078 v4l2_ctrl_s_ctrl(state->have_edid0_ctrl, state->edid.segments ? 0x1 : 0x0); in ad9389b_check_edid_status()
1087 struct ad9389b_state_edid *edid = &state->edid; in ad9389b_init_setup() local
1094 memset(edid, 0, sizeof(struct ad9389b_state_edid)); in ad9389b_init_setup()