Lines Matching defs:raw
199 static int sht3x_extract_temperature(u16 raw)
206 return ((21875 * (int)raw) >> 13) - 45000;
209 static u32 sht3x_extract_humidity(u16 raw)
216 return (12500 * (u32)raw) >> 13;
291 u16 raw;
305 raw = be16_to_cpup((__be16 *)buffer);
306 temperature = sht3x_extract_temperature((raw & 0x01ff) << 7);
307 humidity = sht3x_extract_humidity(raw & 0xfe00);
349 u16 raw;
364 raw = ((u32)(temperature + 45000) * 24543) >> (16 + 7);
365 raw |= ((humidity * 42950) >> 16) & 0xfe00;
367 *((__be16 *)position) = cpu_to_be16(raw);