Lines Matching refs:raw
13 * acpi_lpat_raw_to_temp(): Return temperature from raw value through
17 * @raw: the raw value, used as a key to get the temperature from the
24 int raw)
30 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) ||
31 (raw <= lpat[i].raw && raw >= lpat[i+1].raw))
39 delta_raw = lpat[i+1].raw - lpat[i].raw;
40 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw;
47 * acpi_lpat_temp_to_raw(): Return raw value from temperature through
51 * @temp: the temperature, used as a key to get the raw value from the
54 * The raw value will be returned on success,
60 int i, delta_temp, delta_raw, raw;
72 delta_raw = lpat[i+1].raw - lpat[i].raw;
73 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp;
75 return raw;