Searched refs:bit_precision (Results 1 – 2 of 2) sorted by relevance
42 static inline u32 drm_color_lut_extract(u32 user_input, int bit_precision) in drm_color_lut_extract() argument45 u32 max = 0xffff >> (16 - bit_precision); in drm_color_lut_extract()48 if (bit_precision < 16) { in drm_color_lut_extract()49 val += 1UL << (16 - bit_precision - 1); in drm_color_lut_extract()50 val >>= 16 - bit_precision; in drm_color_lut_extract()
781 static u32 intel_color_lut_pack(u32 val, int bit_precision) in intel_color_lut_pack() argument783 u32 max = 0xffff >> (16 - bit_precision); in intel_color_lut_pack()787 if (bit_precision < 16) in intel_color_lut_pack()788 val <<= 16 - bit_precision; in intel_color_lut_pack()