Lines Matching refs:segment
1144 static void adv7511_dbg_dump_edid(int lvl, int debug, struct v4l2_subdev *sd, int segment, u8 *buf) in adv7511_dbg_dump_edid() argument
1148 v4l2_dbg(lvl, debug, sd, "edid segment %d\n", segment); in adv7511_dbg_dump_edid()
1171 ed.segment = adv7511_rd(sd, 0xc4); in adv7511_notify_no_edid()
1319 static bool edid_verify_crc(struct v4l2_subdev *sd, u32 segment) in edid_verify_crc() argument
1325 if (!edid_block_verify_crc(&data[segment * 256])) in edid_verify_crc()
1327 if ((segment + 1) * 2 <= blocks) in edid_verify_crc()
1328 return edid_block_verify_crc(&data[segment * 256 + 128]); in edid_verify_crc()
1332 static bool edid_verify_header(struct v4l2_subdev *sd, u32 segment) in edid_verify_header() argument
1340 if (segment != 0) in edid_verify_header()
1357 int segment = adv7511_rd(sd, 0xc4); in adv7511_check_edid_status() local
1360 if (segment >= EDID_MAX_SEGM) { in adv7511_check_edid_status()
1364 v4l2_dbg(1, debug, sd, "%s: got segment %d\n", __func__, segment); in adv7511_check_edid_status()
1365 adv7511_edid_rd(sd, 256, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1366 adv7511_dbg_dump_edid(2, debug, sd, segment, &state->edid.data[segment * 256]); in adv7511_check_edid_status()
1367 if (segment == 0) { in adv7511_check_edid_status()
1371 if (!edid_verify_crc(sd, segment) || in adv7511_check_edid_status()
1372 !edid_verify_header(sd, segment)) { in adv7511_check_edid_status()
1381 state->edid.segments = segment + 1; in adv7511_check_edid_status()
1400 ed.segment = 0; in adv7511_check_edid_status()