Lines Matching refs:segment
910 int segment, u8 *buf) in ad9389b_dbg_dump_edid() argument
917 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment); in ad9389b_dbg_dump_edid()
964 ed.segment = ad9389b_rd(sd, 0xc4); in ad9389b_edid_handler()
1088 static bool edid_segment_verify_crc(struct v4l2_subdev *sd, u32 segment) in edid_segment_verify_crc() argument
1094 if (edid_block_verify_crc(&data[segment * 256])) { in edid_segment_verify_crc()
1095 if ((segment + 1) * 2 <= blocks) in edid_segment_verify_crc()
1096 return edid_block_verify_crc(&data[segment * 256 + 128]); in edid_segment_verify_crc()
1106 int segment; in ad9389b_check_edid_status() local
1115 segment = ad9389b_rd(sd, 0xc4); in ad9389b_check_edid_status()
1116 if (segment >= EDID_MAX_SEGM) { in ad9389b_check_edid_status()
1120 v4l2_dbg(1, debug, sd, "%s: got segment %d\n", __func__, segment); in ad9389b_check_edid_status()
1121 ad9389b_edid_rd(sd, 256, &state->edid.data[segment * 256]); in ad9389b_check_edid_status()
1122 ad9389b_dbg_dump_edid(2, debug, sd, segment, in ad9389b_check_edid_status()
1123 &state->edid.data[segment * 256]); in ad9389b_check_edid_status()
1124 if (segment == 0) { in ad9389b_check_edid_status()
1129 if (!edid_segment_verify_crc(sd, segment)) { in ad9389b_check_edid_status()
1136 state->edid.segments = segment + 1; in ad9389b_check_edid_status()
1151 ed.segment = 0; in ad9389b_check_edid_status()