Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/vkms/
H A Dvkms_formats.c100 s64 fp_rb_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); in RGB565_to_argb_u16() local
109 out_pixel->r = drm_fixp2int_round(drm_fixp_mul(fp_r, fp_rb_ratio)); in RGB565_to_argb_u16()
111 out_pixel->b = drm_fixp2int_round(drm_fixp_mul(fp_b, fp_rb_ratio)); in RGB565_to_argb_u16()
203 s64 fp_rb_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); in argb_u16_to_RGB565() local
210 u16 r = drm_fixp2int(drm_fixp_div(fp_r, fp_rb_ratio)); in argb_u16_to_RGB565()
212 u16 b = drm_fixp2int(drm_fixp_div(fp_b, fp_rb_ratio)); in argb_u16_to_RGB565()