Lines Matching full:th

63 	struct db8500_thermal_zone *th = tz->devdata;  in db8500_thermal_get_temp()  local
70 *temp = th->interpolated_temp; in db8500_thermal_get_temp()
79 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument
86 th->cur_index = idx; in db8500_thermal_update_config()
87 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config()
99 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local
100 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
116 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_low_irq_handler()
117 dev_dbg(&th->tz->device, in prcmu_low_irq_handler()
120 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
127 struct db8500_thermal_zone *th = irq_data; in prcmu_high_irq_handler() local
128 unsigned int idx = th->cur_index; in prcmu_high_irq_handler()
137 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_high_irq_handler()
139 dev_dbg(&th->tz->device, in prcmu_high_irq_handler()
143 th->interpolated_temp = db8500_thermal_points[idx] + 1; in prcmu_high_irq_handler()
145 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_high_irq_handler()
152 struct db8500_thermal_zone *th = NULL; in db8500_thermal_probe() local
156 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL); in db8500_thermal_probe()
157 if (!th) in db8500_thermal_probe()
166 "dbx500_temp_low", th); in db8500_thermal_probe()
178 "dbx500_temp_high", th); in db8500_thermal_probe()
185 th->tz = devm_thermal_of_zone_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe()
186 if (IS_ERR(th->tz)) { in db8500_thermal_probe()
188 return PTR_ERR(th->tz); in db8500_thermal_probe()
193 db8500_thermal_update_config(th, 0, PRCMU_DEFAULT_LOW_TEMP, in db8500_thermal_probe()
196 platform_set_drvdata(pdev, th); in db8500_thermal_probe()
211 struct db8500_thermal_zone *th = platform_get_drvdata(pdev); in db8500_thermal_resume() local
214 db8500_thermal_update_config(th, 0, PRCMU_DEFAULT_LOW_TEMP, in db8500_thermal_resume()