Lines Matching full: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) in acpi_lpat_raw_to_temp() argument
30 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) || in acpi_lpat_raw_to_temp()
31 (raw <= lpat[i].raw && raw >= lpat[i+1].raw)) in acpi_lpat_raw_to_temp()
39 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_raw_to_temp()
40 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp()
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; in acpi_lpat_temp_to_raw() local
72 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_temp_to_raw()
73 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
75 return raw; in acpi_lpat_temp_to_raw()