Searched refs:lpat_table (Results 1 - 5 of 5) sorted by relevance
/linux-4.4.14/include/acpi/ |
H A D | acpi_lpat.h | 31 int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, 33 int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, 38 *lpat_table); 41 static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, acpi_lpat_raw_to_temp() argument 47 static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, acpi_lpat_temp_to_raw() argument 60 *lpat_table) acpi_lpat_free_conversion_table() 59 acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table *lpat_table) acpi_lpat_free_conversion_table() argument
|
/linux-4.4.14/drivers/acpi/ |
H A D | acpi_lpat.c | 24 * @lpat_table: the temperature_raw mapping table structure 31 int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, acpi_lpat_raw_to_temp() argument 35 struct acpi_lpat *lpat = lpat_table->lpat; acpi_lpat_raw_to_temp() 37 for (i = 0; i < lpat_table->lpat_count - 1; i++) { acpi_lpat_raw_to_temp() 43 if (i == lpat_table->lpat_count - 1) acpi_lpat_raw_to_temp() 65 int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, acpi_lpat_temp_to_raw() argument 69 struct acpi_lpat *lpat = lpat_table->lpat; acpi_lpat_temp_to_raw() 71 for (i = 0; i < lpat_table->lpat_count - 1; i++) { acpi_lpat_temp_to_raw() 76 if (i == lpat_table->lpat_count - 1) acpi_lpat_temp_to_raw() 100 struct acpi_lpat_conversion_table *lpat_table = NULL; acpi_lpat_get_conversion_table() local 128 lpat_table = kzalloc(sizeof(*lpat_table), GFP_KERNEL); acpi_lpat_get_conversion_table() 129 if (!lpat_table) { acpi_lpat_get_conversion_table() 134 lpat_table->lpat = (struct acpi_lpat *)lpat; acpi_lpat_get_conversion_table() 135 lpat_table->lpat_count = obj_p->package.count / 2; acpi_lpat_get_conversion_table() 139 return lpat_table; acpi_lpat_get_conversion_table() 146 * @lpat_table: the temperature_raw mapping table structure 152 *lpat_table) acpi_lpat_free_conversion_table() 154 if (lpat_table) { acpi_lpat_free_conversion_table() 155 kfree(lpat_table->lpat); acpi_lpat_free_conversion_table() 156 kfree(lpat_table); acpi_lpat_free_conversion_table() 151 acpi_lpat_free_conversion_table(struct acpi_lpat_conversion_table *lpat_table) acpi_lpat_free_conversion_table() argument
|
/linux-4.4.14/drivers/acpi/pmic/ |
H A D | intel_pmic.c | 27 struct acpi_lpat_conversion_table *lpat_table; member in struct:intel_pmic_opregion 91 if (!opregion->lpat_table) { pmic_read_temp() 96 temp = acpi_lpat_raw_to_temp(opregion->lpat_table, raw_temp); pmic_read_temp() 122 if (opregion->lpat_table) { pmic_thermal_aux() 123 raw_temp = acpi_lpat_temp_to_raw(opregion->lpat_table, *value); pmic_thermal_aux() 226 opregion->lpat_table = acpi_lpat_get_conversion_table(handle); intel_pmic_install_opregion_handler() 252 acpi_lpat_free_conversion_table(opregion->lpat_table); intel_pmic_install_opregion_handler()
|
/linux-4.4.14/drivers/thermal/int340x_thermal/ |
H A D | int340x_thermal_zone.c | 36 if (d->lpat_table) { int340x_thermal_get_zone_temp() 39 conv_temp = acpi_lpat_raw_to_temp(d->lpat_table, (int)tmp); int340x_thermal_get_zone_temp() 239 int34x_thermal_zone->lpat_table = acpi_lpat_get_conversion_table( int340x_thermal_zone_add() 257 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); int340x_thermal_zone_add() 269 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); int340x_thermal_zone_remove()
|
H A D | int340x_thermal_zone.h | 43 struct acpi_lpat_conversion_table *lpat_table; member in struct:int34x_thermal_zone
|
Completed in 214 milliseconds