Lines Matching full:th

64 	struct db8500_thermal_zone *th = thermal_zone_device_priv(tz);  in db8500_thermal_get_temp()  local
71 *temp = th->interpolated_temp; in db8500_thermal_get_temp()
80 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument
87 th->cur_index = idx; in db8500_thermal_update_config()
88 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config()
100 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local
101 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
117 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_low_irq_handler()
118 dev_dbg(th->dev, in prcmu_low_irq_handler()
121 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
128 struct db8500_thermal_zone *th = irq_data; in prcmu_high_irq_handler() local
129 unsigned int idx = th->cur_index; in prcmu_high_irq_handler()
138 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_high_irq_handler()
140 dev_dbg(th->dev, in prcmu_high_irq_handler()
144 th->interpolated_temp = db8500_thermal_points[idx] + 1; in prcmu_high_irq_handler()
146 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_high_irq_handler()
153 struct db8500_thermal_zone *th = NULL; in db8500_thermal_probe() local
157 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL); in db8500_thermal_probe()
158 if (!th) in db8500_thermal_probe()
161 th->dev = dev; in db8500_thermal_probe()
169 "dbx500_temp_low", th); in db8500_thermal_probe()
181 "dbx500_temp_high", th); in db8500_thermal_probe()
188 th->tz = devm_thermal_of_zone_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe()
189 if (IS_ERR(th->tz)) { in db8500_thermal_probe()
191 return PTR_ERR(th->tz); in db8500_thermal_probe()
196 db8500_thermal_update_config(th, 0, PRCMU_DEFAULT_LOW_TEMP, in db8500_thermal_probe()
199 platform_set_drvdata(pdev, th); in db8500_thermal_probe()
214 struct db8500_thermal_zone *th = platform_get_drvdata(pdev); in db8500_thermal_resume() local
217 db8500_thermal_update_config(th, 0, PRCMU_DEFAULT_LOW_TEMP, in db8500_thermal_resume()