Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/acpi/
Dacpi_lpat.c27 struct acpi_lpat *lpat = lpat_table->lpat; in acpi_lpat_raw_to_temp() local
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()
38 delta_temp = lpat[i+1].temp - lpat[i].temp; 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()
61 struct acpi_lpat *lpat = lpat_table->lpat; in acpi_lpat_temp_to_raw() local
64 if (temp >= lpat[i].temp && temp <= lpat[i+1].temp) in acpi_lpat_temp_to_raw()
71 delta_temp = lpat[i+1].temp - lpat[i].temp; in acpi_lpat_temp_to_raw()
72 delta_raw = lpat[i+1].raw - lpat[i].raw; in acpi_lpat_temp_to_raw()
[all …]
/linux-6.1.9/include/acpi/
Dacpi_lpat.h17 struct acpi_lpat *lpat; member
/linux-6.1.9/drivers/acpi/pmic/
Dintel_pmic_xpower.c299 struct acpi_lpat first = lpat_table->lpat[0]; in intel_xpower_lpat_raw_to_temp()
300 struct acpi_lpat last = lpat_table->lpat[lpat_table->lpat_count - 1]; in intel_xpower_lpat_raw_to_temp()