Lines Matching full:raw
21 * acpi_lpat_raw_to_temp(): Return temperature from raw value through
25 * @raw: the raw value, used as a key to get the temerature from the
32 int raw) in acpi_lpat_raw_to_temp() argument
38 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) || in acpi_lpat_raw_to_temp()
39 (raw <= lpat[i].raw && raw >= lpat[i+1].raw)) in acpi_lpat_raw_to_temp()
47 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_raw_to_temp()
48 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; in acpi_lpat_raw_to_temp()
55 * acpi_lpat_temp_to_raw(): Return raw value from temperature through
59 * @temp: the temperature, used as a key to get the raw value from the
62 * The raw value will be returned on success,
68 int i, delta_temp, delta_raw, raw; in acpi_lpat_temp_to_raw() local
80 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_temp_to_raw()
81 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
83 return raw; in acpi_lpat_temp_to_raw()