Searched refs:bit_precision (Results 1 – 3 of 3) sorted by relevance
43 static inline u32 drm_color_lut_extract(u32 user_input, int bit_precision) in drm_color_lut_extract() argument45 if (bit_precision > 16) in drm_color_lut_extract()46 return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(user_input, (1 << bit_precision) - 1), in drm_color_lut_extract()49 return DIV_ROUND_CLOSEST(user_input * ((1 << bit_precision) - 1), in drm_color_lut_extract()
673 int bit_precision) in __to_dc_lut3d_color() argument675 rgb->red = drm_color_lut_extract(lut.red, bit_precision); in __to_dc_lut3d_color()676 rgb->green = drm_color_lut_extract(lut.green, bit_precision); in __to_dc_lut3d_color()677 rgb->blue = drm_color_lut_extract(lut.blue, bit_precision); in __to_dc_lut3d_color()
787 static u32 intel_color_lut_pack(u32 val, int bit_precision) in intel_color_lut_pack() argument789 if (bit_precision > 16) in intel_color_lut_pack()791 (1 << bit_precision) - 1); in intel_color_lut_pack()794 (1 << bit_precision) - 1); in intel_color_lut_pack()