Lines Matching refs:prom
56 static bool ms5611_prom_is_valid(u16 *prom, size_t len) in ms5611_prom_is_valid() argument
59 uint16_t crc = 0, crc_orig = prom[7] & 0x000F; in ms5611_prom_is_valid()
61 prom[7] &= 0xFF00; in ms5611_prom_is_valid()
65 crc ^= prom[i >> 1] & 0x00FF; in ms5611_prom_is_valid()
67 crc ^= prom[i >> 1] >> 8; in ms5611_prom_is_valid()
88 ret = st->read_prom_word(st, i, &st->prom[i]); in ms5611_read_prom()
96 if (!ms5611_prom_is_valid(st->prom, MS5611_PROM_WORDS_NB)) { in ms5611_read_prom()
126 dt = t - (st->prom[5] << 8); in ms5611_temp_and_pressure_compensate()
127 off = ((s64)st->prom[2] << 16) + ((st->prom[4] * dt) >> 7); in ms5611_temp_and_pressure_compensate()
128 sens = ((s64)st->prom[1] << 15) + ((st->prom[3] * dt) >> 8); in ms5611_temp_and_pressure_compensate()
130 t = 2000 + ((st->prom[6] * dt) >> 23); in ms5611_temp_and_pressure_compensate()
162 dt = t - (st->prom[5] << 8); in ms5607_temp_and_pressure_compensate()
163 off = ((s64)st->prom[2] << 17) + ((st->prom[4] * dt) >> 6); in ms5607_temp_and_pressure_compensate()
164 sens = ((s64)st->prom[1] << 16) + ((st->prom[3] * dt) >> 7); in ms5607_temp_and_pressure_compensate()
166 t = 2000 + ((st->prom[6] * dt) >> 23); in ms5607_temp_and_pressure_compensate()