Lines Matching refs:therm
199 static void ds1620_write_state(struct therm *therm) in ds1620_write_state() argument
202 ds1620_out(THERM_WRITE_TL, 9, therm->lo); in ds1620_write_state()
203 ds1620_out(THERM_WRITE_TH, 9, therm->hi); in ds1620_write_state()
207 static void ds1620_read_state(struct therm *therm) in ds1620_read_state() argument
209 therm->lo = cvt_9_to_int(ds1620_in(THERM_READ_TL, 9)); in ds1620_read_state()
210 therm->hi = cvt_9_to_int(ds1620_in(THERM_READ_TH, 9)); in ds1620_read_state()
238 struct therm therm; in ds1620_ioctl() local
240 struct therm __user *therm; in ds1620_ioctl() member
254 if (get_user(therm.hi, uarg.i)) in ds1620_ioctl()
256 therm.lo = therm.hi - 3; in ds1620_ioctl()
258 if (copy_from_user(&therm, uarg.therm, sizeof(therm))) in ds1620_ioctl()
262 therm.lo <<= 1; in ds1620_ioctl()
263 therm.hi <<= 1; in ds1620_ioctl()
265 ds1620_write_state(&therm); in ds1620_ioctl()
270 ds1620_read_state(&therm); in ds1620_ioctl()
272 therm.lo >>= 1; in ds1620_ioctl()
273 therm.hi >>= 1; in ds1620_ioctl()
276 if (put_user(therm.hi, uarg.i)) in ds1620_ioctl()
279 if (copy_to_user(uarg.therm, &therm, sizeof(therm))) in ds1620_ioctl()
335 struct therm th; in ds1620_proc_therm_show()
379 struct therm th, th_start; in ds1620_init()