Lines Matching refs:lpat
27 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()
73 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; in acpi_lpat_temp_to_raw()
95 int *lpat, i; in acpi_lpat_get_conversion_table() local
107 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); in acpi_lpat_get_conversion_table()
108 if (!lpat) in acpi_lpat_get_conversion_table()
114 kfree(lpat); in acpi_lpat_get_conversion_table()
117 lpat[i] = (s64)obj_e->integer.value; in acpi_lpat_get_conversion_table()
122 kfree(lpat); in acpi_lpat_get_conversion_table()
126 lpat_table->lpat = (struct acpi_lpat *)lpat; in acpi_lpat_get_conversion_table()
147 kfree(lpat_table->lpat); in acpi_lpat_free_conversion_table()