Lines Matching refs:d

25 	struct int34x_thermal_zone *d = zone->devdata;  in int340x_thermal_get_zone_temp()  local
29 if (d->override_ops && d->override_ops->get_temp) in int340x_thermal_get_zone_temp()
30 return d->override_ops->get_temp(zone, temp); in int340x_thermal_get_zone_temp()
32 status = acpi_evaluate_integer(d->adev->handle, "_TMP", NULL, &tmp); in int340x_thermal_get_zone_temp()
36 if (d->lpat_table) { in int340x_thermal_get_zone_temp()
39 conv_temp = acpi_lpat_raw_to_temp(d->lpat_table, (int)tmp); in int340x_thermal_get_zone_temp()
54 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_temp() local
57 if (d->override_ops && d->override_ops->get_trip_temp) in int340x_thermal_get_trip_temp()
58 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp()
60 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp()
61 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp()
62 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp()
63 *temp = d->crt_temp; in int340x_thermal_get_trip_temp()
64 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp()
65 *temp = d->psv_temp; in int340x_thermal_get_trip_temp()
66 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp()
67 *temp = d->hot_temp; in int340x_thermal_get_trip_temp()
70 if (d->act_trips[i].valid && in int340x_thermal_get_trip_temp()
71 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp()
72 *temp = d->act_trips[i].temp; in int340x_thermal_get_trip_temp()
87 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_type() local
90 if (d->override_ops && d->override_ops->get_trip_type) in int340x_thermal_get_trip_type()
91 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type()
93 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_type()
95 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_type()
97 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_type()
99 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_type()
103 if (d->act_trips[i].valid && in int340x_thermal_get_trip_type()
104 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_type()
119 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_set_trip_temp() local
123 if (d->override_ops && d->override_ops->set_trip_temp) in int340x_thermal_set_trip_temp()
124 return d->override_ops->set_trip_temp(zone, trip, temp); in int340x_thermal_set_trip_temp()
127 status = acpi_execute_simple_method(d->adev->handle, name, in int340x_thermal_set_trip_temp()
132 d->aux_trips[trip] = temp; in int340x_thermal_set_trip_temp()
141 struct int34x_thermal_zone *d = zone->devdata; in int340x_thermal_get_trip_hyst() local
145 if (d->override_ops && d->override_ops->get_trip_hyst) in int340x_thermal_get_trip_hyst()
146 return d->override_ops->get_trip_hyst(zone, trip, temp); in int340x_thermal_get_trip_hyst()
148 status = acpi_evaluate_integer(d->adev->handle, "GTSH", NULL, &hyst); in int340x_thermal_get_trip_hyst()