Lines Matching defs:gain
74 * @gain: slope coefficient for ideal curve
75 * @gain_error: gain error
79 s32 gain;
130 * channel with gain error and offset
502 gpadc->twl6030_cal_tbl[i].gain;
567 * The goal is to find offset and gain of the real curve for each calibrated
569 * gain: k = 1 + ((d2 - d1) / (x2 - x1))
575 int b, k, gain, x1, x2, i;
581 gain = ((ideal[i].volt2 - ideal[i].volt1) * 1000) /
587 /* k - real curve gain */
590 /* b - offset of the real curve gain */
593 gpadc->twl6030_cal_tbl[i].gain = gain;
601 dev_dbg(gpadc->dev, "GPADC Gain for Chn: %d = %d\n", channel, gain);
724 * gain is calculated to 3 decimal places fixed point.