Lines Matching full:d2
566 * The difference(d1, d2) between ideal and measured codes stored in trim
570 * gain: k = 1 + ((d2 - d1) / (x2 - x1))
574 int channel, int d1, int d2) in twl6030_calibrate_channel() argument
589 k = 1000 + (((d2 - d1) * 1000) / (x2 - x1)); in twl6030_calibrate_channel()
599 dev_dbg(gpadc->dev, "GPADC d2 for Chn: %d = %d\n", channel, d2); in twl6030_calibrate_channel()
626 s8 d1, d2; in twl6030_calibration() local
647 d2 = trim_regs[1]; in twl6030_calibration()
655 d2 = trim_regs[5]; in twl6030_calibration()
659 d2 = trim_regs[13]; in twl6030_calibration()
663 d2 = trim_regs[7]; in twl6030_calibration()
667 d2 = trim_regs[3]; in twl6030_calibration()
671 d2 = trim_regs[9]; in twl6030_calibration()
675 d2 = trim_regs[11]; in twl6030_calibration()
679 d2 = trim_regs[15]; in twl6030_calibration()
686 d2 = twl6030_gpadc_get_trim_offset(d2); in twl6030_calibration()
688 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6030_calibration()
710 int chn, d1 = 0, d2 = 0, temp; in twl6032_calibration() local
741 d2 = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f, in twl6032_calibration()
752 d2 = temp + twl6032_get_trim_value(trim_regs, 9, 7, in twl6032_calibration()
763 d2 = temp + twl6032_get_trim_value(trim_regs, 15, 13, in twl6032_calibration()
769 d2 = twl6032_get_trim_value(trim_regs, 14, 12, 0x0f, in twl6032_calibration()
785 d2 = (trim_regs[5] & 0xFE) >> 1; in twl6032_calibration()
787 d2 = -d2; in twl6032_calibration()
789 d2 += temp; in twl6032_calibration()
796 twl6030_calibrate_channel(gpadc, chn, d1, d2); in twl6032_calibration()