Lines Matching refs:therm
200 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument
203 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state()
204 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state()
208 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument
210 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state()
211 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state()
239 struct therm therm; in ds1620_ioctl() local
241 struct therm __user *therm; in ds1620_ioctl() member
255 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl()
257 therm.lo = therm.hi - 3; in ds1620_ioctl()
259 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl()
263 therm.lo <<= 1; in ds1620_ioctl()
264 therm.hi <<= 1; in ds1620_ioctl()
266 ds1620_write_state(&therm); in ds1620_ioctl()
271 ds1620_read_state(&therm); in ds1620_ioctl()
273 therm.lo >>= 1; in ds1620_ioctl()
274 therm.hi >>= 1; in ds1620_ioctl()
277 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl()
280 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl()
336 struct therm th; in ds1620_proc_therm_show()
368 struct therm th, th_start; in ds1620_init()