Lines Matching full:temp
32 s32 temp; in dsi_dphy_timing_calc_clk_zero() local
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()
46 temp = (timing->hs_rqst + timing->clk_prepare + clk_z) & 0x7; in dsi_dphy_timing_calc_clk_zero()
47 timing->clk_zero = clk_z + 8 - temp; in dsi_dphy_timing_calc_clk_zero()
62 s32 temp; in msm_dsi_dphy_timing_calc() local
74 temp = lpx / ui; in msm_dsi_dphy_timing_calc()
75 if (temp & 0x1) in msm_dsi_dphy_timing_calc()
76 timing->hs_rqst = temp; in msm_dsi_dphy_timing_calc()
78 timing->hs_rqst = max_t(s32, 0, temp - 2); 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()
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()
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()
122 temp = linear_inter(2 * tmax, tmin, pcnt2, 0, false); in msm_dsi_dphy_timing_calc()
123 timing->shared_timings.clk_pre = temp >> 1; in msm_dsi_dphy_timing_calc()
161 s32 temp; in msm_dsi_dphy_timing_calc_v2() local
181 temp = S_DIV_ROUND_UP(38 * coeff - val_ckln * ui, ui_x8); in msm_dsi_dphy_timing_calc_v2()
182 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v2()
183 temp = (95 * coeff - val_ckln * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
184 tmax = max_t(s32, temp, 0); 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()
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()
198 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v2()
199 temp = (85 * coeff + 6 * ui - val * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v2()
200 tmax = max_t(s32, temp, 0); 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()
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()
214 timing->hs_rqst = S_DIV_ROUND_UP(temp, ui_x8); in msm_dsi_dphy_timing_calc_v2()
220 temp = 50 * coeff + ((hb_en_ckln << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v2()
221 timing->hs_rqst_ckln = S_DIV_ROUND_UP(temp, ui_x8); in msm_dsi_dphy_timing_calc_v2()
223 temp = 60 * coeff + 52 * ui - 43 * ui; in msm_dsi_dphy_timing_calc_v2()
224 tmin = DIV_ROUND_UP(temp, ui_x8) - 1; 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()
233 tmin = S_DIV_ROUND_UP(temp, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v2()
236 temp = linear_inter(tmax << 1, tmin, pcnt2, 0, false); in msm_dsi_dphy_timing_calc_v2()
237 timing->shared_timings.clk_pre = temp >> 1; in msm_dsi_dphy_timing_calc_v2()
276 s32 temp; in msm_dsi_dphy_timing_calc_v3() local
289 temp = S_DIV_ROUND_UP(38 * coeff, ui_x8); in msm_dsi_dphy_timing_calc_v3()
290 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v3()
291 temp = (95 * coeff) / ui_x8; in msm_dsi_dphy_timing_calc_v3()
292 tmax = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v3()
295 temp = 300 * coeff - (timing->clk_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v3()
296 tmin = S_DIV_ROUND_UP(temp, ui_x8) - 1; 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()
306 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v3()
307 temp = (85 * coeff + 6 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v3()
308 tmax = max_t(s32, temp, 0); 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()
312 tmin = S_DIV_ROUND_UP(temp, 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()
318 tmax = (temp / ui_x8) - 1; in msm_dsi_dphy_timing_calc_v3()
321 temp = 50 * coeff + ((hb_en << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v3()
322 timing->hs_rqst = S_DIV_ROUND_UP(temp, ui_x8); in msm_dsi_dphy_timing_calc_v3()
328 temp = 50 * coeff + ((hb_en_ckln << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v3()
329 timing->hs_rqst_ckln = S_DIV_ROUND_UP(temp, ui_x8); in msm_dsi_dphy_timing_calc_v3()
331 temp = 60 * coeff + 52 * ui - 43 * ui; in msm_dsi_dphy_timing_calc_v3()
332 tmin = DIV_ROUND_UP(temp, ui_x8) - 1; 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()
341 tmin = S_DIV_ROUND_UP(temp, ui_x8) - 1; in msm_dsi_dphy_timing_calc_v3()
344 temp = linear_inter(tmax << 1, tmin, pcnt2, 0, false); in msm_dsi_dphy_timing_calc_v3()
345 timing->shared_timings.clk_pre = temp >> 1; in msm_dsi_dphy_timing_calc_v3()
387 s32 temp; in msm_dsi_dphy_timing_calc_v4() local
402 temp = S_DIV_ROUND_UP(38 * coeff, ui_x8); in msm_dsi_dphy_timing_calc_v4()
403 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v4()
404 temp = (95 * coeff) / ui_x8; in msm_dsi_dphy_timing_calc_v4()
405 tmax = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v4()
408 temp = 300 * coeff - (timing->clk_prepare << 3) * ui; in msm_dsi_dphy_timing_calc_v4()
409 tmin = S_DIV_ROUND_UP(temp, ui_x8) - 1; 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()
419 tmin = max_t(s32, temp, 0); in msm_dsi_dphy_timing_calc_v4()
420 temp = (85 * coeff + 6 * ui) / ui_x8; in msm_dsi_dphy_timing_calc_v4()
421 tmax = max_t(s32, temp, 0); 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()
425 tmin = S_DIV_ROUND_UP(temp, 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()
431 tmax = (temp / ui_x8) - 1; in msm_dsi_dphy_timing_calc_v4()
434 temp = 50 * coeff + ((hb_en << 2) - 8) * ui; in msm_dsi_dphy_timing_calc_v4()
435 timing->hs_rqst = S_DIV_ROUND_UP(temp, ui_x8); 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()
454 temp = 52 * coeff + (timing->clk_prepare + timing->clk_zero + 1) * ui_x8 + 54 * coeff; in msm_dsi_dphy_timing_calc_v4()
455 tmin = DIV_ROUND_UP(temp, 16 * ui) - 1; in msm_dsi_dphy_timing_calc_v4()
477 s32 temp; in msm_dsi_cphy_timing_calc_v4() local
485 temp = S_DIV_ROUND_UP(38 * coeff, ui_x7); in msm_dsi_cphy_timing_calc_v4()
486 tmin = max_t(s32, temp, 0); in msm_dsi_cphy_timing_calc_v4()
487 temp = (95 * coeff) / ui_x7; in msm_dsi_cphy_timing_calc_v4()
488 tmax = max_t(s32, temp, 0); in msm_dsi_cphy_timing_calc_v4()