Lines Matching refs:therm
18 #include <asm/therm.h>
200 static void ds1620_write_state(struct therm *therm)
203 ds1620_out(THERM_WRITE_TL, 9, therm->lo);
204 ds1620_out(THERM_WRITE_TH, 9, therm->hi);
208 static void ds1620_read_state(struct therm *therm)
210 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9));
211 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9));
239 struct therm therm;
241 struct therm __user *therm;
255 if (get_user(therm.hi, uarg.i))
257 therm.lo = therm.hi - 3;
259 if (copy_from_user(&therm, uarg.therm, sizeof(therm)))
263 therm.lo <<= 1;
264 therm.hi <<= 1;
266 ds1620_write_state(&therm);
271 ds1620_read_state(&therm);
273 therm.lo >>= 1;
274 therm.hi >>= 1;
277 if (put_user(therm.hi, uarg.i))
280 if (copy_to_user(uarg.therm, &therm, sizeof(therm)))
336 struct therm th;
368 struct therm th, th_start;
396 if (!proc_create_single("therm", 0, NULL, ds1620_proc_therm_show))
397 printk(KERN_ERR "therm: unable to register /proc/therm\n");
416 remove_proc_entry("therm", NULL);