Home
last modified time | relevance | path

Searched refs:bit_precision (Results 1 – 3 of 3) sorted by relevance

/linux/include/drm/
H A Ddrm_color_mgmt.h43 static inline u32 drm_color_lut_extract(u32 user_input, int bit_precision) in drm_color_lut_extract() argument
45 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()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_color.c673 int bit_precision) in __to_dc_lut3d_color() argument
675 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()
/linux/drivers/gpu/drm/i915/display/
H A Dintel_color.c787 static u32 intel_color_lut_pack(u32 val, int bit_precision) in intel_color_lut_pack() argument
789 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()