Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/thermal/st/
Dstm_thermal.c273 int freqM; in stm_thermal_calculate_threshold() local
276 freqM = ((temp - sensor->t0) * sensor->ramp_coeff) / 1000 + in stm_thermal_calculate_threshold()
280 *th = clk_get_rate(sensor->clk) * SAMPLING_TIME / freqM; in stm_thermal_calculate_threshold()
284 dev_dbg(sensor->dev, "freqM=%d Hz, threshold=0x%x", freqM, *th); in stm_thermal_calculate_threshold()
354 int freqM, ret; in stm_thermal_get_temp() local
367 freqM = (clk_get_rate(sensor->clk) * SAMPLING_TIME) / periods; in stm_thermal_get_temp()
368 if (!freqM) in stm_thermal_get_temp()
372 *temp = (freqM - sensor->fmt0) * 1000 / sensor->ramp_coeff + sensor->t0; in stm_thermal_get_temp()