Lines Matching refs:cea
3303 u8 *cea; in drm_find_cea_extension() local
3310 cea = drm_find_edid_extension(edid, CEA_EXT, &ext_index); in drm_find_cea_extension()
3311 if (cea) in drm_find_cea_extension()
3312 return cea; in drm_find_cea_extension()
4099 cea_revision(const u8 *cea) in cea_revision() argument
4108 return cea[1]; in cea_revision()
4112 cea_db_offsets(const u8 *cea, int *start, int *end) in cea_db_offsets() argument
4131 if (cea[0] == DATA_BLOCK_CTA) { in cea_db_offsets()
4137 *end = *start + cea[2]; in cea_db_offsets()
4138 } else if (cea[0] == CEA_EXT) { in cea_db_offsets()
4141 *end = cea[2]; in cea_db_offsets()
4225 #define for_each_cea_db(cea, i, start, end) \ argument
4226 …(start); (i) < (end) && (i) + cea_db_payload_len(&(cea)[(i)]) < (end); (i) += cea_db_payload_len(&…
4271 const u8 *cea = drm_find_cea_extension(edid); in add_cea_modes() local
4276 if (cea && cea_revision(cea) >= 3) { in add_cea_modes()
4279 if (cea_db_offsets(cea, &start, &end)) in add_cea_modes()
4282 for_each_cea_db(cea, i, start, end) { in add_cea_modes()
4283 db = &cea[i]; in add_cea_modes()
4510 u8 *cea; in drm_edid_to_eld() local
4521 cea = drm_find_cea_extension(edid); in drm_edid_to_eld()
4522 if (!cea) { in drm_edid_to_eld()
4530 eld[DRM_ELD_CEA_EDID_VER_MNL] = cea[1] << DRM_ELD_CEA_EDID_VER_SHIFT; in drm_edid_to_eld()
4540 if (cea_revision(cea) >= 3) { in drm_edid_to_eld()
4544 if (cea_db_offsets(cea, &start, &end)) { in drm_edid_to_eld()
4549 for_each_cea_db(cea, i, start, end) { in drm_edid_to_eld()
4550 db = &cea[i]; in drm_edid_to_eld()
4607 u8 *cea; in drm_edid_to_sad() local
4609 cea = drm_find_cea_extension(edid); in drm_edid_to_sad()
4610 if (!cea) { in drm_edid_to_sad()
4615 if (cea_revision(cea) < 3) { in drm_edid_to_sad()
4620 if (cea_db_offsets(cea, &start, &end)) { in drm_edid_to_sad()
4625 for_each_cea_db(cea, i, start, end) { in drm_edid_to_sad()
4626 u8 *db = &cea[i]; in drm_edid_to_sad()
4669 const u8 *cea; in drm_edid_to_speaker_allocation() local
4671 cea = drm_find_cea_extension(edid); in drm_edid_to_speaker_allocation()
4672 if (!cea) { in drm_edid_to_speaker_allocation()
4677 if (cea_revision(cea) < 3) { in drm_edid_to_speaker_allocation()
4682 if (cea_db_offsets(cea, &start, &end)) { in drm_edid_to_speaker_allocation()
4687 for_each_cea_db(cea, i, start, end) { in drm_edid_to_speaker_allocation()
4688 const u8 *db = &cea[i]; in drm_edid_to_speaker_allocation()