Searched refs:lpat (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/acpi/
H A Dacpi_lpat.c35 struct acpi_lpat *lpat = lpat_table->lpat; acpi_lpat_raw_to_temp() local
38 if ((raw >= lpat[i].raw && raw <= lpat[i+1].raw) || acpi_lpat_raw_to_temp()
39 (raw <= lpat[i].raw && raw >= lpat[i+1].raw)) acpi_lpat_raw_to_temp()
46 delta_temp = lpat[i+1].temp - lpat[i].temp; acpi_lpat_raw_to_temp()
47 delta_raw = lpat[i+1].raw - lpat[i].raw; acpi_lpat_raw_to_temp()
48 temp = lpat[i].temp + (raw - lpat[i].raw) * delta_temp / delta_raw; acpi_lpat_raw_to_temp()
58 * @lpat: the temperature_raw mapping table
69 struct acpi_lpat *lpat = lpat_table->lpat; acpi_lpat_temp_to_raw() local
72 if (temp >= lpat[i].temp && temp <= lpat[i+1].temp) acpi_lpat_temp_to_raw()
79 delta_temp = lpat[i+1].temp - lpat[i].temp; acpi_lpat_temp_to_raw()
80 delta_raw = lpat[i+1].raw - lpat[i].raw; acpi_lpat_temp_to_raw()
81 raw = lpat[i].raw + (temp - lpat[i].temp) * delta_raw / delta_temp; acpi_lpat_temp_to_raw()
103 int *lpat, i; acpi_lpat_get_conversion_table() local
115 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); acpi_lpat_get_conversion_table()
116 if (!lpat) acpi_lpat_get_conversion_table()
122 kfree(lpat); acpi_lpat_get_conversion_table()
125 lpat[i] = (s64)obj_e->integer.value; acpi_lpat_get_conversion_table()
130 kfree(lpat); acpi_lpat_get_conversion_table()
134 lpat_table->lpat = (struct acpi_lpat *)lpat; acpi_lpat_get_conversion_table()
155 kfree(lpat_table->lpat); acpi_lpat_free_conversion_table()
/linux-4.1.27/include/acpi/
H A Dacpi_lpat.h25 struct acpi_lpat *lpat; member in struct:acpi_lpat_conversion_table

Completed in 136 milliseconds