Lines Matching full:d2
553 * The difference(d1, d2) between ideal and measured codes stored in trim
557 * gain: k = 1 + ((d2 - d1) / (x2 - x1))
561 int channel, int d1, int d2) in twl6030_calibrate_channel() argument
576 k = 1000 + (((d2 - d1) * 1000) / (x2 - x1)); in twl6030_calibrate_channel()
586 dev_dbg(gpadc->dev, "GPADC d2 for Chn: %d = %d\n", channel, d2); in twl6030_calibrate_channel()
613 s8 d1, d2; in twl6030_calibration() local
634 d2 = trim_regs[1]; in twl6030_calibration()
642 d2 = trim_regs[5]; in twl6030_calibration()
646 d2 = trim_regs[13]; in twl6030_calibration()
650 d2 = trim_regs[7]; in twl6030_calibration()
654 d2 = trim_regs[3]; in twl6030_calibration()
658 d2 = trim_regs[9]; in twl6030_calibration()
662 d2 = trim_regs[11]; in twl6030_calibration()
666 d2 = trim_regs[15]; in twl6030_calibration()
673 d2 = twl6030_gpadc_get_trim_offset(d2); in twl6030_calibration()
675 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration()
697 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local
728 d2 = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f, in twl6032_calibration()
739 d2 = temp + twl6032_get_trim_value(trim_regs, 9, 7, in twl6032_calibration()
750 d2 = temp + twl6032_get_trim_value(trim_regs, 15, 13, in twl6032_calibration()
756 d2 = twl6032_get_trim_value(trim_regs, 14, 12, 0x0f, in twl6032_calibration()
772 d2 = (trim_regs[5] & 0xFE) >> 1; in twl6032_calibration()
774 d2 = -d2; in twl6032_calibration()
776 d2 += temp; in twl6032_calibration()
783 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration()