Searched refs:ramp_coeff (Results 1 – 1 of 1) sorted by relevance
96 int t0, fmt0, ramp_coeff; member256 sensor->ramp_coeff = readl_relaxed(sensor->base + DTS_RAMPVALR_OFFSET) & in stm_thermal_read_factory_settings()259 if (!sensor->fmt0 || !sensor->ramp_coeff) { in stm_thermal_read_factory_settings()265 __func__, sensor->t0, sensor->fmt0, sensor->ramp_coeff); in stm_thermal_read_factory_settings()276 freqM = ((temp - sensor->t0) * sensor->ramp_coeff) / 1000 + in stm_thermal_calculate_threshold()372 *temp = (freqM - sensor->fmt0) * 1000 / sensor->ramp_coeff + sensor->t0; in stm_thermal_get_temp()