Lines Matching refs:calib
324 u32 *calib, *bkp; in calibrate_8974() local
327 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
328 if (IS_ERR(calib)) in calibrate_8974()
329 return PTR_ERR(calib); in calibrate_8974()
333 kfree(calib); in calibrate_8974()
341 mode = (calib[4] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
342 mode |= (calib[5] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
352 p2[5] = (calib[4] & S5_P2_BKP_MASK) >> S5_P2_BKP_SHIFT; in calibrate_8974()
353 p2[6] = (calib[5] & S6_P2_BKP_MASK); in calibrate_8974()
354 p2[7] = (calib[5] & S7_P2_BKP_MASK) >> S7_P2_BKP_SHIFT; in calibrate_8974()
355 p2[8] = (calib[5] & S8_P2_BKP_MASK) >> S8_P2_BKP_SHIFT; in calibrate_8974()
356 p2[9] = (calib[5] & S9_P2_BKP_MASK) >> S9_P2_BKP_SHIFT; in calibrate_8974()
357 p2[10] = (calib[5] & S10_P2_BKP_MASK) >> S10_P2_BKP_SHIFT; in calibrate_8974()
376 mode = (calib[1] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
377 mode |= (calib[3] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
381 base2 = (calib[2] & BASE2_MASK) >> BASE2_SHIFT; in calibrate_8974()
382 p2[0] = (calib[2] & S0_P2_MASK) >> S0_P2_SHIFT; in calibrate_8974()
383 p2[1] = (calib[2] & S1_P2_MASK) >> S1_P2_SHIFT; in calibrate_8974()
384 p2[2] = (calib[3] & S2_P2_MASK); in calibrate_8974()
385 p2[3] = (calib[3] & S3_P2_MASK) >> S3_P2_SHIFT; in calibrate_8974()
386 p2[4] = (calib[3] & S4_P2_MASK) >> S4_P2_SHIFT; in calibrate_8974()
387 p2[5] = (calib[3] & S5_P2_MASK) >> S5_P2_SHIFT; in calibrate_8974()
388 p2[6] = (calib[3] & S6_P2_MASK) >> S6_P2_SHIFT; in calibrate_8974()
389 p2[7] = (calib[4] & S7_P2_MASK); in calibrate_8974()
390 p2[8] = (calib[4] & S8_P2_MASK) >> S8_P2_SHIFT; in calibrate_8974()
391 p2[9] = (calib[4] & S9_P2_MASK) >> S9_P2_SHIFT; in calibrate_8974()
392 p2[10] = (calib[4] & S10_P2_MASK) >> S10_P2_SHIFT; in calibrate_8974()
396 base1 = calib[0] & BASE1_MASK; in calibrate_8974()
397 p1[0] = (calib[0] & S0_P1_MASK) >> S0_P1_SHIFT; in calibrate_8974()
398 p1[1] = (calib[0] & S1_P1_MASK) >> S1_P1_SHIFT; in calibrate_8974()
399 p1[2] = (calib[0] & S2_P1_MASK) >> S2_P1_SHIFT; in calibrate_8974()
400 p1[3] = (calib[0] & S3_P1_MASK) >> S3_P1_SHIFT; in calibrate_8974()
401 p1[4] = (calib[1] & S4_P1_MASK); in calibrate_8974()
402 p1[5] = (calib[1] & S5_P1_MASK) >> S5_P1_SHIFT; in calibrate_8974()
403 p1[6] = (calib[1] & S6_P1_MASK) >> S6_P1_SHIFT; in calibrate_8974()
404 p1[7] = (calib[1] & S7_P1_MASK) >> S7_P1_SHIFT; in calibrate_8974()
405 p1[8] = (calib[1] & S8_P1_MASK) >> S8_P1_SHIFT; in calibrate_8974()
406 p1[9] = (calib[2] & S9_P1_MASK); in calibrate_8974()
407 p1[10] = (calib[2] & S10_P1_MASK) >> S10_P1_SHIFT; in calibrate_8974()
449 kfree(calib); in calibrate_8974()