Lines Matching refs:eld
229 /* ELD Header Block */
240 /* ELD Baseline Block for ELD_Ver == 2 */
388 * drm_eld_mnl - Get ELD monitor name length in bytes.
389 * @eld: pointer to an eld memory structure with mnl set
391 static inline int drm_eld_mnl(const uint8_t *eld)
393 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT;
397 * drm_eld_sad - Get ELD SAD structures.
398 * @eld: pointer to an eld memory structure with sad_count set
400 static inline const uint8_t *drm_eld_sad(const uint8_t *eld)
404 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT;
408 mnl = drm_eld_mnl(eld);
412 return eld + DRM_ELD_CEA_SAD(mnl, 0);
416 * drm_eld_sad_count - Get ELD SAD count.
417 * @eld: pointer to an eld memory structure with sad_count set
419 static inline int drm_eld_sad_count(const uint8_t *eld)
421 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >>
427 * @eld: pointer to an eld memory structure with mnl and sad_count set
430 * bytes, for e.g. setting the Baseline_ELD_Len field in the ELD header block.
432 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld)
435 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3;
439 * drm_eld_size - Get ELD size in bytes
440 * @eld: pointer to a complete eld memory structure
443 * and comprises of the remaining bytes in the ELD memory buffer after
448 static inline int drm_eld_size(const uint8_t *eld)
450 return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
455 * @eld: pointer to an ELD memory structure
460 static inline u8 drm_eld_get_spk_alloc(const uint8_t *eld)
462 return eld[DRM_ELD_SPEAKER] & DRM_ELD_SPEAKER_MASK;
467 * @eld: pointer to an ELD memory structure
472 static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
474 return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;