Lines Matching refs:eld
393 * @eld: pointer to an eld memory structure with mnl set
395 static inline int drm_eld_mnl(const uint8_t *eld)
397 return (eld[DRM_ELD_CEA_EDID_VER_MNL] & DRM_ELD_MNL_MASK) >> DRM_ELD_MNL_SHIFT;
402 * @eld: pointer to an eld memory structure with sad_count set
404 static inline const uint8_t *drm_eld_sad(const uint8_t *eld)
408 ver = (eld[DRM_ELD_VER] & DRM_ELD_VER_MASK) >> DRM_ELD_VER_SHIFT;
412 mnl = drm_eld_mnl(eld);
416 return eld + DRM_ELD_CEA_SAD(mnl, 0);
421 * @eld: pointer to an eld memory structure with sad_count set
423 static inline int drm_eld_sad_count(const uint8_t *eld)
425 return (eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_SAD_COUNT_MASK) >>
431 * @eld: pointer to an eld memory structure with mnl and sad_count set
436 static inline int drm_eld_calc_baseline_block_size(const uint8_t *eld)
439 drm_eld_mnl(eld) + drm_eld_sad_count(eld) * 3;
444 * @eld: pointer to a complete eld memory structure
452 static inline int drm_eld_size(const uint8_t *eld)
454 return DRM_ELD_HEADER_BLOCK_SIZE + eld[DRM_ELD_BASELINE_ELD_LEN] * 4;
459 * @eld: pointer to an ELD memory structure
464 static inline u8 drm_eld_get_spk_alloc(const uint8_t *eld)
466 return eld[DRM_ELD_SPEAKER] & DRM_ELD_SPEAKER_MASK;
471 * @eld: pointer to an ELD memory structure
476 static inline u8 drm_eld_get_conn_type(const uint8_t *eld)
478 return eld[DRM_ELD_SAD_COUNT_CONN_TYPE] & DRM_ELD_CONN_TYPE_MASK;