Lines Matching refs:raw
237 static int sht3x_extract_temperature(u16 raw)
244 return ((21875 * (int)raw) >> 13) - 45000;
247 static u32 sht3x_extract_humidity(u16 raw)
254 return (12500 * (u32)raw) >> 13;
326 u16 raw;
340 raw = be16_to_cpup((__be16 *)buffer);
341 temperature = sht3x_extract_temperature((raw & 0x01ff) << 7);
342 humidity = sht3x_extract_humidity(raw & 0xfe00);
375 u16 raw;
390 raw = ((u32)(temperature + 45000) * 24543) >> (16 + 7);
391 raw |= ((humidity * 42950) >> 16) & 0xfe00;
393 *((__be16 *)position) = cpu_to_be16(raw);