Lines Matching +full:1 +full:c00
44 #define DPS310_TEMP_EN BIT(1)
89 s32 c00, c10, c20, c30, c01, c11, c21; member
115 u32 c00, c10, c20, c30, c01, c11, c21; in dps310_get_coefs() local
127 c0 = (coef[0] << 4) | (coef[1] >> 4); in dps310_get_coefs()
130 c1 = ((coef[1] & GENMASK(3, 0)) << 8) | coef[2]; in dps310_get_coefs()
134 * Calculate pressure calibration coefficients. c00 and c10 are 20 bit in dps310_get_coefs()
138 c00 = (coef[3] << 12) | (coef[4] << 4) | (coef[5] >> 4); in dps310_get_coefs()
139 data->c00 = sign_extend32(c00, 19); in dps310_get_coefs()
326 raw = (val[0] << 16) | (val[1] << 8) | val[2]; in dps310_read_pres_raw()
345 raw = (val[0] << 16) | (val[1] << 8) | val[2]; in dps310_read_temp_ready()
503 /* Section 4.9.1 of the DPS310 spec; algebra'd to avoid underflow */ in dps310_calculate_pressure()
504 nums[0] = (s64)data->c00; in dps310_calculate_pressure()
505 denoms[0] = 1LL; in dps310_calculate_pressure()
506 nums[1] = p * (s64)data->c10; in dps310_calculate_pressure()
507 denoms[1] = kp; in dps310_calculate_pressure()
695 * If bit 1 is set then the device is okay, and the workaround does not in dps310_temp_workaround()
698 if (reg & BIT(1)) in dps310_temp_workaround()