Searched refs:lpat_table (Results 1 – 7 of 7) sorted by relevance
/linux-6.1.9/drivers/acpi/ |
D | acpi_lpat.c | 23 int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, in acpi_lpat_raw_to_temp() argument 27 struct acpi_lpat *lpat = lpat_table->lpat; in acpi_lpat_raw_to_temp() 29 for (i = 0; i < lpat_table->lpat_count - 1; i++) { in acpi_lpat_raw_to_temp() 35 if (i == lpat_table->lpat_count - 1) in acpi_lpat_raw_to_temp() 57 int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, in acpi_lpat_temp_to_raw() argument 61 struct acpi_lpat *lpat = lpat_table->lpat; in acpi_lpat_temp_to_raw() 63 for (i = 0; i < lpat_table->lpat_count - 1; i++) { in acpi_lpat_temp_to_raw() 68 if (i == lpat_table->lpat_count - 1) in acpi_lpat_temp_to_raw() 92 struct acpi_lpat_conversion_table *lpat_table = NULL; in acpi_lpat_get_conversion_table() local 120 lpat_table = kzalloc(sizeof(*lpat_table), GFP_KERNEL); in acpi_lpat_get_conversion_table() [all …]
|
/linux-6.1.9/include/acpi/ |
D | acpi_lpat.h | 23 int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, 25 int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, 30 *lpat_table); 33 static int acpi_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, in acpi_lpat_raw_to_temp() argument 39 static int acpi_lpat_temp_to_raw(struct acpi_lpat_conversion_table *lpat_table, in acpi_lpat_temp_to_raw() argument 52 *lpat_table) in acpi_lpat_free_conversion_table()
|
/linux-6.1.9/drivers/acpi/pmic/ |
D | intel_pmic.c | 26 struct acpi_lpat_conversion_table *lpat_table; member 93 if (!opregion->lpat_table) { in pmic_read_temp() 98 temp = opregion->data->lpat_raw_to_temp(opregion->lpat_table, raw_temp); in pmic_read_temp() 124 if (opregion->lpat_table) { in pmic_thermal_aux() 125 raw_temp = acpi_lpat_temp_to_raw(opregion->lpat_table, *value); in pmic_thermal_aux() 276 opregion->lpat_table = acpi_lpat_get_conversion_table(handle); in intel_pmic_install_opregion_handler() 323 acpi_lpat_free_conversion_table(opregion->lpat_table); in intel_pmic_install_opregion_handler()
|
D | intel_pmic_xpower.c | 296 static int intel_xpower_lpat_raw_to_temp(struct acpi_lpat_conversion_table *lpat_table, in intel_xpower_lpat_raw_to_temp() argument 299 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() 314 return acpi_lpat_raw_to_temp(lpat_table, raw); in intel_xpower_lpat_raw_to_temp()
|
D | intel_pmic.h | 22 int (*lpat_raw_to_temp)(struct acpi_lpat_conversion_table *lpat_table,
|
/linux-6.1.9/drivers/thermal/intel/int340x_thermal/ |
D | int340x_thermal_zone.c | 28 if (d->lpat_table) { in int340x_thermal_get_zone_temp() 31 conv_temp = acpi_lpat_raw_to_temp(d->lpat_table, (int)tmp); in int340x_thermal_get_zone_temp() 272 int34x_thermal_zone->lpat_table = acpi_lpat_get_conversion_table( in int340x_thermal_zone_add() 295 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); in int340x_thermal_zone_add() 308 acpi_lpat_free_conversion_table(int34x_thermal_zone->lpat_table); in int340x_thermal_zone_remove()
|
D | int340x_thermal_zone.h | 34 struct acpi_lpat_conversion_table *lpat_table; member
|