Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/gpu/drm/msm/dsi/
Ddsi_phy.c49 static inline s32 linear_inter(s32 tmax, s32 tmin, s32 percent, in linear_inter() argument
53 v = (tmax - tmin) * percent; in linear_inter()
64 s32 tmax, tmin, clk_z; in dsi_dphy_timing_calc_clk_zero() local
71 tmax = 511; in dsi_dphy_timing_calc_clk_zero()
74 tmax = 255; in dsi_dphy_timing_calc_clk_zero()
75 clk_z = linear_inter(tmax, tmin, pcnt, 0, true); in dsi_dphy_timing_calc_clk_zero()
87 s32 tmax, tmin; in dsi_dphy_timing_calc() local
101 tmax = S_DIV_ROUND_UP(95 * coeff, ui) - 2; in dsi_dphy_timing_calc()
103 timing->clk_prepare = linear_inter(tmax, tmin, pcnt0, 0, true); in dsi_dphy_timing_calc()
115 tmax = S_DIV_ROUND_UP(temp, ui) - 2; in dsi_dphy_timing_calc()
[all …]
/linux-4.1.27/drivers/macintosh/
Dwindfarm_pm91.c148 s32 tmax, tdelta, maxpow, powadj; in wf_smu_create_cpu_fans() local
165 tmax = ((s32)fvt->maxtemp) << 16; in wf_smu_create_cpu_fans()
167 tmax = 0x5e0000; /* 94 degree default */ in wf_smu_create_cpu_fans()
192 pid_param.tmax = tmax; in wf_smu_create_cpu_fans()
193 pid_param.ttarget = tmax - tdelta; in wf_smu_create_cpu_fans()
203 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in wf_smu_create_cpu_fans()
253 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick()
Dwindfarm_pm81.c400 s32 tmax, tdelta, maxpow, powadj; in wf_smu_create_cpu_fans() local
417 tmax = ((s32)fvt->maxtemp) << 16; in wf_smu_create_cpu_fans()
419 tmax = 0x5e0000; /* 94 degree default */ in wf_smu_create_cpu_fans()
447 pid_param.tmax = tmax; in wf_smu_create_cpu_fans()
448 pid_param.ttarget = tmax - tdelta; in wf_smu_create_cpu_fans()
458 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in wf_smu_create_cpu_fans()
508 if (temp > st->pid.param.tmax) in wf_smu_cpu_fans_tick()
Dwindfarm_pm112.c133 s32 tmax; in create_cpu_loop() local
148 tmax = fvt->maxtemp << 16; in create_cpu_loop()
150 tmax = 95 << 16; /* default to 95 degrees C */ in create_cpu_loop()
153 if (tmax < cpu_all_tmax) in create_cpu_loop()
154 cpu_all_tmax = tmax; in create_cpu_loop()
170 pid.ttarget = tmax - (piddata->target_temp_delta << 16); in create_cpu_loop()
171 pid.tmax = tmax; in create_cpu_loop()
Dwindfarm_rm31.c298 s32 tmax, ttarget, ptarget; in cpu_setup_pid() local
302 tmax = mpu->tmax << 16; in cpu_setup_pid()
307 cpu, FIX32TOPRINT(ttarget), FIX32TOPRINT(tmax)); in cpu_setup_pid()
310 if (tmax < cpu_all_tmax) in cpu_setup_pid()
311 cpu_all_tmax = tmax; in cpu_setup_pid()
328 pid.tmax = tmax; in cpu_setup_pid()
Dwindfarm_pm121.c657 s32 tmax, tdelta, maxpow, powadj; in pm121_create_cpu_fans() local
675 tmax = ((s32)fvt->maxtemp) << 16; in pm121_create_cpu_fans()
677 tmax = 0x5e0000; /* 94 degree default */ in pm121_create_cpu_fans()
702 pid_param.tmax = tmax; in pm121_create_cpu_fans()
703 pid_param.ttarget = tmax - tdelta; in pm121_create_cpu_fans()
713 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in pm121_create_cpu_fans()
762 if (temp > st->pid.param.tmax) in pm121_cpu_fans_tick()
Dwindfarm_pm72.c397 s32 tmax, ttarget, ptarget; in cpu_setup_pid() local
401 tmax = mpu->tmax << 16; in cpu_setup_pid()
406 cpu, FIX32TOPRINT(ttarget), FIX32TOPRINT(tmax)); in cpu_setup_pid()
409 if (tmax < cpu_all_tmax) in cpu_setup_pid()
410 cpu_all_tmax = tmax; in cpu_setup_pid()
427 pid.tmax = tmax; in cpu_setup_pid()
Dwindfarm_pid.h66 s32 tmax; /* PID input max */ member
Dwindfarm_mpu.h47 u8 tmax; /* 0x29 - Max temperature */ member
Dwindfarm_pid.c120 sval = st->param.tmax - (s32)(integ >> 20); in wf_cpu_pid_run()
/linux-4.1.27/drivers/power/
Daxp288_fuel_gauge.c424 int rmin, rmax, tmin, tmax; in temp_to_adc() local
438 tmax = info->pdata->thermistor_curve[i][1]; in temp_to_adc()
440 (tval - tmin) / (tmax - tmin)); in temp_to_adc()
466 int rmin, rmax, tmin, tmax; in adc_to_temp() local
492 tmax = info->pdata->thermistor_curve[i][1]; in adc_to_temp()
493 tval = tmin + ((tmax - tmin) * in adc_to_temp()
/linux-4.1.27/drivers/leds/
Dleds-tca6507.c219 int tmax = msec * 9 / 8; in choose_times() local
230 if (t > tmax) in choose_times()
237 if (tt > tmax) in choose_times()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dsky2.c4109 const u32 tmax = sky2_clk2us(hw, 0x0ffffff); in sky2_set_coalesce() local
4111 if (ecmd->tx_coalesce_usecs > tmax || in sky2_set_coalesce()
4112 ecmd->rx_coalesce_usecs > tmax || in sky2_set_coalesce()
4113 ecmd->rx_coalesce_usecs_irq > tmax) in sky2_set_coalesce()