Lines Matching defs:raw
231 static int sht3x_extract_temperature(u16 raw)
238 return ((21875 * (int)raw) >> 13) - 45000;
241 static u32 sht3x_extract_humidity(u16 raw)
248 return (12500 * (u32)raw) >> 13;
320 u16 raw;
334 raw = be16_to_cpup((__be16 *)buffer);
335 temperature = sht3x_extract_temperature((raw & 0x01ff) << 7);
336 humidity = sht3x_extract_humidity(raw & 0xfe00);
369 u16 raw;
384 raw = ((u32)(temperature + 45000) * 24543) >> (16 + 7);
385 raw |= ((humidity * 42950) >> 16) & 0xfe00;
387 *((__be16 *)position) = cpu_to_be16(raw);