Lines Matching refs:calib
357 u32 *calib, *bkp; in calibrate_8974() local
360 calib = (u32 *)qfprom_read(priv->dev, "calib"); in calibrate_8974()
361 if (IS_ERR(calib)) in calibrate_8974()
362 return PTR_ERR(calib); in calibrate_8974()
366 kfree(calib); in calibrate_8974()
374 mode = (calib[4] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
375 mode |= (calib[5] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
385 p2[5] = (calib[4] & S5_P2_BKP_MASK) >> S5_P2_BKP_SHIFT; in calibrate_8974()
386 p2[6] = (calib[5] & S6_P2_BKP_MASK); in calibrate_8974()
387 p2[7] = (calib[5] & S7_P2_BKP_MASK) >> S7_P2_BKP_SHIFT; in calibrate_8974()
388 p2[8] = (calib[5] & S8_P2_BKP_MASK) >> S8_P2_BKP_SHIFT; in calibrate_8974()
389 p2[9] = (calib[5] & S9_P2_BKP_MASK) >> S9_P2_BKP_SHIFT; in calibrate_8974()
390 p2[10] = (calib[5] & S10_P2_BKP_MASK) >> S10_P2_BKP_SHIFT; in calibrate_8974()
409 mode = (calib[1] & CAL_SEL_0_1) >> CAL_SEL_SHIFT; in calibrate_8974()
410 mode |= (calib[3] & CAL_SEL_2) >> CAL_SEL_SHIFT_2; in calibrate_8974()
414 base2 = (calib[2] & BASE2_MASK) >> BASE2_SHIFT; in calibrate_8974()
415 p2[0] = (calib[2] & S0_P2_MASK) >> S0_P2_SHIFT; in calibrate_8974()
416 p2[1] = (calib[2] & S1_P2_MASK) >> S1_P2_SHIFT; in calibrate_8974()
417 p2[2] = (calib[3] & S2_P2_MASK); in calibrate_8974()
418 p2[3] = (calib[3] & S3_P2_MASK) >> S3_P2_SHIFT; in calibrate_8974()
419 p2[4] = (calib[3] & S4_P2_MASK) >> S4_P2_SHIFT; in calibrate_8974()
420 p2[5] = (calib[3] & S5_P2_MASK) >> S5_P2_SHIFT; in calibrate_8974()
421 p2[6] = (calib[3] & S6_P2_MASK) >> S6_P2_SHIFT; in calibrate_8974()
422 p2[7] = (calib[4] & S7_P2_MASK); in calibrate_8974()
423 p2[8] = (calib[4] & S8_P2_MASK) >> S8_P2_SHIFT; in calibrate_8974()
424 p2[9] = (calib[4] & S9_P2_MASK) >> S9_P2_SHIFT; in calibrate_8974()
425 p2[10] = (calib[4] & S10_P2_MASK) >> S10_P2_SHIFT; in calibrate_8974()
429 base1 = calib[0] & BASE1_MASK; in calibrate_8974()
430 p1[0] = (calib[0] & S0_P1_MASK) >> S0_P1_SHIFT; in calibrate_8974()
431 p1[1] = (calib[0] & S1_P1_MASK) >> S1_P1_SHIFT; in calibrate_8974()
432 p1[2] = (calib[0] & S2_P1_MASK) >> S2_P1_SHIFT; in calibrate_8974()
433 p1[3] = (calib[0] & S3_P1_MASK) >> S3_P1_SHIFT; in calibrate_8974()
434 p1[4] = (calib[1] & S4_P1_MASK); in calibrate_8974()
435 p1[5] = (calib[1] & S5_P1_MASK) >> S5_P1_SHIFT; in calibrate_8974()
436 p1[6] = (calib[1] & S6_P1_MASK) >> S6_P1_SHIFT; in calibrate_8974()
437 p1[7] = (calib[1] & S7_P1_MASK) >> S7_P1_SHIFT; in calibrate_8974()
438 p1[8] = (calib[1] & S8_P1_MASK) >> S8_P1_SHIFT; in calibrate_8974()
439 p1[9] = (calib[2] & S9_P1_MASK); in calibrate_8974()
440 p1[10] = (calib[2] & S10_P1_MASK) >> S10_P1_SHIFT; in calibrate_8974()
482 kfree(calib); in calibrate_8974()