Lines Matching refs:eld
414 * @eld: pointer to an eld memory structure with mnl set
416 static inline int drm_eld_mnl(const uint8_t *eld)
418 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT;
423 * @eld: pointer to an eld memory structure with sad_count set
425 static inline const uint8_t *drm_eld_sad(const uint8_t *eld)
429 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT;
433 mnl = drm_eld_mnl(eld);
437 return eld + DRM_ELD_CEA_SAD(mnl, 0);
442 * @eld: pointer to an eld memory structure with sad_count set
444 static inline int drm_eld_sad_count(const uint8_t *eld)
446 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >>
452 * @eld: pointer to an eld memory structure with mnl and sad_count set
457 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld)
460 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3;
465 * @eld: pointer to a complete eld memory structure
473 static inline int drm_eld_size(const uint8_t *eld)
475 return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
480 * @eld: pointer to an ELD memory structure
485 static inline u8 drm_eld_get_spk_alloc(const uint8_t *eld)
487 return eld[DRM_ELD_SPEAKER] & DRM_ELD_SPEAKER_MASK;
492 * @eld: pointer to an ELD memory structure
497 static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
499 return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;