Lines Matching refs:p1

146 			      u32 *p1, u32 *p2, u32 mode)  in compute_intercept_slope_8976()  argument
163 priv->sensor[i].offset = (p1[i] * MSM8976_SLOPE_FACTOR) - in compute_intercept_slope_8976()
172 u32 p1[10], p2[10]; in calibrate_v1() local
208 p1[0] = (qfprom_cdata[0] & S0_P1_MASK) >> S0_P1_SHIFT; in calibrate_v1()
209 p1[1] = (qfprom_cdata[0] & S1_P1_MASK) >> S1_P1_SHIFT; in calibrate_v1()
210 p1[2] = (qfprom_cdata[0] & S2_P1_MASK) >> S2_P1_SHIFT; in calibrate_v1()
211 p1[3] = (qfprom_cdata[1] & S3_P1_MASK) >> S3_P1_SHIFT; in calibrate_v1()
212 p1[4] = (qfprom_cdata[1] & S4_P1_MASK) >> S4_P1_SHIFT; in calibrate_v1()
213 p1[5] = (qfprom_cdata[2] & S5_P1_MASK) >> S5_P1_SHIFT; in calibrate_v1()
214 p1[6] = (qfprom_cdata[2] & S6_P1_MASK) >> S6_P1_SHIFT; in calibrate_v1()
215 p1[7] = (qfprom_cdata[2] & S7_P1_MASK) >> S7_P1_SHIFT; in calibrate_v1()
216 p1[8] = (qfprom_cdata[3] & S8_P1_MASK) >> S8_P1_SHIFT; in calibrate_v1()
217 p1[9] = (qfprom_cdata[3] & S9_P1_MASK) >> S9_P1_SHIFT; in calibrate_v1()
219 p1[i] = (((base0) + p1[i]) << 2); in calibrate_v1()
223 p1[i] = 500; in calibrate_v1()
229 compute_intercept_slope(priv, p1, p2, mode); in calibrate_v1()
238 u32 p1[11], p2[11]; in calibrate_8976() local
269 p1[0] = (qfprom_cdata[0] & MSM8976_S0_P1_MASK) >> MSM8976_S0_P1_SHIFT; in calibrate_8976()
270 p1[1] = (qfprom_cdata[0] & MSM8976_S1_P1_MASK) >> MSM8976_S1_P1_SHIFT; in calibrate_8976()
271 p1[2] = (qfprom_cdata[1] & MSM8976_S2_P1_MASK) >> MSM8976_S2_P1_SHIFT; in calibrate_8976()
272 p1[3] = (qfprom_cdata[1] & MSM8976_S3_P1_MASK) >> MSM8976_S3_P1_SHIFT; in calibrate_8976()
273 p1[4] = (qfprom_cdata[2] & MSM8976_S4_P1_MASK) >> MSM8976_S4_P1_SHIFT; in calibrate_8976()
274 p1[5] = (qfprom_cdata[2] & MSM8976_S5_P1_MASK) >> MSM8976_S5_P1_SHIFT; in calibrate_8976()
275 p1[6] = (qfprom_cdata[3] & MSM8976_S6_P1_MASK) >> MSM8976_S6_P1_SHIFT; in calibrate_8976()
276 p1[7] = (qfprom_cdata[3] & MSM8976_S7_P1_MASK) >> MSM8976_S7_P1_SHIFT; in calibrate_8976()
277 p1[8] = (qfprom_cdata[4] & MSM8976_S8_P1_MASK) >> MSM8976_S8_P1_SHIFT; in calibrate_8976()
278 p1[9] = (qfprom_cdata[4] & MSM8976_S9_P1_MASK) >> MSM8976_S9_P1_SHIFT; in calibrate_8976()
279 p1[10] = (qfprom_cdata[4] & MSM8976_S10_P1_MASK) >> MSM8976_S10_P1_SHIFT; in calibrate_8976()
281 p1[10] |= tmp; in calibrate_8976()
284 p1[i] = (((base0) + p1[i]) << 2); in calibrate_8976()
288 p1[i] = 500; in calibrate_8976()
294 compute_intercept_slope_8976(priv, p1, p2, mode); in calibrate_8976()