Lines Matching refs:resolution
308 * the number of integer and fractional bits are specified. The resolution
309 * is given by 1/@resolution and tell us the number of fractional bits. For
310 * instance a resolution of 2^-10 means we have 10 fractional bits.
312 static u32 __convert_to_raw(const u64 val, const u32 resolution)
314 u64 __res = val * resolution;
322 static u32 __convert_to_raw_sign(const u64 val, const u32 resolution)
326 __res = __convert_to_raw(__res, resolution);
418 const u32 resolution, const bool has_signed)
472 * of resolution. Temperatures also come in Kelvin, so signed values
492 temp = __convert_to_raw_sign(temp, resolution);
494 temp = __convert_to_raw(temp, resolution);
1095 /* 2^20 resolution */
1129 * 2^10 resolution