Lines Matching +full:1 +full:c00
44 #define DPS310_TEMP_EN BIT(1)
89 s32 c00, c10, c20, c30, c01, c11, c21; member
116 u32 c00, c10, c20, c30, c01, c11, c21; in dps310_get_coefs() local
128 c0 = (coef[0] << 4) | (coef[1] >> 4); in dps310_get_coefs()
131 c1 = ((coef[1] & GENMASK(3, 0)) << 8) | coef[2]; in dps310_get_coefs()
135 * Calculate pressure calibration coefficients. c00 and c10 are 20 bit in dps310_get_coefs()
139 c00 = (coef[3] << 12) | (coef[4] << 4) | (coef[5] >> 4); in dps310_get_coefs()
140 data->c00 = sign_extend32(c00, 19); in dps310_get_coefs()
178 * If bit 1 is set then the device is okay, and the workaround does not in dps310_temp_workaround()
181 if (reg & BIT(1)) in dps310_temp_workaround()
492 raw = (val[0] << 16) | (val[1] << 8) | val[2]; in dps310_read_pres_raw()
511 raw = (val[0] << 16) | (val[1] << 8) | val[2]; in dps310_read_temp_ready()
671 /* Section 4.9.1 of the DPS310 spec; algebra'd to avoid underflow */ in dps310_calculate_pressure()
672 nums[0] = (s64)data->c00; in dps310_calculate_pressure()
673 denoms[0] = 1LL; in dps310_calculate_pressure()
674 nums[1] = p * (s64)data->c10; in dps310_calculate_pressure()
675 denoms[1] = kp; in dps310_calculate_pressure()