Home
last modified time | relevance | path

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

/Linux-v6.6/include/drm/
Ddrm_fixed.h86 static inline int drm_fixp2int(s64 a) in drm_fixp2int() function
93 return drm_fixp2int(a + (1 << (DRM_FIXED_POINT_HALF - 1))); in drm_fixp2int_round()
99 return drm_fixp2int(a + DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil()
101 return drm_fixp2int(a - DRM_FIXED_ALMOST_ONE); in drm_fixp2int_ceil()
/Linux-v6.6/drivers/gpu/drm/vkms/
Dvkms_formats.c210 u16 r = drm_fixp2int(drm_fixp_div(fp_r, fp_rb_ratio)); in argb_u16_to_RGB565()
211 u16 g = drm_fixp2int(drm_fixp_div(fp_g, fp_g_ratio)); in argb_u16_to_RGB565()
212 u16 b = drm_fixp2int(drm_fixp_div(fp_b, fp_rb_ratio)); in argb_u16_to_RGB565()
Dvkms_composer.c101 return drm_fixp2int(a_fp + delta); in lerp_u16()
133 u16 *floor_lut_value = (__u16 *)&lut->base[drm_fixp2int(lut_index)]; in apply_lut_to_channel_value()
/Linux-v6.6/drivers/gpu/drm/msm/dp/
Ddp_ctrl.c369 numerator = drm_fixp2int(temp3_fp); in dp_panel_update_tu_timings()
428 tu->n_tus = drm_fixp2int(temp2_fp); in _tu_valid_boundary_calc()
451 tu->n_tus_per_lane = drm_fixp2int(temp1_fp); in _tu_valid_boundary_calc()
666 tu->ratio = drm_fixp2int(tu->ratio_fp); in _dp_ctrl_calc_tu()
672 tu->ratio = drm_fixp2int(tu->ratio_fp); in _dp_ctrl_calc_tu()
727 tu->n_tus = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()
744 temp = drm_fixp2int(temp2_fp); in _dp_ctrl_calc_tu()
757 tu->extra_pclk_cycles = drm_fixp2int(temp1_fp); in _dp_ctrl_calc_tu()
766 tu->extra_pclk_cycles_in_link_clk = drm_fixp2int(temp1_fp); in _dp_ctrl_calc_tu()
809 temp = drm_fixp2int(tu->diff_abs_fp); in _dp_ctrl_calc_tu()
[all …]
/Linux-v6.6/drivers/gpu/drm/radeon/
Dsi_dpm.c1774 *leakage = drm_fixp2int(leakage_w * 1000); in si_calculate_leakage_for_v_and_t_formula()
1802 *leakage = drm_fixp2int(leakage_w * 1000); in si_calculate_leakage_for_v_formula()
Dni_dpm.c758 *leakage = drm_fixp2int(leakage_w * 1000); in ni_calculate_leakage_for_v_and_t_formula()
/Linux-v6.6/drivers/gpu/drm/amd/pm/legacy-dpm/
Dsi_dpm.c1882 *leakage = drm_fixp2int(leakage_w * 1000); in si_calculate_leakage_for_v_and_t_formula()
1910 *leakage = drm_fixp2int(leakage_w * 1000); in si_calculate_leakage_for_v_formula()