Lines Matching full:ui
29 s32 ui, s32 coeff, s32 pcnt) in dsi_dphy_timing_calc_clk_zero() argument
35 temp = 300 * coeff - ((timing->clk_prepare >> 1) + 1) * 2 * ui; in dsi_dphy_timing_calc_clk_zero()
36 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc_clk_zero()
55 s32 ui, lpx; in msm_dsi_dphy_timing_calc() local
67 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc()
70 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
71 tmin = S_DIV_ROUND_UP(38 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
74 temp = lpx / ui; in msm_dsi_dphy_timing_calc()
81 dsi_dphy_timing_calc_clk_zero(timing, ui, coeff, pcnt2); in msm_dsi_dphy_timing_calc()
83 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc()
84 tmax = S_DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
85 tmin = S_DIV_ROUND_UP(60 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
88 temp = 85 * coeff + 6 * ui; in msm_dsi_dphy_timing_calc()
89 tmax = S_DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
90 temp = 40 * coeff + 4 * ui; in msm_dsi_dphy_timing_calc()
91 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
95 temp = ((timing->hs_prepare >> 1) + 1) * 2 * ui + 2 * ui; in msm_dsi_dphy_timing_calc()
96 temp = 145 * coeff + 10 * ui - temp; in msm_dsi_dphy_timing_calc()
97 tmin = S_DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
100 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc()
101 tmax = S_DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
102 temp = 60 * coeff + 4 * ui; in msm_dsi_dphy_timing_calc()
103 tmin = DIV_ROUND_UP(temp, ui) - 2; in msm_dsi_dphy_timing_calc()
107 tmin = S_DIV_ROUND_UP(100 * coeff, ui) - 2; in msm_dsi_dphy_timing_calc()
111 temp = ((timing->hs_exit >> 1) + 1) * 2 * ui; in msm_dsi_dphy_timing_calc()
112 temp = 60 * coeff + 52 * ui - 24 * ui - temp; in msm_dsi_dphy_timing_calc()
113 tmin = S_DIV_ROUND_UP(temp, 8 * ui) - 1; in msm_dsi_dphy_timing_calc()
117 temp = ((timing->clk_prepare >> 1) + 1) * 2 * ui; in msm_dsi_dphy_timing_calc()
118 temp += ((timing->clk_zero >> 1) + 1) * 2 * ui; in msm_dsi_dphy_timing_calc()
119 temp += 8 * ui + lpx; in msm_dsi_dphy_timing_calc()
120 tmin = S_DIV_ROUND_UP(temp, 8 * ui) - 1; in msm_dsi_dphy_timing_calc()
150 s32 ui, ui_x8; in msm_dsi_dphy_timing_calc_v2() local
178 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v2()
179 ui_x8 = ui << 3; in msm_dsi_dphy_timing_calc_v2()
181 temp = S_DIV_ROUND_UP(38 * coeff - val_ckln * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2()
183 temp = (95 * coeff - val_ckln * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
187 temp = 300 * coeff - ((timing->clk_prepare << 3) + val_ckln) * ui; in msm_dsi_dphy_timing_calc_v2()
188 tmin = S_DIV_ROUND_UP(temp - 11 * ui, ui_x8) - 3; in msm_dsi_dphy_timing_calc_v2()
192 tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2()
193 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v2()
194 tmax = (temp + 3 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
197 temp = S_DIV_ROUND_UP(40 * coeff + 4 * ui - val * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2()
199 temp = (85 * coeff + 6 * ui - val * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
203 temp = 145 * coeff + 10 * ui - ((timing->hs_prepare << 3) + val) * ui; in msm_dsi_dphy_timing_calc_v2()
204 tmin = S_DIV_ROUND_UP(temp - 11 * ui, ui_x8) - 3; in msm_dsi_dphy_timing_calc_v2()
208 tmin = DIV_ROUND_UP(60 * coeff + 4 * ui + 3 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2()
209 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v2()
210 tmax = (temp + 3 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
213 temp = 50 * coeff + ((hb_en << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v2()
220 temp = 50 * coeff + ((hb_en_ckln << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v2()
223 temp = 60 * coeff + 52 * ui - 43 * ui; in msm_dsi_dphy_timing_calc_v2()
229 temp = 8 * ui + ((timing->clk_prepare << 3) + val_ckln) * ui; in msm_dsi_dphy_timing_calc_v2()
230 temp += (((timing->clk_zero + 3) << 3) + 11 - (pd_ckln << 1)) * ui; in msm_dsi_dphy_timing_calc_v2()
231 temp += hb_en_ckln ? (((timing->hs_rqst_ckln << 3) + 4) * ui) : in msm_dsi_dphy_timing_calc_v2()
232 (((timing->hs_rqst_ckln << 3) + 8) * ui); in msm_dsi_dphy_timing_calc_v2()
266 s32 ui, ui_x8; in msm_dsi_dphy_timing_calc_v3() local
286 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v3()
287 ui_x8 = ui << 3; in msm_dsi_dphy_timing_calc_v3()
295 temp = 300 * coeff - (timing->clk_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v3()
300 tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v3()
301 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v3()
302 tmax = (temp + 3 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v3()
305 temp = S_DIV_ROUND_UP(40 * coeff + 4 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v3()
307 temp = (85 * coeff + 6 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v3()
311 temp = 145 * coeff + 10 * ui - (timing->hs_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v3()
316 tmin = DIV_ROUND_UP(60 * coeff + 4 * ui, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v3()
317 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v3()
321 temp = 50 * coeff + ((hb_en << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v3()
328 temp = 50 * coeff + ((hb_en_ckln << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v3()
331 temp = 60 * coeff + 52 * ui - 43 * ui; in msm_dsi_dphy_timing_calc_v3()
337 temp = 8 * ui + (timing->clk_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v3()
338 temp += (((timing->clk_zero + 3) << 3) + 11) * ui; in msm_dsi_dphy_timing_calc_v3()
339 temp += hb_en_ckln ? (((timing->hs_rqst_ckln << 3) + 4) * ui) : in msm_dsi_dphy_timing_calc_v3()
340 (((timing->hs_rqst_ckln << 3) + 8) * ui); in msm_dsi_dphy_timing_calc_v3()
376 s32 ui, ui_x8; in msm_dsi_dphy_timing_calc_v4() local
394 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_dphy_timing_calc_v4()
395 ui_x8 = ui << 3; in msm_dsi_dphy_timing_calc_v4()
408 temp = 300 * coeff - (timing->clk_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v4()
413 tmin = DIV_ROUND_UP(60 * coeff + 3 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v4()
414 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v4()
415 tmax = (temp + 3 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v4()
418 temp = S_DIV_ROUND_UP(40 * coeff + 4 * ui, ui_x8); in msm_dsi_dphy_timing_calc_v4()
420 temp = (85 * coeff + 6 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v4()
424 temp = 145 * coeff + 10 * ui - (timing->hs_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v4()
429 tmin = DIV_ROUND_UP(60 * coeff + 4 * ui, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v4()
430 temp = 105 * coeff + 12 * ui - 20 * coeff; in msm_dsi_dphy_timing_calc_v4()
434 temp = 50 * coeff + ((hb_en << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v4()
444 temp = 60 * coeff + 52 * ui + + (timing->hs_trail + 1) * ui_x8; in msm_dsi_dphy_timing_calc_v4()
445 tmin = DIV_ROUND_UP(temp, 16 * ui) - 1; in msm_dsi_dphy_timing_calc_v4()
455 tmin = DIV_ROUND_UP(temp, 16 * ui) - 1; in msm_dsi_dphy_timing_calc_v4()
474 s32 ui, ui_x7; in msm_dsi_cphy_timing_calc_v4() local
482 ui = mult_frac(NSEC_PER_MSEC, coeff, bit_rate / 1000); in msm_dsi_cphy_timing_calc_v4()
483 ui_x7 = ui * 7; in msm_dsi_cphy_timing_calc_v4()