Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/gpu/drm/imx/dcss/
Ddcss-scaler.c128 static int div_q(int A, int B) in div_q() function
153 term = mult_q(term, div_q(x, 1 << PSC_Q_FRACTION)); in exp_approx_q()
155 term = mult_q(term, div_q(x, 2 << PSC_Q_FRACTION)); in exp_approx_q()
157 term = mult_q(term, div_q(x, 3 << PSC_Q_FRACTION)); in exp_approx_q()
159 term = mult_q(term, div_q(x, 4 << PSC_Q_FRACTION)); in exp_approx_q()
196 sigma_q = div_q(PSC_Q_ROUND_OFFSET, fc_q); in dcss_scaler_gaussian_filter()
198 g1_q = exp_approx_q(div_q(-PSC_Q_ROUND_OFFSET, in dcss_scaler_gaussian_filter()
276 fc_q = div_q(1, PSC_NUM_PHASES); in dcss_scaler_filter_design()
278 fc_q = div_q(dst_length, src_length * PSC_NUM_PHASES); in dcss_scaler_filter_design()