Lines Matching refs:t
708 s16 t; in w1_DS18B20_convert_temp() local
718 t = (s16) bv; /* Degrees, lowest bit is 2^-6 */ in w1_DS18B20_convert_temp()
719 return (int)t * 1000 / 64; /* Sign-extend to int; millidegrees */ in w1_DS18B20_convert_temp()
721 t = (s16)bv; /* Degrees, lowest bit is 2^-4 */ in w1_DS18B20_convert_temp()
722 return (int)t * 1000 / 16; /* Sign-extend to int; millidegrees */ in w1_DS18B20_convert_temp()
735 int t, h; in w1_DS18S20_convert_temp() local
743 t = ((s32)rom[0] >> 1)*1000; in w1_DS18S20_convert_temp()
745 t = 1000*(-1*(s32)(0x100-rom[0]) >> 1); in w1_DS18S20_convert_temp()
747 t -= 250; in w1_DS18S20_convert_temp()
750 t += h; in w1_DS18S20_convert_temp()
752 return t; in w1_DS18S20_convert_temp()
768 s16 t; in w1_DS1825_convert_temp() local
779 t = (s16)bv; /* Degrees, lowest bit is 2^-4 */ in w1_DS1825_convert_temp()
780 return (int)t * 1000 / 16; /* Sign-extend to int; millidegrees */ in w1_DS1825_convert_temp()