Lines Matching refs:d1
575 int channel, int d1, int d2) in twl6030_calibrate_channel() argument
590 k = 1000 + (((d2 - d1) * 1000) / (x2 - x1)); in twl6030_calibrate_channel()
593 b = (d1 * 1000) - (k - 1000) * x1; in twl6030_calibrate_channel()
599 dev_dbg(gpadc->dev, "GPADC d1 for Chn: %d = %d\n", channel, d1); in twl6030_calibrate_channel()
627 s8 d1, d2; in twl6030_calibration() local
647 d1 = trim_regs[0]; in twl6030_calibration()
655 d1 = trim_regs[4]; in twl6030_calibration()
659 d1 = trim_regs[12]; in twl6030_calibration()
663 d1 = trim_regs[6]; in twl6030_calibration()
667 d1 = trim_regs[2]; in twl6030_calibration()
671 d1 = trim_regs[8]; in twl6030_calibration()
675 d1 = trim_regs[10]; in twl6030_calibration()
679 d1 = trim_regs[14]; in twl6030_calibration()
686 d1 = twl6030_gpadc_get_trim_offset(d1); in twl6030_calibration()
689 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration()
711 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local
740 d1 = twl6032_get_trim_value(trim_regs, 2, 0, 0x1f, in twl6032_calibration()
748 d1 = temp + twl6032_get_trim_value(trim_regs, 7, 6, in twl6032_calibration()
759 d1 = temp + twl6032_get_trim_value(trim_regs, 13, 11, in twl6032_calibration()
768 d1 = twl6032_get_trim_value(trim_regs, 10, 8, 0x0f, in twl6032_calibration()
778 d1 = (trim_regs[4] & 0x7E) >> 1; in twl6032_calibration()
780 d1 = -d1; in twl6032_calibration()
781 d1 += temp; in twl6032_calibration()
797 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration()