Home
last modified time | relevance | path

Searched refs:cx_val (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/pressure/
H A Dhp03.c98 u16 cx_val[7]; in hp03_update_temp_pressure() local
132 cx_val[i] = (coefs[2 * i] << 8) | (coefs[(2 * i) + 1] << 0); in hp03_update_temp_pressure()
137 if (d2_val >= cx_val[4]) in hp03_update_temp_pressure()
142 diff_val = d2_val - cx_val[4]; in hp03_update_temp_pressure()
146 off = (cx_val[1] + (((cx_val[3] - 1024) * dut) >> 14)) * 4; in hp03_update_temp_pressure()
147 sens = cx_val[0] + ((cx_val[2] * dut) >> 10); in hp03_update_temp_pressure()
150 priv->pressure = ((x * 100) >> 5) + (cx_val[6] * 10); in hp03_update_temp_pressure()
151 priv->temp = 250 + ((dut * cx_val[5]) >> 16) - (dut >> coefs[17]); in hp03_update_temp_pressure()