Lines Matching defs:adev
24 static int thermal_acpi_trip_temp(struct acpi_device *adev, char *obj_name,
30 status = acpi_evaluate_integer(adev->handle, obj_name, NULL, &temp);
32 acpi_handle_debug(adev->handle, "%s evaluation failed\n", obj_name);
39 acpi_handle_debug(adev->handle, "%s result %llu out of range\n",
49 * @adev: Target thermal zone ACPI device object.
53 * Evaluate the _ACx object for the thermal zone represented by @adev to obtain
59 int thermal_acpi_active_trip_temp(struct acpi_device *adev, int id, int *ret_temp)
66 return thermal_acpi_trip_temp(adev, obj_name, ret_temp);
72 * @adev: Target thermal zone ACPI device object.
75 * Evaluate the _PSV object for the thermal zone represented by @adev to obtain
80 int thermal_acpi_passive_trip_temp(struct acpi_device *adev, int *ret_temp)
82 return thermal_acpi_trip_temp(adev, "_PSV", ret_temp);
88 * @adev: Target thermal zone ACPI device object.
91 * Evaluate the _HOT object for the thermal zone represented by @adev to obtain
97 int thermal_acpi_hot_trip_temp(struct acpi_device *adev, int *ret_temp)
99 return thermal_acpi_trip_temp(adev, "_HOT", ret_temp);
105 * @adev: Target thermal zone ACPI device object.
108 * Evaluate the _CRT object for the thermal zone represented by @adev to obtain
113 int thermal_acpi_critical_trip_temp(struct acpi_device *adev, int *ret_temp)
115 return thermal_acpi_trip_temp(adev, "_CRT", ret_temp);