Lines Matching refs: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)
589 k = 1000 + (((d2 - d1) * 1000) / (x2 - x1));
599 dev_dbg(gpadc->dev, "GPADC d2 for Chn: %d = %d\n", channel, d2);
626 s8 d1, d2;
647 d2 = trim_regs[1];
655 d2 = trim_regs[5];
659 d2 = trim_regs[13];
663 d2 = trim_regs[7];
667 d2 = trim_regs[3];
671 d2 = trim_regs[9];
675 d2 = trim_regs[11];
679 d2 = trim_regs[15];
686 d2 = twl6030_gpadc_get_trim_offset(d2);
688 twl6030_calibrate_channel(gpadc, chn, d1, d2);
710 int chn, d1 = 0, d2 = 0, temp;
741 d2 = twl6032_get_trim_value(trim_regs, 3, 1, 0x3f,
752 d2 = temp + twl6032_get_trim_value(trim_regs, 9, 7,
763 d2 = temp + twl6032_get_trim_value(trim_regs, 15, 13,
769 d2 = twl6032_get_trim_value(trim_regs, 14, 12, 0x0f,
785 d2 = (trim_regs[5] & 0xFE) >> 1;
787 d2 = -d2;
789 d2 += temp;
796 twl6030_calibrate_channel(gpadc, chn, d1, d2);