Searched refs:drm_fixp_div (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/drivers/gpu/drm/vkms/ |
D | vkms_formats.c | 125 s64 fp_rb_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); in RGB565_to_argb_u16() 126 s64 fp_g_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(63)); in RGB565_to_argb_u16() 236 s64 fp_rb_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(31)); in argb_u16_to_RGB565() 237 s64 fp_g_ratio = drm_fixp_div(drm_int2fixp(65535), drm_int2fixp(63)); in argb_u16_to_RGB565() 244 u16 r = drm_fixp2int(drm_fixp_div(fp_r, fp_rb_ratio)); in argb_u16_to_RGB565() 245 u16 g = drm_fixp2int(drm_fixp_div(fp_g, fp_g_ratio)); in argb_u16_to_RGB565() 246 u16 b = drm_fixp2int(drm_fixp_div(fp_b, fp_rb_ratio)); in argb_u16_to_RGB565()
|
/linux-6.1.9/drivers/gpu/drm/msm/dp/ |
D | dp_ctrl.c | 328 tu->pclk_fp = drm_fixp_div(tu->pclk_fp, temp1_fp); in dp_panel_update_tu_timings() 329 tu->lwidth_fp = drm_fixp_div(tu->lwidth_fp, temp1_fp); in dp_panel_update_tu_timings() 331 drm_fixp_div(tu->hbp_relative_to_pclk_fp, 2); in dp_panel_update_tu_timings() 358 temp3_fp = drm_fixp_div(temp2_fp, temp1_fp); in dp_panel_update_tu_timings() 362 temp3_fp = drm_fixp_div(temp2_fp, temp1_fp); in dp_panel_update_tu_timings() 382 temp1_fp = drm_fixp_div(temp2_fp, tu->lwidth_fp); in dp_panel_update_tu_timings() 385 temp1_fp = drm_fixp_div(pclk_dsc_fp, tu->pclk_fp); in dp_panel_update_tu_timings() 422 temp2_fp = drm_fixp_div(temp1_fp, tu->average_valid2_fp); in _tu_valid_boundary_calc() 432 temp2_fp = drm_fixp_div(temp2_fp, temp1_fp); in _tu_valid_boundary_calc() 437 drm_fixp_div(tu->n_remainder_symbols_per_lane_fp, in _tu_valid_boundary_calc() [all …]
|
/linux-6.1.9/include/drm/ |
D | drm_fixed.h | 131 static inline s64 drm_fixp_div(s64 a, s64 b) in drm_fixp_div() function 206 sum = drm_fixp_div(DRM_FIXED_ONE, sum); in drm_fixp_exp()
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | si_dpm.c | 1769 kt = drm_fixp_div(kt, drm_fixp_exp(drm_fixp_mul(tmp, t_ref))); in si_calculate_leakage_for_v_and_t_formula()
|
/linux-6.1.9/drivers/gpu/drm/amd/pm/legacy-dpm/ |
D | si_dpm.c | 1877 kt = drm_fixp_div(kt, drm_fixp_exp(drm_fixp_mul(tmp, t_ref))); in si_calculate_leakage_for_v_and_t_formula()
|