Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/thermal/st/
Dstm_thermal.c276 int freqM; in stm_thermal_calculate_threshold() local
279 freqM = ((temp - sensor->t0) * sensor->ramp_coeff) / 1000 + in stm_thermal_calculate_threshold()
283 *th = clk_get_rate(sensor->clk) * SAMPLING_TIME / freqM; in stm_thermal_calculate_threshold()
287 dev_dbg(sensor->dev, "freqM=%d Hz, threshold=0x%x", freqM, *th); in stm_thermal_calculate_threshold()
357 int freqM, ret; in stm_thermal_get_temp() local
370 freqM = (clk_get_rate(sensor->clk) * SAMPLING_TIME) / periods; in stm_thermal_get_temp()
371 if (!freqM) in stm_thermal_get_temp()
375 *temp = (freqM - sensor->fmt0) * 1000 / sensor->ramp_coeff + sensor->t0; in stm_thermal_get_temp()