• Home
  • Raw
  • Download

Lines Matching full:th

64 	struct db8500_thermal_zone *th = data;  in db8500_thermal_get_temp()  local
71 *temp = th->interpolated_temp; in db8500_thermal_get_temp()
79 struct db8500_thermal_zone *th = data; in db8500_thermal_get_trend() local
81 *trend = th->trend; in db8500_thermal_get_trend()
91 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument
99 th->cur_index = idx; in db8500_thermal_update_config()
100 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config()
101 th->trend = trend; in db8500_thermal_update_config()
113 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local
114 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
130 db8500_thermal_update_config(th, idx, THERMAL_TREND_DROPPING, in prcmu_low_irq_handler()
132 dev_dbg(&th->tz->device, in prcmu_low_irq_handler()
135 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
142 struct db8500_thermal_zone *th = irq_data; in prcmu_high_irq_handler() local
143 unsigned int idx = th->cur_index; in prcmu_high_irq_handler()
152 db8500_thermal_update_config(th, idx, THERMAL_TREND_RAISING, in prcmu_high_irq_handler()
155 dev_dbg(&th->tz->device, in prcmu_high_irq_handler()
159 th->interpolated_temp = db8500_thermal_points[idx] + 1; in prcmu_high_irq_handler()
161 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_high_irq_handler()
168 struct db8500_thermal_zone *th = NULL; in db8500_thermal_probe() local
172 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL); in db8500_thermal_probe()
173 if (!th) in db8500_thermal_probe()
184 "dbx500_temp_low", th); in db8500_thermal_probe()
198 "dbx500_temp_high", th); in db8500_thermal_probe()
205 th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe()
206 if (IS_ERR(th->tz)) { in db8500_thermal_probe()
208 return PTR_ERR(th->tz); in db8500_thermal_probe()
213 db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE, in db8500_thermal_probe()
217 platform_set_drvdata(pdev, th); in db8500_thermal_probe()
232 struct db8500_thermal_zone *th = platform_get_drvdata(pdev); in db8500_thermal_resume() local
235 db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE, in db8500_thermal_resume()